...
|
...
|
@@ -165,8 +165,6 @@ Page(Object.assign({ |
|
|
} else if (res.from === 'button') {
|
|
|
// 用户点击分享按钮
|
|
|
|
|
|
console.log(`/pages/product/detail/detail?limitProductCode=${this.data.limitProductCode}&originUid=${app.getUid()}&originUnionID=${app.getUnionID()}`);
|
|
|
|
|
|
return {
|
|
|
title: params.TITLE, // 分享标题
|
|
|
desc: params.DESC, // 分享描述
|
...
|
...
|
@@ -398,8 +396,8 @@ Page(Object.assign({ |
|
|
detailModel.addAssist({
|
|
|
userId: this.data.originUid,
|
|
|
helpUserId: app.getUnionID(),
|
|
|
helpUserName: userInfo.nickName ? userInfo.nickName : '',
|
|
|
helpUserImgUrl: userInfo.avatarUrl ? userInfo.avatarUrl : '',
|
|
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
|
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
|
|
limitProductCode: this.data.limitProductCode
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
...
|
...
|
@@ -408,7 +406,9 @@ Page(Object.assign({ |
|
|
});
|
|
|
|
|
|
if ((this.data.avatarList.length + 1) === this.data.assisLimit) {
|
|
|
detailModel.getLimitCode(this.data.uid, this.data.limitProductCode);
|
|
|
detailModel.getLimitCode(this.data.originUid, this.data.limitProductCode);
|
|
|
} else if (this.data.avatarList.length === this.data.assisLimit) {
|
|
|
detailModel.getLimitCode(this.data.originUid, this.data.limitProductCode);
|
|
|
}
|
|
|
} else if (result.code === 401) {
|
|
|
this.setData({
|
...
|
...
|
@@ -432,8 +432,8 @@ Page(Object.assign({ |
|
|
detailModel.addAssist({
|
|
|
userId: this.data.originUid,
|
|
|
helpUserId: app.getUnionID(),
|
|
|
helpUserName: userInfo.nickName,
|
|
|
helpUserImgUrl: userInfo.avatarUrl,
|
|
|
helpUserName: userInfo.wechat.nickName ? userInfo.wechat.nickName : '',
|
|
|
helpUserImgUrl: userInfo.wechat.avatarUrl ? userInfo.wechat.avatarUrl : '',
|
|
|
limitProductCode: this.data.limitProductCode,
|
|
|
activityId: this.data.activityId
|
|
|
}).then(() => {
|
...
|
...
|
|