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
aeb8e765
Commit
aeb8e765
authored
Sep 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
0ebe8c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+19
-1
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
aeb8e765
...
...
@@ -150,13 +150,31 @@ Page({
}
})
.
catch
(
res
=>
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
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
(
'不是分享落地页,不需要走助力~'
)
}
},
// 分享
onShareAppMessage
()
{
// 返回自定义分享信息
SHARE_CONFIG
.
imageUrl
=
''
SHARE_CONFIG
.
path
=
this
.
changeURLArg
(
'/pages/homePage/homePage'
,
'
shar
eId'
,
app
.
openId
)
SHARE_CONFIG
.
path
=
this
.
changeURLArg
(
'/pages/homePage/homePage'
,
'
invit
eId'
,
app
.
openId
)
console
.
log
(
'SHARE_CONFIG.path'
,
SHARE_CONFIG
.
path
)
return
SHARE_CONFIG
;
},
...
...
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