1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <view class="container">
- <image src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/ucenter/pre-bk.png?1" style="width: 100%;height: 320rpx;"/>
- <view class="b">
- <view class="coupon-form">
- <view class="input-box">
- <input class="coupon-sn" placeholder="请输入参团手机号" value="{{code}}" bindinput="bindExchange" />
- <van-icon name="close" class="clear-icon" wx:if="{{ code.length > 0 }}" catchtap="clearExchange" />
- </view>
- <view class="add-btn" bindtap='getCouponList'>查询</view>
- </view>
- <scroll-view scroll-y="true" scroll-top="{{scrollTop}}" class="my-coupon-list">
- <view wx:for="{{couponList}}" wx:for-index="index" wx:for-item="item" wx:key="id" class="my-coupon-item-valid">
- <view wx:if="{{item.exchangeTime}}" class="marker">已兑换</view>
- <view class="coupon-top">
-
- <view class="coupon-top-content">
- <view class="coupon-valid-name">{{item.pkName}}</view>
- <view>有效期至:{{item.endTime}}</view>
- </view>
- </view>
- <view class="coupon-bottom">
- <view><text wx:if="{{item.exchangeTime}}">兑换时间:{{item.exchangeTime}}</text></view>
- <view wx:if="{{!item.exchangeTime}}" class="coupon-top-right" data-id="{{item.pkCode}}" bindtap="goService">
- 立即兑换
- </view>
- <view wx:else="" class="coupon-top-right" data-id="{{item.pkCode}}" bindtap="goCouponList">
- 查看优惠券
- </view>
- </view>
- </view>
- <!-- <view class="page" wx:if="{{showPage}}">
- <view class="prev {{ page <= 1 ? 'disabled' : ''}}" bindtap="prevPage">上一页</view>
- <view class="next {{ (count / size) < page ? 'disabled' : ''}}" bindtap="nextPage">下一页</view>
- </view> -->
- </scroll-view>
-
- <view class="no-list" wx:if="{{couponList==0}}">没有团购券了</view>
- </view>
- </view>
|