...
|
...
|
@@ -17,13 +17,13 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
let gainList = [
|
|
|
{
|
|
|
url: _.get(res[0], 'data.url', ''),
|
|
|
img: '//img10.static.yhbimg.com/article/2017/06/20/12/01a50a1f45b97365e758d6890858998310.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line
|
|
|
img: '//img11.static.yhbimg.com/yhb-img01/2018/07/09/10/010d4f185b1a155449966ef12d3ed41490.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line
|
|
|
totalUser: _.get(share, '[0]', 0),
|
|
|
totalCouponNum: _.get(share, '[1]', 0),
|
|
|
isShow: true
|
|
|
}, {
|
|
|
url: _.get(res[1], 'data.checkUrl', ''),
|
|
|
img: '//img10.static.yhbimg.com/article/2017/06/20/12/01a50a1f45b97365e758d6890858998310.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line
|
|
|
img: '//img11.static.yhbimg.com/yhb-img01/2018/07/09/10/018092224dc2f48195e3ad15269f981d1f.jpg?imageView2/{mode}/w/{width}/h/{height}', // eslint-disable-line
|
|
|
isShow: false
|
|
|
}
|
|
|
];
|
...
|
...
|
@@ -64,7 +64,10 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
if (checkStatus === 1) { // 审核中
|
|
|
checkUrl = helpers.urlFormat('/activity/have-gain/verify', {});
|
|
|
} else if (checkStatus === 2) { // 审核成功
|
|
|
// checkUrl = 'https://m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}';
|
|
|
checkUrl = 'https://activity.yoho.cn/feature/2213.html?title=说明详情&openby:yohobuy={"action":"go.h5","params":{"title": "说明详情", url":"https://activity.yoho.cn/feature/2213.html"}}'; // eslint-disable-line
|
|
|
} else if (checkStatus === 3) { // 申请拒绝
|
|
|
checkUrl = helpers.urlFormat('/activity/have-gain/fail', {});
|
|
|
}
|
|
|
|
|
|
_.set(res, 'data.checkUrl', checkUrl);
|
...
|
...
|
@@ -74,6 +77,19 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* [审核拒绝,重新申请API]
|
|
|
* @param {[type]} params [{uid:'']}]
|
|
|
* @return {[type]} [{}]
|
|
|
*/
|
|
|
resetApply(params) {
|
|
|
return this.get({
|
|
|
data: Object.assign({
|
|
|
method: 'app.union.shareOrder.resetApply'
|
|
|
}, params)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* [提交-申请]
|
|
|
* @param {[type]} params [{uid:'',name:'',mobile:'',socialMediaList:[{type:'',account:'',fans:200}]}]
|
|
|
* @return {[type]} [{}]
|
...
|
...
|
|