Commit db95cdab authored by AU-Pro-mac's avatar AU-Pro-mac

add new code --27

parent a8c14c7b
......@@ -321,23 +321,25 @@ Page({
app.inviteId = this.query.inviteId
this.inviteId = this.query.inviteId
// 新用户 助力链接
if (this.isNewUser && this.query.inviteId) {
// 新用户 助力链接 ------- old code: this.isNewUser &&
if (this.query.inviteId && this.query.inviteId !== app.openId) {
this.checkDohelp()
// //yun.duiba.com.cn/spark/assets/为他助力.bc57a24aecb04934067712c76186d800343dabd5.png
}
// 新用户 不是助力链接
else if (this.isNewUser && !this.query.inviteId) console.log('%cisNewUser', 'color:blue;')
// 老用户 助力链接
else if (!this.isNewUser && this.query.inviteId) {
} else if (this.query.inviteId && this.query.inviteId === app.openId) {
this.showCommonMoadalT1({
title: '很遗憾',
content: '新会员才能助力哦~',
content: '不能给自己助力哦~',
confirmCallback: () => {
this.closeCommonModalT1()
},
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({
},
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 {
commonToast(err.message + '.')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment