Authored by 郝肖肖

'fix'

@@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel {
11 index(params) { 11 index(params) {
12 return Promise.all([ 12 return Promise.all([
13 this.invitecode(params), 13 this.invitecode(params),
14 - this.checkApply(Object.assign({goUnion: 1}, params)) 14 + this.checkApply(params)
15 ]).then(res => { 15 ]).then(res => {
16 let share = (_.get(res[0], 'data.context', '')).match(/(\d+)/g); 16 let share = (_.get(res[0], 'data.context', '')).match(/(\d+)/g);
17 let gainList = [ 17 let gainList = [
@@ -64,11 +64,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -64,11 +64,7 @@ module.exports = class extends global.yoho.BaseModel {
64 if (checkStatus === 1) { // 审核中 64 if (checkStatus === 1) { // 审核中
65 checkUrl = helpers.urlFormat('/activity/have-gain/verify', {}); 65 checkUrl = helpers.urlFormat('/activity/have-gain/verify', {});
66 } else if (checkStatus === 2) { // 审核成功 66 } else if (checkStatus === 2) { // 审核成功
67 - if (_.get(params, 'goUnion', 0) * 1 === 1) { // h5列表单击跳转  
68 - checkUrl = '//m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}'; // eslint-disable-line  
69 - } else {  
70 - 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  
71 - } 67 + checkUrl = '//m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}'; // eslint-disable-line
72 } else if (checkStatus === 3) { // 申请拒绝 68 } else if (checkStatus === 3) { // 申请拒绝
73 checkUrl = helpers.urlFormat('/activity/have-gain/fail', {}); 69 checkUrl = helpers.urlFormat('/activity/have-gain/fail', {});
74 } 70 }