Commit ff1e3295 by 高淑倩

add: 集点列表点击事件

parent c1babe98
......@@ -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)
},
/**
* 生命周期函数--监听页面隐藏
*/
......
<!--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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment