Commit 196898cd by 高淑倩

modify: 积分列表跳转传参

parent 9cc3819e
......@@ -60,8 +60,12 @@ wxService.page({
},
// 消费详情
handleGoDetail(e) {
const {memberid} = e.currentTarget.dataset
wxService.router(`/pages/consumptionDetails/consumptionDetails`).search({memberid})
const {memberid,expandinfo} = e.currentTarget.dataset
// orderNo 存在 跳转订单详情
if(expandinfo && expandinfo.orderNo){
let orderNo = expandinfo.orderNo
wxService.router(`/pages/consumptionDetails/consumptionDetails`).search({orderNo})
}
},
/**
* 生命周期函数--监听页面隐藏
......
......@@ -16,7 +16,7 @@
</view>
<!--积分列表-->
<view>
<view class="detail-integral" wx:for="{{integralList}}" wx:for-item="item" data-memberId = "{{item.memberId}}" wx:for-index="k" wx:key="{{k}}" bindtap="handleGoDetail">
<view class="detail-integral" wx:for="{{integralList}}" wx:for-item="item" data-memberId = "{{item.memberId}}" data-expandInfo= "{{item.expandInfo}}" wx:for-index="k" wx:key="{{k}}" bindtap="handleGoDetail">
<view>
<view class="detail-title">{{item.changeChannel}}</view>
<view class="detail-time">{{item.createTime}}</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