Authored by htoooth

fix

... ... @@ -89,4 +89,20 @@ export default {
}
});
},
/**
* 发限购码
* @param {*} uid
* @param {*} limitProductCode
*/
getLimitCode(uid, limitProductCode) {
return api.post({
url: '',
data: {
method: 'app.limitcode.add',
uid,
limitProductCode
}
});
}
};
... ...
... ... @@ -193,16 +193,16 @@ Page(Object.assign({
this.setData({
'actionSheet.show': false
});
console.log('ok');
let uid = this.data.originUid || this.data.uid;
if (index === 0) {
if (this.data.avatarList) {
if (this.data.showAssisList) {
return;
}
detailModel.addShareAction(uid, this.data.limitProductCode);
} else if (index === 1) {
if (this.data.avatarList) {
if (this.data.showAssisListk) {
router.go('snapShare', this.data.snapData);
return;
}
... ... @@ -393,6 +393,9 @@ Page(Object.assign({
assisSuccess: ASSIS_SUCCESS.ok
});
if ((this.data.avatarList.length + 1) === this.data.assisLimit) {
detailModel.getLimitCode(this.data.uid, this.data.limitProductCode);
}
} else if (result.code === 401) {
this.setData({
assisSuccess: ASSIS_SUCCESS.repeat
... ...
... ... @@ -66,10 +66,10 @@
"query": "actId=350"
},
{
"id": -1,
"id": 5,
"name": "情详页-好友助力",
"pathName": "pages/product/detail/detail",
"query": "limitProductCode=2018062115403668"
"query": "limitProductCode=2018062815591248"
},
{
"id": 6,
... ...