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
c55ac5ac
Commit
c55ac5ac
authored
Aug 05, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 进度条
parent
653a96d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
pointDetail.js
src/pages/pointDetail/pointDetail.js
+6
-2
pointDetail.wxml
src/pages/pointDetail/pointDetail.wxml
+1
-1
No files found.
src/pages/pointDetail/pointDetail.js
View file @
c55ac5ac
...
...
@@ -22,7 +22,8 @@ wxService.page({
popupType
:
0
,
// 默认不跳转 1 优惠券 2 积分
goal
:
0
,
detailImage
:
''
,
countObj
:
null
countObj
:
null
,
currentPercent
:
0
// 当前进度
},
/**
...
...
@@ -41,6 +42,7 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
activityId
:
data
.
id
,
type
:
data
.
type
,
...
...
@@ -67,7 +69,9 @@ wxService.page({
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
countObj
:
data
countObj
:
data
,
currentPercent
:
(
100
/
5
)
*
2
// currentPercent: (100 / this.data.goal) * data.surplusPoints
})
}
}
...
...
src/pages/pointDetail/pointDetail.wxml
View file @
c55ac5ac
...
...
@@ -13,7 +13,7 @@
</view>
<view class="info-progress border_box">
<progress
percent="
100
"
percent="
{{currentPercent}}
"
activeColor="#C09A74"
stroke-width="10"
active
...
...
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