|
@@ -11,6 +11,7 @@ import { |
|
@@ -11,6 +11,7 @@ import { |
11
|
import {
|
11
|
import {
|
12
|
stringify
|
12
|
stringify
|
13
|
} from '../../../vendors/query-stringify';
|
13
|
} from '../../../vendors/query-stringify';
|
|
|
14
|
+import wx from '../../../utils/wx';
|
14
|
|
15
|
|
15
|
let app = getApp();
|
16
|
let app = getApp();
|
16
|
let router = global.router;
|
17
|
let router = global.router;
|
|
@@ -541,6 +542,7 @@ Page(Object.assign({ |
|
@@ -541,6 +542,7 @@ Page(Object.assign({ |
541
|
detailModel.addAssist({
|
542
|
detailModel.addAssist({
|
542
|
userId: this.data.originUid,
|
543
|
userId: this.data.originUid,
|
543
|
helpUserId: this.getUserWechatId(),
|
544
|
helpUserId: this.getUserWechatId(),
|
|
|
545
|
+ helpUserYohoId: userInfo.uid,
|
544
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
546
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
545
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
547
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
546
|
limitProductCode: this.data.limitProductCode
|
548
|
limitProductCode: this.data.limitProductCode
|
|
@@ -560,6 +562,13 @@ Page(Object.assign({ |
|
@@ -560,6 +562,13 @@ Page(Object.assign({ |
560
|
if ((this.data.avatarList.length + 1) === this.data.assistLimit) {
|
562
|
if ((this.data.avatarList.length + 1) === this.data.assistLimit) {
|
561
|
detailModel.getLimitCode(this.data.originUid, this.data.limitProductCode);
|
563
|
detailModel.getLimitCode(this.data.originUid, this.data.limitProductCode);
|
562
|
}
|
564
|
}
|
|
|
565
|
+ } else if (result.code === 520) {//此限定商品分享助力只限新客!
|
|
|
566
|
+ wx.hideLoading();
|
|
|
567
|
+ wx.showModal({
|
|
|
568
|
+ title: '提示',
|
|
|
569
|
+ content: result.message,
|
|
|
570
|
+ showCancel: false,
|
|
|
571
|
+ });
|
563
|
} else if (result.code === 9001) {
|
572
|
} else if (result.code === 9001) {
|
564
|
this.setData({
|
573
|
this.setData({
|
565
|
assistSuccess: ASSIST_SUCCESS.REPEAT
|
574
|
assistSuccess: ASSIST_SUCCESS.REPEAT
|
|
@@ -596,7 +605,7 @@ Page(Object.assign({ |
|
@@ -596,7 +605,7 @@ Page(Object.assign({ |
596
|
detailModel.addAssist({
|
605
|
detailModel.addAssist({
|
597
|
userId: this.data.originUid,
|
606
|
userId: this.data.originUid,
|
598
|
helpUserId: this.getUserWechatId(),
|
607
|
helpUserId: this.getUserWechatId(),
|
599
|
- helpYohoId: this.data.uid,
|
608
|
+ helpUserYohoId: userInfo.uid,
|
600
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
609
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
601
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
610
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
602
|
limitProductCode: this.data.limitProductCode
|
611
|
limitProductCode: this.data.limitProductCode
|
|
@@ -623,6 +632,13 @@ Page(Object.assign({ |
|
@@ -623,6 +632,13 @@ Page(Object.assign({ |
623
|
this.setData({
|
632
|
this.setData({
|
624
|
queueSuccess: QUEUE_SUCCESS.FULL
|
633
|
queueSuccess: QUEUE_SUCCESS.FULL
|
625
|
});
|
634
|
});
|
|
|
635
|
+ } else if (result.code === 520) {//此限定商品分享助力只限新客!
|
|
|
636
|
+ wx.hideLoading();
|
|
|
637
|
+ wx.showModal({
|
|
|
638
|
+ title: '提示',
|
|
|
639
|
+ content: result.message,
|
|
|
640
|
+ showCancel: false,
|
|
|
641
|
+ });
|
626
|
} else {
|
642
|
} else {
|
627
|
yas.report(YB_ASSIST_SUCCESS_L, {
|
643
|
yas.report(YB_ASSIST_SUCCESS_L, {
|
628
|
ASSIST_RESULT: ASSIST_FAIL,
|
644
|
ASSIST_RESULT: ASSIST_FAIL,
|