描述:没有优惠券

This commit is contained in:
SelfRidicule 2024-03-25 15:37:14 +08:00
parent 15e0d80c13
commit 490d6f0e9b
3 changed files with 24 additions and 7 deletions

View File

@ -1,7 +1,8 @@
{
"usingComponents": {
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index"
},
"navigationBarTitleText": "优惠劵"
"usingComponents": {
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-empty": "@vant/weapp/empty/index"
},
"navigationBarTitleText": "优惠劵"
}

View File

@ -1,9 +1,9 @@
<view class="containerView public">
<!-- 优惠卷列表 -->
<view class="couponView">
<view class="couponView" wx:if="{{dataList.length > 0}}">
<van-radio-group value="{{ couponId }}">
<view class="item" wx:for="{{dataList}}" wx:key="*this" data-id="{{item.ticketId}}" 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">
@ -21,6 +21,11 @@
</van-radio-group>
</view>
<!-- 没有优惠券 -->
<view class="noneView" wx:if="{{dataList.length <= 0}}">
<van-empty class="none-image" image="{{IMG_NAME + '/profile/static/meeting/coupon/none.png'}}" description="非常抱歉,您目前没有可用的优惠券" />
</view>
<view class="submitBtn" bind:tap="submit">确认</view>
</view>

View File

@ -77,3 +77,14 @@
opacity: 0.6;
}
.noneView{
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.none-image{
margin-top: -200rpx;
}