|
...
|
...
|
@@ -215,6 +215,26 @@ Page({ |
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
|
|
|
let data=this.data.opt;
|
|
|
|
let use=this.data.use;
|
|
|
|
let detail=this.data.detail
|
|
|
|
let imageUrl,title;
|
|
|
|
if(use.is_cash=='1' || use.is_cash){
|
|
|
|
imageUrl='https://nosqn.colorcun.com/share_money.png';
|
|
|
|
title=detail.price == '0'?`免费获取${data.name}${use.cash}元代金券,点击查看详情。`:`仅需${detail.price}元,获取${data.name}${use.cash}元代金券,点击查看详情。`
|
|
|
|
}
|
|
|
|
if(use.is_discount=='1' || use.is_discount){
|
|
|
|
imageUrl='https://nosqn.colorcun.com/share_discount.png';
|
|
|
|
title=detail.price == '0'?`免费获取${data.name}${use.discount}折折扣券,点击查看详情。`:`仅需${detail.price}元,获取${data.name}${use.discount}折折扣券,点击查看详情。`
|
|
|
|
}
|
|
|
|
if(use.is_dish=='1' || use.is_dish){
|
|
|
|
imageUrl='https://nosqn.colorcun.com/share_dish.png';
|
|
|
|
title=detail.price == '0'?`免费获取${data.name}${detail.aname},点击查看详情。`:`仅需${detail.price}元,获取${data.name}${detail.aname},点击查看详情。`
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
title,
|
|
|
|
path:`/pack-activity/pack/buyCoupon?id=${data.id}&name=${data.name}&oid=${data.oid}&rid=${data.rid}&sid=${data.sid}&types=1`,
|
|
|
|
imageUrl,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|