|
|
|
|
<!--pages/user/coupon/index.wxml-->
|
|
|
|
|
<title title="我的优惠券"></title>
|
|
|
|
|
<view class="types">
|
|
|
|
|
<view class="type-item{{index==0?' active':''}}" bindtap="changeType" data-index="0">可使用</view>
|
|
|
|
|
<view class="type-item{{index==1?' active':''}}" bindtap="changeType" data-index="1">已使用</view>
|
|
|
|
|
<view class="type-item{{index==2?' active':''}}" bindtap="changeType" data-index="2">已失效</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view style="height:100rpx"></view>
|
|
|
|
|
<view class="coupon-item{{index==0?' active':''}}" wx:for="{{list}}" wx:for-index="i">
|
|
|
|
|
<view class="title-box">
|
|
|
|
|
<view class="title textOver">{{item.activity.name}}</view>
|
|
|
|
|
<view class="coupon-money">
|
|
|
|
|
<view wx:if="{{item.activity.discount_type == 'pricebreak'}}">
|
|
|
|
|
¥<text>{{item.activity.money/100}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view wx:else>
|
|
|
|
|
<text>{{item.activity.fold}}折</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="coupon-tip"><text>使用条件:</text>满{{item.activity.mini_money/100}}元</view>
|
|
|
|
|
<view class="coupon-tip"><text>有效期:</text>{{item.end_time}} 前使用</view>
|
|
|
|
|
<view class="coupon-tip"><text>优惠码:</text>{{item.key}}</view>
|
|
|
|
|
<view class="line-box">
|
|
|
|
|
<view class="yuan l">
|
|
|
|
|
</view>
|
|
|
|
|
<view class="line">
|
|
|
|
|
</view>
|
|
|
|
|
<view class="yuan r">
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="coupon-rule">
|
|
|
|
|
<!-- <view bindtap="showRule" data-item="{{item}}">使用规则 <text class="iconfont icon-xia"></text></view> -->
|
|
|
|
|
<view>使用规则</view>
|
|
|
|
|
<view class="rule-text">
|
|
|
|
|
{{item.note}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="coupon-item">
|
|
|
|
|
<view class="title-box">
|
|
|
|
|
<view class="title textOver">优惠券名称 优惠券名称 优惠券名称 优惠券名称 优惠券名称 优惠券名称 </view>
|
|
|
|
|
<view class="coupon-money">¥<text>15</text></view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="coupon-tip"><text>使用条件:</text>全场可用</view>
|
|
|
|
|
<view class="coupon-tip"><text>有效期:</text>全场可用</view>
|
|
|
|
|
<view class="coupon-tip"><text>优惠码:</text>全场可用</view>
|
|
|
|
|
<view class="coupon-rule">使用规则 <text class="iconfont icon-xia"></text></view>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view style="height:110rpx"></view>
|
|
|
|
|
<navigator url="../couponCenter/index" class="fixed-btn">前往<text>领券中心</text></navigator>
|
|
|
|
|
<view wx:if="{{list.length==0}}" class="common-empty" style="z-index:-1">
|
|
|
|
|
<image mode="widthFix" src="https://static.ticket.sz-trip.com/xcxImages/other/nodata.png"></image>
|
|
|
|
|
<view>暂无内容</view>
|
|
|
|
|
</view>
|