...
|
...
|
@@ -11,6 +11,7 @@ import { |
|
|
import {
|
|
|
stringify
|
|
|
} from '../../../vendors/query-stringify';
|
|
|
import wx from '../../../utils/wx';
|
|
|
|
|
|
let app = getApp();
|
|
|
let router = global.router;
|
...
|
...
|
@@ -541,6 +542,7 @@ Page(Object.assign({ |
|
|
detailModel.addAssist({
|
|
|
userId: this.data.originUid,
|
|
|
helpUserId: this.getUserWechatId(),
|
|
|
helpUserYohoId: userInfo.uid,
|
|
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
|
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
|
|
limitProductCode: this.data.limitProductCode
|
...
|
...
|
@@ -560,6 +562,13 @@ Page(Object.assign({ |
|
|
if ((this.data.avatarList.length + 1) === this.data.assistLimit) {
|
|
|
detailModel.getLimitCode(this.data.originUid, this.data.limitProductCode);
|
|
|
}
|
|
|
} else if (result.code === 520) {//此限定商品分享助力只限新客!
|
|
|
wx.hideLoading();
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: result.message,
|
|
|
showCancel: false,
|
|
|
});
|
|
|
} else if (result.code === 9001) {
|
|
|
this.setData({
|
|
|
assistSuccess: ASSIST_SUCCESS.REPEAT
|
...
|
...
|
@@ -596,7 +605,7 @@ Page(Object.assign({ |
|
|
detailModel.addAssist({
|
|
|
userId: this.data.originUid,
|
|
|
helpUserId: this.getUserWechatId(),
|
|
|
helpYohoId: this.data.uid,
|
|
|
helpUserYohoId: userInfo.uid,
|
|
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
|
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
|
|
limitProductCode: this.data.limitProductCode
|
...
|
...
|
@@ -623,6 +632,13 @@ Page(Object.assign({ |
|
|
this.setData({
|
|
|
queueSuccess: QUEUE_SUCCESS.FULL
|
|
|
});
|
|
|
} else if (result.code === 520) {//此限定商品分享助力只限新客!
|
|
|
wx.hideLoading();
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: result.message,
|
|
|
showCancel: false,
|
|
|
});
|
|
|
} else {
|
|
|
yas.report(YB_ASSIST_SUCCESS_L, {
|
|
|
ASSIST_RESULT: ASSIST_FAIL,
|
...
|
...
|
|