Authored by 郝肖肖

'有赚失败重新提交'

... ... @@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel {
index(params) {
return Promise.all([
this.invitecode(params),
this.checkApply(params)
this.checkApply(Object.assign({isH5: 1}, params))
]).then(res => {
let share = (_.get(res[0], 'data.context', '')).match(/(\d+)/g);
let gainList = [
... ... @@ -64,8 +64,11 @@ 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
if (_.get(params, 'isH5', 0) * 1 === 1) { // h5列表单击跳转
checkUrl = 'https://m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}'; // eslint-disable-line
} else {
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', {});
}
... ...
... ... @@ -35,11 +35,12 @@ class HaveGainFailPage extends Page {
}).then(res => {
this.selector.isFlag = false;
if (res.code !== 200) {
return tip.show(res.message || '请稍后再试');
if (res.code === 200 && res.data === 'Y') {
window.location.href = '//m.yohobuy.com/activity/have-gain/apply';
return true;
}
window.location.href = '//m.yohobuy.com/activity/have-gain/apply';
return tip.show(res.message || '请稍后再试');
}).catch(() => {
this.selector.isFlag = false;
});
... ...
... ... @@ -25,7 +25,7 @@
ul li {
font-size: 28px;
color: #b0b0b0;
padding: 0 10px;
padding: 0 20px;
margin-bottom: 20px;
line-height: 44px;
}
... ...