123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <template>
- <view>
- <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="选择优惠券"></u-navbar>
- <view class="coupon-title">可用优惠券:0</view>
- <view class="coupon-list">
- <!-- <view class="flex coupon-list-item">
- <view class="flex coupon-list-item-info">
- <image src="../../static/logo.png" mode=""></image>
- <view class="flex content">
- <view class="txt">xx盲票优惠券</view>
- <view class="txt">使用期限:2022.03.02-2022.04.01</view>
- <view class="txt">适用范围:指定盲票</view>
- </view>
- <view class="money">
- <view class="">¥<text>10</text></view>
- </view>
- </view>
- <view class="checked">
- <view class="flex circle">
- <view class="action" v-if="actionIndex == 0"></view>
- </view>
- </view>
- </view> -->
- </view>
-
- <view class="flex empty" v-if="!list.length">
- <u-empty text="数据为空" mode="order" />
- </view>
-
- <view class="footer-fixed">
- <view class="flex btn">
- <button type="default" @click="exchange">确认</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- checked: false,
- actionIndex: 0,
- pageNum: 1,
- total: 0,
- list: [],
- };
- },
- methods:{
- changeChecked(e){
- console.log(e);
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .coupon {
- &-title {
- position: fixed;
- width: 100%;
- padding: 24rpx 32rpx;
- background-color: #FFFFFF;
- }
- &-list {
- margin-top: 100rpx;
- padding: 0 20rpx 100rpx;
- &-item {
- justify-content: space-between;
- padding: 20rpx;
- background-color: #FFFFFF;
- margin-bottom: 20rpx;
-
- &-info{
- flex: 1;
- justify-content: flex-start;
-
- image{
- width: 84rpx;
- height: 132rpx;
- margin-right: 20rpx;
- }
-
- .content{
- height: 132rpx;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-between;
- }
-
- .money{
- margin-left: 10rpx;
- font-weight: bold;
- text{
- font-size: 50rpx;
- }
- }
- }
-
- .circle{
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- border: 1px solid;
- }
-
- .action{
- width: 30rpx;
- height: 30rpx;
- border-radius: 50%;
- background-color: $uni-bg-color;
- }
- }
- }
- }
-
- .empty{
- height: 60vh;
- }
-
- .footer-fixed {
- position: fixed;
- bottom: var(--window-bottom);
- left: 0;
- right: 0;
- z-index: 11;
- box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
- background: #fff;
- // 设置ios刘海屏底部横线安全区域
- padding-bottom: constant(safe-area-inset-bottom);
- padding-bottom: env(safe-area-inset-bottom);
-
- .btn {
- padding: 20rpx 0;
-
- /deep/ button {
- width: 640rpx;
- height: 90rpx;
- line-height: 90rpx;
- font-size: 36rpx;
- color: #fff;
- background-color: $uni-bg-color;
- border: none;
- border-radius: 20rpx;
- }
- }
- }
- </style>
|