Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
16784352
Commit
16784352
authored
Aug 07, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 集点列表_不满1小时,按1小时算
parent
0e60050d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
pointList.js
src/pages/pointList/pointList.js
+1
-0
pointList.wxml
src/pages/pointList/pointList.wxml
+3
-1
No files found.
src/pages/pointList/pointList.js
View file @
16784352
...
...
@@ -50,6 +50,7 @@ wxService.page({
ms
:
'00'
,
isOver
:
true
,
};
if
(
distancetime
>
0
)
{
//如果大于0.说明尚未到达截止时间
result
.
ms
=
Math
.
floor
((
distancetime
%
1000
)
/
100
);
...
...
src/pages/pointList/pointList.wxml
View file @
16784352
...
...
@@ -9,7 +9,9 @@
/ {{item.goal}}
</view>
<view class="time-out">距离结束时间:
<text class="time">{{item.countdown.day}}天{{item.countdown.hour}}小时</text>
<!-- 不满1小时,按1小时算-->
<!--<text class="time">{{item.countdown.day}}天{{item.countdown.hour}}小时</text>-->
<text class="time">{{item.countdown.day}}天{{item.countdown.min <= 59 ? item.countdown.hour + 1: item.countdown.hour}}小时</text>
</view>
</view>
</view>
...
...
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