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
8705194c
Commit
8705194c
authored
Aug 07, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 已集点数
parent
767c4d3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
pointDetail.wxml
src/pages/pointDetail/pointDetail.wxml
+5
-9
tools.wxs
src/pages/pointDetail/tools.wxs
+6
-0
pointList.wxml
src/pages/pointList/pointList.wxml
+2
-1
No files found.
src/pages/pointDetail/pointDetail.wxml
View file @
8705194c
<!--pages/pointDetail/pointDetail.wxml-->
<wxs src="./tools.wxs" module="tools" />
<status-img imgHeight="{{imgHeight}}" img="{{detailImage}}" />
<view class="detail-info border_box">
<view class="info-top weui-flex df-j--bt">
<view class="info-num">
进度:
<text class="point_color"> {{countObj.
surplusPoints
}}</text>
<text class="point_color"> {{countObj.
totalPoints ? countObj.totalPoints % item.goal : 0
}}</text>
/ {{goal}}
</view>
<view class="info-ready-num">
已达成 {{countObj.exchangeCount}} 次
<!-- 已达成次数 总集点数/目标节点 取整 -->
已达成 {{countObj.totalPoints ? tools.parse(countObj.totalPoints / item.goal) : 0}} 次
</view>
</view>
<view class="info-progress border_box">
...
...
@@ -18,13 +21,6 @@
stroke-width='20'
radius='20'
/>
<!--<progress
percent="{{50}}"
activeColor="#05C35B"
stroke-width="10"
active
border-radius="{{20}}"
/>-->
</view>
<!-- 活动剩余点数 >= 目标点数 wx:if="{{countObj.surplusPoints >= goal}}"-->
<button
...
...
src/pages/pointDetail/tools.wxs
0 → 100644
View file @
8705194c
var parse = function(str) {
return parseInt(str);
};
module.exports.parse = parse;
\ No newline at end of file
src/pages/pointList/pointList.wxml
View file @
8705194c
...
...
@@ -5,7 +5,8 @@
<status-img img="{{item.listImage}}" />
<view class="progress weui-flex df-j--bt">
<view class="rate">进度:
<text class="point_color">{{item.surplusPoints}}</text>
<!--<text class="point_color">{{item.surplusPoints}}</text> -->
<text class="point_color">{{item.totalPoints ? item.totalPoints % item.goal : 0}}</text>
/ {{item.goal}}
</view>
<view class="time-out">距离结束时间:
...
...
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