...
|
...
|
@@ -163,7 +163,9 @@ 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, // 分享描述
|
...
|
...
|
@@ -269,12 +271,12 @@ Page(Object.assign({ |
|
|
}
|
|
|
|
|
|
this.setData({
|
|
|
productSkn: res.data.productSkn,
|
|
|
productName: res.data.productName,
|
|
|
price: res.data.price,
|
|
|
saleTime: res.data.saleTime,
|
|
|
reminderNum: res.data.reminderNum,
|
|
|
limitProductType: res.data.limitProductType,
|
|
|
productSkn: res.data.productSkn ? res.data.productSkn : '',
|
|
|
productName: res.data.productName ? res.data.productName : '',
|
|
|
price: res.data.price ? res.data.price : '即将开售',
|
|
|
saleTime: res.data.saleTime ? res.data.saleTime : '',
|
|
|
reminderNum: res.data.reminderNum ? res.data.reminderNum : 0,
|
|
|
limitProductType: res.data.limitProductType ? res.data.limitProductType : 4,
|
|
|
showStatus: res.data.showStatus ? res.data.showStatus : 0,
|
|
|
assisLimit: res.data.helpLimit ? res.data.helpLimit : 0,
|
|
|
queueType: res.data.queueType ? res.data.queueType : QUEUE_TYPE.READY,
|
...
|
...
|
@@ -298,7 +300,7 @@ Page(Object.assign({ |
|
|
|
|
|
let assisStatus = ASSIS_STATUS.SHARE;
|
|
|
|
|
|
if (this.data.assisLimit === result.data.list.length) {
|
|
|
if (result.data.list && this.data.assisLimit === result.data.list.length) {
|
|
|
assisStatus = ASSIS_STATUS.ASSIS_FULL;
|
|
|
} else {
|
|
|
// 不是发起者
|
...
|
...
|
@@ -395,8 +397,8 @@ Page(Object.assign({ |
|
|
detailModel.addAssist({
|
|
|
userId: this.data.originUid,
|
|
|
helpUserId: app.getUnionID(),
|
|
|
helpUserName: userInfo.nickName,
|
|
|
helpUserImgUrl: userInfo.avatarUrl,
|
|
|
helpUserName: userInfo.nickName ? userInfo.nickName : '',
|
|
|
helpUserImgUrl: userInfo.avatarUrl ? userInfo.avatarUrl : '',
|
|
|
limitProductCode: this.data.limitProductCode
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
...
|
...
|
@@ -460,6 +462,9 @@ Page(Object.assign({ |
|
|
buyNow() {
|
|
|
router.goUrl(`miniapp.yohobuy.com/pages/goodsDetail/goodsDetail?app=yohobuy&productSkn=${this.data.productSkn}`);
|
|
|
},
|
|
|
goHelp() {
|
|
|
router.go('webview', {url: ''});
|
|
|
},
|
|
|
goList() {
|
|
|
router.go('home');
|
|
|
},
|
...
|
...
|
|