Commit e14b6d3a by zujiaozhang

'修改分享帖子'

parent 7c6e1f30
......@@ -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() {
......
......@@ -867,6 +867,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
$('.chat_list').prepend(html);
}
}
$('.chat_list').scrollTop(-10)
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment