Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
db95cdab
Commit
db95cdab
authored
Oct 09, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new code --27
parent
a8c14c7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+20
-9
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
db95cdab
...
@@ -321,23 +321,25 @@ Page({
...
@@ -321,23 +321,25 @@ Page({
app
.
inviteId
=
this
.
query
.
inviteId
app
.
inviteId
=
this
.
query
.
inviteId
this
.
inviteId
=
this
.
query
.
inviteId
this
.
inviteId
=
this
.
query
.
inviteId
// 新用户 助力链接
// 新用户 助力链接
------- old code: this.isNewUser &&
if
(
this
.
isNewUser
&&
this
.
query
.
invite
Id
)
{
if
(
this
.
query
.
inviteId
&&
this
.
query
.
inviteId
!==
app
.
open
Id
)
{
this
.
checkDohelp
()
this
.
checkDohelp
()
// //yun.duiba.com.cn/spark/assets/为他助力.bc57a24aecb04934067712c76186d800343dabd5.png
}
else
if
(
this
.
query
.
inviteId
&&
this
.
query
.
inviteId
===
app
.
openId
)
{
}
// 新用户 不是助力链接
else
if
(
this
.
isNewUser
&&
!
this
.
query
.
inviteId
)
console
.
log
(
'%cisNewUser'
,
'color:blue;'
)
// 老用户 助力链接
else
if
(
!
this
.
isNewUser
&&
this
.
query
.
inviteId
)
{
this
.
showCommonMoadalT1
({
this
.
showCommonMoadalT1
({
title
:
'很遗憾'
,
title
:
'很遗憾'
,
content
:
'
新会员才能助力哦~
'
,
content
:
'
不能给自己助力哦~
'
,
confirmCallback
:
()
=>
{
confirmCallback
:
()
=>
{
this
.
closeCommonModalT1
()
this
.
closeCommonModalT1
()
},
},
btnImg
:
'//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png'
})
btnImg
:
'//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png'
})
}
}
// 新用户 不是助力链接
// else if (this.isNewUser && !this.query.inviteId) console.log('%cisNewUser', 'color:blue;')
// // 老用户 助力链接
// else if (!this.isNewUser && this.query.inviteId) {
// }
}
}
},
},
...
@@ -399,6 +401,15 @@ Page({
...
@@ -399,6 +401,15 @@ Page({
},
},
btnImg
:
'//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png'
btnImg
:
'//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png'
})
})
}
else
if
(
err
.
code
===
'testtesttest'
)
{
this
.
showCommonMoadalT1
({
title
:
'很遗憾'
,
content
:
'新会员才能助力哦~'
,
confirmCallback
:
()
=>
{
this
.
closeCommonModalT1
()
},
btnImg
:
'//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png'
})
}
else
{
}
else
{
commonToast
(
err
.
message
+
'.'
)
commonToast
(
err
.
message
+
'.'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment