Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
7 years ago
Commit
6cb82d1231d2b6beb7eeed976872106704e2cff6
2 parents
3e9f2bec
3002e2cc
Merge branch 'feature/cps3' into release/0718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
apps/activity/models/have-gain.js
apps/activity/models/have-gain.js
View file @
6cb82d1
...
...
@@ -11,7 +11,7 @@ module.exports = class extends global.yoho.BaseModel {
index
(
params
)
{
return
Promise
.
all
([
this
.
invitecode
(
params
),
this
.
checkApply
(
Object
.
assign
({
goUnion
:
1
},
params
)
)
this
.
checkApply
(
params
)
]).
then
(
res
=>
{
let
share
=
(
_
.
get
(
res
[
0
],
'data.context'
,
''
)).
match
(
/
(\d
+
)
/g
);
let
gainList
=
[
...
...
@@ -64,11 +64,7 @@ module.exports = class extends global.yoho.BaseModel {
if
(
checkStatus
===
1
)
{
// 审核中
checkUrl
=
helpers
.
urlFormat
(
'/activity/have-gain/verify'
,
{});
}
else
if
(
checkStatus
===
2
)
{
// 审核成功
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
}
checkUrl
=
'//m.yohobuy.com?title=有货有赚&openby:yohobuy={"action":"go.minealliance","params":{"title":"有货有赚"}}'
;
// eslint-disable-line
}
else
if
(
checkStatus
===
3
)
{
// 申请拒绝
checkUrl
=
helpers
.
urlFormat
(
'/activity/have-gain/fail'
,
{});
}
...
...
Please
register
or
login
to post a comment