1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <view class="topBoxs flex ju-b">
- <!-- <van-field input-class="input" placeholder="请输入您的优惠码" custom-style="padding:0" border="{{ false }}" bind:change="changeBtn" clearable /> -->
- <view class="input flex ju-b">
- <input class="" value="{{code}}" type="text" placeholder="请输入您的优惠码" bindinput="changeBtn" />
- <van-icon name="close" wx:if="{{isNum}}" bindtap="clearValue"/>
- </view>
- <view class="now {{isNum?'skyBlue' : 'gray'}}" bindtap="exchange">立即兑换</view>
- </view>
- <view class="listBoxs" >
- <view class="itemBoxs {{currtime>item.use_end_time?'opct' : ''}}" wx:for="{{shopping}}" wx:key="{{index}}">
- <view class="top ">
- <view class="le flex ju-b">
- <view class="tit">{{item.title}}</view>
- <view class="num">
- <text class="logo">¥</text>
- <text>{{item.money}}</text>
- </view>
- </view>
- <view class="lr flex ju-b">
- <view class="time">{{item.use_end_time}}到期</view>
- <view class="old">
- 满{{item.full}}可用
- </view>
- </view>
- </view>
- <view class="line"></view>
- <view class="footer flex ju-b">
- <view class="le " bindtap="change">
- <collapse list="{{[item.desc||'无']}}"></collapse>
- </view>
- <button open-type="share" data-id="{{1}}" wx:if="{{item.is_share==1}}" class="lr">分享好友</button>
- <image src="/image/coupon/yilingqu.png" class="guoqi" wx:if="{{currtime>item.use_end_time}}"></image>
- </view>
- </view>
- </view>
- <van-empty
- wx:if="{{shopping.length == 0}}"
- class="custom-image"
- image="/image/coupon/no-coupons.png"
- description="暂无优惠券"
- />
- <!-- <view class="footerTips flex ju-b">
- <view class="le flex">
- <text>优惠券使用说明</text>
- <van-icon name="arrow" color="#A5A8AD" size="20rpx" />
- </view>
- <view class="line"></view>
- <view class="lr flex">
- <text>查看过期优惠券</text>
- <van-icon name="arrow" color="#A5A8AD" size="20rpx" />
- </view>
- </view> -->
- <toast id='toast' icon="/image/icon/tips.png">
- </toast>
|