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
b523855f
Commit
b523855f
authored
Sep 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
444b91e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+17
-17
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
b523855f
...
...
@@ -173,25 +173,25 @@ Page({
}
})
.
catch
(
res
=>
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
this
.
checkDohelp
();
//
this.checkDohelp();
},
checkDohelp
(){
if
(
this
.
inviteId
)
{
//是分享落地页,可以助力
//todo 需要判断是不是会员
commonToast
(
'准备5秒后给邀请者助力~'
);
setTimeout
(()
=>
{
API
.
doHelp
({
activityId
:
app
.
activityId
,
inviteId
:
this
.
inviteId
}).
then
(
res
=>
{
commonToast
(
'助力成功~'
);
}).
catch
(
err
=>
{
commonToast
(
JSON
.
stringify
(
err
));
});
},
5000
);
}
else
{
commonToast
(
'不是分享落地页,不需要走助力~'
)
}
},
//
checkDohelp(){
//
if(this.inviteId) {
//
//是分享落地页,可以助力
//
//todo 需要判断是不是会员
//
commonToast('准备5秒后给邀请者助力~');
//
setTimeout(() => {
//
API.doHelp({activityId: app.activityId,inviteId:this.inviteId}).then(res=>{
//
commonToast('助力成功~');
//
}).catch(err=>{
//
commonToast(JSON.stringify(err));
//
});
//
}, 5000);
//
}else{
//
commonToast('不是分享落地页,不需要走助力~')
//
}
//
},
...
...
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