Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanpeng
wechat_lung
Commits
e14b6d3a
Commit
e14b6d3a
authored
Oct 30, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改分享帖子'
parent
7c6e1f30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
41 deletions
+33
-41
cardDetail.js
medtap_bbs_lung/javaScript/cardDetail.js
+32
-41
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+1
-0
No files found.
medtap_bbs_lung/javaScript/cardDetail.js
View file @
e14b6d3a
...
...
@@ -137,52 +137,43 @@ define(['zepto', 'medtap'], function($, medtap) {
'onMenuShareAppMessage'
]
})
card
.
share
();
wx
.
ready
(
function
()
{
//分享给朋友
wx
.
onMenuShareAppMessage
({
title
:
'肺癌靶向家园社区'
,
desc
:
'...'
,
// 分享描述
link
:
'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg'
,
// 分享图标
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
success
:
function
()
{
},
cancel
:
function
()
{
}
});
//分享到朋友圈
wx
.
onMenuShareTimeline
({
title
:
'肺癌靶向家园社区'
,
// 分享标题
link
:
'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg'
,
// 分享图标
success
:
function
()
{
},
cancel
:
function
()
{
}
});
});
}
})
},
share
:
function
()
{
var
desc
=
$
(
'.cardDetail'
).
text
().
substring
(
0
,
25
)
//
var desc = $('.cardDetail').text().substring(0,25)
//微信分享
wx
.
ready
(
function
()
{
//分享给朋友
wx
.
onMenuShareAppMessage
({
title
:
'肺癌靶向家园社区'
,
desc
:
desc
+
'...'
,
// 分享描述
link
:
'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg'
,
// 分享图标
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
success
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'分享成功'
);
}
},
cancel
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'取消分享'
);
}
}
});
//分享到朋友圈
wx
.
onMenuShareTimeline
({
title
:
'肺癌靶向家园社区'
,
// 分享标题
link
:
'https://testdevgw.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
'https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg'
,
// 分享图标
success
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'分享成功'
);
}
},
cancel
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'取消分享'
);
}
}
});
});
},
previewImage
:
function
()
{
$
(
'.cardImage'
).
on
(
'click'
,
'img'
,
function
()
{
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
e14b6d3a
...
...
@@ -867,6 +867,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
$
(
'.chat_list'
).
prepend
(
html
);
}
}
$
(
'.chat_list'
).
scrollTop
(
-
10
)
}
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment