[商品分享微信好友和朋友圈处理邀请码和商品id]
This commit is contained in:
@@ -315,13 +315,16 @@
|
||||
},
|
||||
// 顶部菜单点击了分享功能
|
||||
onNavigationBarButtonTap() {
|
||||
console.log('点击了分享功能。。。')
|
||||
let invite = this.goodsObj.user_invite || ''
|
||||
let goods ='&GoodsId/$-?' + this.goodsObj.goods_id
|
||||
let shareCode = invite === '' ?goods:invite.slice(0,2) + '$InviTaTiOn$CoDe/$-?' + invite.substring(2)+goods
|
||||
console.log(shareCode)
|
||||
uniShare.show({
|
||||
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
|
||||
content: {
|
||||
type: 0,
|
||||
href: 'https://www.lianshang.vip/app?',
|
||||
title: '链商星球,共创未来,一起搭建链商经济的世界~',
|
||||
summary: '链商星球app你值得拥有~天天签到领福利~',
|
||||
href: 'https://www.lianshang.vip/app?parent_id=' + shareCode,
|
||||
title: '链商星球 共创未来,一起搭建 链商经济的世界~',
|
||||
summary: '链商星球APP你值得拥有~每日签到领贡献值~',
|
||||
imageUrl: config.apiUrls+'images/top_logo.png'
|
||||
},
|
||||
menus: [{
|
||||
@@ -342,9 +345,10 @@
|
||||
}
|
||||
],
|
||||
cancelText: "取消分享",
|
||||
}, e => { //callback
|
||||
console.log(uniShare.isShow);
|
||||
console.log(e);
|
||||
}, e => {
|
||||
if(uniShare.isShow){
|
||||
console.log('shareCode',shareCode)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user