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
2446377f
Commit
2446377f
authored
Sep 29, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yd11_20200922' of gitlab2.dui88.com:wanghongyu
parents
e45e44de
aeb8e765
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
2 deletions
+47
-2
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+47
-2
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
2446377f
...
@@ -173,6 +173,24 @@ Page({
...
@@ -173,6 +173,24 @@ Page({
}
}
})
})
.
catch
(
res
=>
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
.
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
(
'不是分享落地页,不需要走助力~'
)
}
},
},
...
@@ -385,6 +403,33 @@ Page({
...
@@ -385,6 +403,33 @@ Page({
videoHideFunc
()
{
videoHideFunc
()
{
console
.
log
(
'videoHideFunc'
)
console
.
log
(
'videoHideFunc'
)
this
.
setData
({
videoShow
:
false
})
this
.
setData
({
videoShow
:
false
})
if
(
this
.
videoSrcArr
[
this
.
data
.
videoActiveIndex
].
timeStamp
>=
15
)
{
this
.
getWatchRewards
()
}
},
// 观看视频领奖
getWatchRewards
()
{
API
.
sendCoinsByWatch
({
activityId
:
app
.
activityId
,
videoIndex
:
this
.
videoActiveIndex
})
.
then
(
res
=>
{
const
{
success
,
data
}
=
res
if
(
success
)
{
this
.
showCommonMoadalT2
({
title
:
'看视频奖励'
,
content
:
`抽奖次数+
${
data
.
lotteryTimes
}
`
,
confirmCallback1
:
()
=>
{
navigateToOutside
(
app
.
vipUrl
)
},
confirmCallback2
:
()
=>
{
navigateToOutside
(
app
.
vipUrl
)
},
btnImg1
:
'//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png'
,
btnImg2
:
'//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png'
,
})
}
else
{
}
})
},
},
videoShowFunc
()
{
videoShowFunc
()
{
...
...
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