Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-luck
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lea guo
6 years ago
Commit
a32365d2865bd67d5093947c69af68e643b3e36d
1 parent
eb88731a
yohood原价购
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
pages/zeroSell/components/yohoodLottery/action-bar.js
pages/zeroSell/components/yohoodLottery/product-detail-header.js
pages/zeroSell/components/yohoodLottery/product-detail-header.wxml
pages/zeroSell/components/yohoodLottery/action-bar.js
View file @
a32365d
...
...
@@ -86,7 +86,10 @@ Component({
this
.
commonService
=
new
CommonService
();
const
timeId
=
setInterval
(()
=>
{
if
(
this
.
data
.
isStart
)
{
this
.
triggerEvent
(
'changeStatus'
);
const
changeStatusTimeId
=
setTimeout
(()
=>
{
this
.
triggerEvent
(
'changeStatus'
);
clearTimeout
(
changeStatusTimeId
)
},
1000
);
clearInterval
(
timeId
);
}
const
fomartTimes
=
fomartCountdownTime
({
...
...
@@ -94,7 +97,7 @@ Component({
});
this
.
setData
({
remainingTime
:
fomartTimes
.
join
(
':'
)
||
'00:00:00'
,
isStart
:
fomartTimes
.
length
===
0
,
isStart
:
fomartTimes
.
length
===
0
&&
this
.
properties
.
status
===
1
,
});
},
1000
);
},
...
...
pages/zeroSell/components/yohoodLottery/product-detail-header.js
View file @
a32365d
...
...
@@ -37,13 +37,16 @@ Component({
ready
:
function
()
{
const
timeId
=
setInterval
(()
=>
{
if
(
this
.
data
.
isEnd
)
{
this
.
triggerEvent
(
'changeStatus'
);
const
changeStatusTimeId
=
setTimeout
(()
=>
{
this
.
triggerEvent
(
'changeStatus'
);
clearTimeout
(
changeStatusTimeId
)
},
1000
);
clearInterval
(
timeId
);
}
const
formatTimeList
=
this
.
formatCountDown
();
this
.
setData
({
formatTimeList
:
formatTimeList
,
isEnd
:
formatTimeList
.
length
===
0
,
isEnd
:
formatTimeList
.
length
===
0
&&
this
.
properties
.
product
.
status
===
2
,
});
},
1000
);
},
...
...
pages/zeroSell/components/yohoodLottery/product-detail-header.wxml
View file @
a32365d
...
...
@@ -19,7 +19,7 @@
<text class="next-time">{{nextActivityTime}}</text>
</view>
<view class="avatarcontainer">
<view class="avatars" wx:if="{{
product.status === 2 &&
avatars.length > 0 && !show}}">
<view class="avatars" wx:if="{{avatars.length > 0 && !show}}">
<avatars list="{{avatars}}"></avatars>
</view>
<image class="product_image" src="{{product.cover_img}}"></image>
...
...
Please
register
or
login
to post a comment