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
ff1e3295
Commit
ff1e3295
authored
Aug 05, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 集点列表点击事件
parent
c1babe98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
pointList.js
src/pages/pointList/pointList.js
+21
-2
pointList.wxml
src/pages/pointList/pointList.wxml
+1
-1
No files found.
src/pages/pointList/pointList.js
View file @
ff1e3295
...
...
@@ -30,9 +30,28 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
this
.
getPointList
()
},
getPointList
()
{
// wx.showLoading({
// title: '加载中'
// })
// wxService.get(`/member/memberPoint/getMyPointInfo`).then(res => {
// if(res) {
// const { result, data } = res.data
// if (result == 0) {
// wx.hideLoading()
// this.setData({
// integralNum: data && data.point || 0
// })
// }
// }
// })
},
handleDetail
(
e
)
{
const
{
index
}
=
e
.
currentTarget
.
dataset
console
.
log
(
'handleDetail'
,
index
)
},
/**
* 生命周期函数--监听页面隐藏
*/
...
...
src/pages/pointList/pointList.wxml
View file @
ff1e3295
<!--pages/pointList/pointList.wxml-->
<view class="point-list border_box">
<block wx:for="{{4}}" wx:for-item="item">
<view class="point border_box">
<view class="point border_box"
data-index="{{item}}" bindtap="handleDetail"
>
<status-img></status-img>
<view class="progress weui-flex df-j--bt">
<view class="rate">进度: <text class="rate-num">1</text>/5</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