Authored by 郝肖肖

'fix'

... ... @@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel {
index(params) {
return Promise.all([
this.invitecode(params),
this.checkApply(Object.assign({isH5: 1}, params))
this.checkApply(Object.assign({goUnion: 1}, params))
]).then(res => {
let share = (_.get(res[0], 'data.context', '')).match(/(\d+)/g);
let gainList = [
... ... @@ -64,8 +64,8 @@ module.exports = class extends global.yoho.BaseModel {
if (checkStatus === 1) { // 审核中
checkUrl = helpers.urlFormat('/activity/have-gain/verify', {});
} else if (checkStatus === 2) { // 审核成功
if (_.get(params, 'isH5', 0) * 1 === 1) { // h5列表单击跳转
checkUrl = 'https://m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}'; // eslint-disable-line
if (_.get(params, 'goUnion', 0) * 1 === 1) { // h5列表单击跳转
checkUrl = '//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
}
... ...