mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 16:39:37 +08:00
1
This commit is contained in:
parent
914dc02c62
commit
7a582220cd
@ -24,6 +24,14 @@ Page({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 点击-选择优惠卷
|
||||||
|
couponSelect(e) {
|
||||||
|
console.log('couponSelect', e);
|
||||||
|
this.setData({
|
||||||
|
couponId: e.currentTarget.dataset.id,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
*/
|
*/
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<!-- 优惠卷列表 -->
|
<!-- 优惠卷列表 -->
|
||||||
<view class="couponView">
|
<view class="couponView">
|
||||||
<van-radio-group value="{{ couponId }}" bind:change="couponChange">
|
<van-radio-group value="{{ couponId }}">
|
||||||
<view class="item" wx:for="{{3}}" wx:for-index="idx">
|
<view class="item" wx:for="{{3}}" wx:for-index="idx" data-id="{{idx}}" bind:tap="couponSelect">
|
||||||
<view class="imgView">
|
<view class="imgView">
|
||||||
<view class="img"></view>
|
<view class="img"></view>
|
||||||
<view class="timeView">
|
<view class="timeView">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user