Authored by 邱骏

增加分享平台判断

... ... @@ -2,7 +2,7 @@
<div class="web-share">
{{#webShare}}
<a href="javascript:void(0)" class="web-share-button" data-stid="{{../share_template_id}}" data-scoupon="{{../share_condition}}"
data-spic="{{pic}}" data-sdesc="{{content}}" data-stitle="{{title}}" data-surl="{{url}}"></a>
data-spic="{{pic}}" data-sdesc="{{content}}" data-stitle="{{title}}" data-surl="{{url}}" data-slanding="{{../landing_attr}}"></a>
{{/webShare}}
</div>
<div class="web-share-tips-wrapper">
... ...
... ... @@ -267,9 +267,11 @@ function initWebShareButtons(env = '') { // 初始化分享按钮事件
if (isApp) {
Object.assign(webShareData, {
hideType: ['4', '5', '6', '7', '8', '9'],
isCareCallBack: '1'
isCareCallBack: '1',
wxShareMode: parseInt(webShareButton.data('slanding'), 10) ? 'miniprogram' : 'h5'
});
}
alert(JSON.stringify(webShareData));
if (parseInt(app_info.uid, 10)) {
... ...