修改领券中心bug

This commit is contained in:
qiaomu 2024-12-09 14:19:42 +08:00
parent fd7777e4f4
commit f6f1425cf5
3 changed files with 11 additions and 4 deletions

View File

@ -80,7 +80,7 @@ Page({
return
}
that.setData({
currentList: data
canGetList: data
})
})
},

View File

@ -3,7 +3,7 @@
<van-tabs active="{{ active }}" bind:change="onChange">
<van-tab title="我的优惠券">
<view wx:if="{{currentList.length}}">
<view wx:for="{{currentList}}" wx:key="id">
<view wx:for="{{currentList}}" wx:key="id" class="item">
<discount-coupon data="{{item}}" type="{{3}}" />
</view>
</view>
@ -11,7 +11,7 @@
</van-tab>
<van-tab title="领券中心">
<view wx:if="{{canGetList.length}}">
<view wx:for="{{canGetList}}" wx:key="id">
<view wx:for="{{canGetList}}" wx:key="id" class="item">
<discount-coupon data="{{item}}" type="{{1}}" bind:get="getCanGet" />
</view>
</view>

View File

@ -1 +1,8 @@
/* pages/discountCoupon/index.wxss */
/* pages/discountCoupon/index.wxss */
page {
background-color: rgb(242,243,245);
}
.item {
margin: 20rpx;
}