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
34629d95
Commit
34629d95
authored
Sep 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aeb8e765
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+29
-7
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
34629d95
...
...
@@ -158,13 +158,23 @@ Page({
//是分享落地页,可以助力
//todo 需要判断是不是会员
commonToast
(
'准备5秒后给邀请者助力~'
);
setTimeout
(()
=>
{
API
.
doHelp
({
activityId
:
app
.
activityId
,
inviteId
:
this
.
inviteId
}).
then
(
res
=>
{
commonToast
(
'助力成功~'
);
}).
catch
(
err
=>
{
commonToast
(
JSON
.
stringify
(
err
));
this
.
showCommonModal
({
content
:
'活动还未开始
\
n请稍后'
,
btnText
:
'我知道了'
,
commonModalVisibleT1
:
true
,
confirmCallback
:
()
=>
{
this
.
closeCommonModal
();
}
});
},
5000
);
// setTimeout(() => {
// API.doHelp({activityId: app.activityId,inviteId:this.inviteId}).then(res=>{
// commonToast('助力成功~');
// }).catch(err=>{
// commonToast(JSON.stringify(err));
// });
// }, 5000);
}
else
{
commonToast
(
'不是分享落地页,不需要走助力~'
)
}
...
...
@@ -434,6 +444,18 @@ Page({
}
},
/**
* 显示通用弹层
* @param {object} options content: 通用弹层内容 btnText:按钮文案 confirmCallback: 按钮确认回调
*/
showCommonModal
({
content
,
btnText
,
confirmCallback
})
{
this
.
setData
({
commonModalConfirm
:
confirmCallback
||
null
,
commonModalVisible
:
true
,
commonModalData
:
{
content
,
btnText
}
});
},
changeURLArg
(
url
,
arg
,
arg_val
)
{
var
pattern
=
arg
+
'=([^&]*)'
;
var
replaceText
=
arg
+
'='
+
arg_val
;
...
...
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