mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 14:19:38 +08:00
1
This commit is contained in:
parent
bcfaf78e7c
commit
f394ce42ad
@ -15,7 +15,7 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
IMG_NAME: app.IMG_NAME,
|
||||
couponId: '',
|
||||
couponId: null,
|
||||
dataList: [],
|
||||
userDetail: {}
|
||||
},
|
||||
|
@ -3,7 +3,7 @@
|
||||
<!-- 优惠卷列表 -->
|
||||
<view class="couponView">
|
||||
<van-radio-group value="{{ couponId }}">
|
||||
<view class="item" wx:for="{{dataList}}" wx:key="*this" data-id="{{item.id}}" data-isDisable="{{item.isDisable}}" bind:tap="couponSelect">
|
||||
<view class="item" wx:for="{{dataList}}" wx:key="*this" data-id="{{item.ticketId}}" data-isDisable="{{item.isDisable}}" bind:tap="couponSelect">
|
||||
<view class="imgView">
|
||||
<image class="img" src="{{IMG_NAME + '/profile/static/meeting/coupon/couponBg.png'}}" mode="aspectFill"></image>
|
||||
<view class="timeView">
|
||||
@ -16,7 +16,7 @@
|
||||
<view class="platform">适用平台: {{item.content}}</view>
|
||||
<view class="validityTime">{{item.startTime}}~{{item.endDate}}</view>
|
||||
</view>
|
||||
<van-radio name="{{item.id}}" disabled="{{item.isDisable}}"></van-radio>
|
||||
<van-radio name="{{item.ticketId}}" disabled="{{item.isDisable}}"></van-radio>
|
||||
</view>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
|
@ -206,7 +206,7 @@ Page({
|
||||
let _this = this
|
||||
// 更新选择的优惠卷
|
||||
if (_this.data.couponId) {
|
||||
let couponData = _this.data.couponList.find(item => item.id == _this.data.couponId)
|
||||
let couponData = _this.data.couponList.find(item => item.ticketId == _this.data.couponId)
|
||||
_this.setData({
|
||||
couponData
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user