12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <view class='page'>
- <include src='/components/common/common'></include>
- <include src='/components/header/header'></include>
- <view class='body after-navber'>
- <view class='info'>
- <view class='info-list' style='width:100%;'>
- <block wx:for='{{coupon_list}}' wx:for-item='coupon' wx:for-index='index' wx:key='id'>
- <block wx:if='{{coupon.discount_type == 2}}'>
- <view class='info-one'>
- <block wx:if='{{coupon.is_receive == 0}}'>
- <image src='{{__wxapp_img.coupon.enabled.url}}'></image>
- </block>
- <block wx:if='{{coupon.is_receive == 1}}'>
- <image src='{{__wxapp_img.coupon.disabled.url}}'></image>
- </block>
- <view class='info-content flex-row flex-x-center flex-y-center fs-b'>
- <navigator class="info-content" openType='navigateTo' url='/pages/coupon-detail/coupon-detail?coupon_id={{coupon.id}}'>
- <view class="couponName">{{coupon.name}}</view>
- <view class='flex-row flex-x-center flex-y-center'>
- <view class='flex-grow-0'>
- <view class='flex-row flex-y-bottom'>
- <view class='flex-grow-0'>¥</view>
- <view class='flex-grow-1' style='font-size:23pt;'>{{coupon.sub_price}}</view>
- </view>
- </view>
- <view class='flex-grow-1'>
- <view style='margin-left:16rpx;'>
- <view style='margin-bottom:4rpx;'>优惠券</view>
- <view>满{{coupon.min_price}}可用</view>
- </view>
- </view>
- </view>
- </navigator>
- <view class='flex-grow-0'>
- <block wx:if='{{coupon.is_receive == 0}}'>
- <view bindtap='receive' class='flex-x-center flex-y-center info-btn fs-sm' data-index='{{coupon.id}}' style='color:#ff4544;'>立即领取</view>
- </block>
- <block wx:if='{{coupon.is_receive == 1}}'>
- <view class='flex-x-center flex-y-center info-btn fs-sm' style='color:#999;'>已领取</view>
- </block>
- </view>
- </view>
- <view class='info-footer fs-sm'>
- <block wx:if='{{coupon.expire_type == 2}}'>
- <view class='info-day'>有效日期:{{coupon.begintime}}-{{coupon.endtime}}</view>
- </block>
- <block wx:if='{{coupon.expire_type == 1}}'>
- <view class='info-day'>有效日期:领取{{coupon.expire_day}}天内有效</view>
- </block>
- <view>
- <block wx:if='{{ (coupon.appoint_type == 2 && coupon.goods.length > 0) }}'>
- <view bindtap='goodsList' data-goods='{{coupon.goods}}'>指定商品使用 点进去查看指定商品</view>
- </block>
- <block wx:else>
- <view>{{coupon.content}}</view>
- </block>
- </view>
- </view>
- </view>
- </block>
- </block>
- </view>
- <block wx:if='{{coupon_list.length <= 0}}'>
- <view class='flex-x-center'><text style='margin-top:50rpx;'>暂无优惠券</text></view>
- </block>
- </view>
- </view>
- <include src='/components/footer/footer'></include>
- <include src='/components/get-coupon/get-coupon.wxml'></include>
- </view>
|