|
@@ -517,13 +517,6 @@ Page(Object.assign({ |
|
@@ -517,13 +517,6 @@ Page(Object.assign({ |
517
|
});
|
517
|
});
|
518
|
},
|
518
|
},
|
519
|
|
519
|
|
520
|
- share({detail}) {
|
|
|
521
|
- this.setData({
|
|
|
522
|
- 'actionsheet.show': true,
|
|
|
523
|
- 'shareProduct': detail
|
|
|
524
|
- })
|
|
|
525
|
- },
|
|
|
526
|
-
|
|
|
527
|
handleZanActionsheetCancel({componentId}) {
|
520
|
handleZanActionsheetCancel({componentId}) {
|
528
|
this.setData({
|
521
|
this.setData({
|
529
|
'actionsheet.show': false
|
522
|
'actionsheet.show': false
|
|
@@ -552,37 +545,7 @@ Page(Object.assign({ |
|
@@ -552,37 +545,7 @@ Page(Object.assign({ |
552
|
}
|
545
|
}
|
553
|
;
|
546
|
;
|
554
|
},
|
547
|
},
|
555
|
- onShareAppMessage(res) {
|
|
|
556
|
- let params = {
|
|
|
557
|
- TITLE: `【0元抽奖】点一下,免费拿走${this.data.shareProduct.name}`,
|
|
|
558
|
- DESC: '我在YO!LUCK发现一个不错的商品赶快来看看吧!'
|
|
|
559
|
- };
|
|
|
560
|
-
|
|
|
561
|
- if (res.from === 'menu') {
|
|
|
562
|
- // 用户点击右上角分享
|
|
|
563
|
- return {
|
|
|
564
|
- title: params.TITLE, // 分享标题
|
|
|
565
|
- desc: params.DESC, // 分享描述
|
|
|
566
|
- path: `pages/zeroSell/detail?actPrizeId=${this.data.shareProduct.act_prize_id}`,
|
|
|
567
|
- imageUrl: this.data.shareProduct.cover_img,
|
|
|
568
|
- success: function () {
|
|
|
569
|
- },
|
|
|
570
|
- fail: function () {
|
|
|
571
|
- }
|
|
|
572
|
- };
|
|
|
573
|
- } else if (res.from === 'button') {
|
|
|
574
|
- // 用户点击分享按钮
|
|
|
575
|
-
|
|
|
576
|
- return {
|
|
|
577
|
- title: params.TITLE, // 分享标题
|
|
|
578
|
- desc: params.DESC, // 分享描述
|
|
|
579
|
- path: `/pages/zeroSell/detail?actPrizeId=${this.data.shareProduct.act_prize_id}&shareUid=${app.getUid()}`,
|
|
|
580
|
- imageUrl: this.data.shareProduct.cover_img,
|
|
|
581
|
- success: function () {
|
|
|
582
|
- },
|
|
|
583
|
- fail: function () {
|
|
|
584
|
- }
|
|
|
585
|
- };
|
|
|
586
|
- }
|
548
|
+ onShareAppMessage() {
|
|
|
549
|
+ // 默认分享
|
587
|
}
|
550
|
}
|
588
|
}, Toast, Actionsheet)); |
551
|
}, Toast, Actionsheet)); |