1 |
- <app-layout vue-id="45c27d6c-1" class="data-v-07a4ed66" bind:__l="__l" vue-slots="{{['default']}}"><view class="nav main-center cross-center data-v-07a4ed66"><block wx:if="{{coupon.coupon.type==2}}"><view class="price data-v-07a4ed66">¥<block wx:if="{{coupon.coupon.sub_price>99999}}"><text style="font-size:22px;" class="data-v-07a4ed66">{{coupon.coupon.sub_price}}</text></block><block wx:else><block wx:if="{{coupon.coupon.sub_price>9999}}"><text style="font-size:26px;" class="data-v-07a4ed66">{{coupon.coupon.sub_price}}</text></block><block wx:else><block wx:if="{{coupon.coupon.sub_price>999}}"><text style="font-size:32px;" class="data-v-07a4ed66">{{coupon.coupon.sub_price}}</text></block><block wx:else><block wx:if="{{coupon.coupon.sub_price>99}}"><text style="font-size:36px;" class="data-v-07a4ed66">{{coupon.coupon.sub_price}}</text></block><block wx:else><text class="data-v-07a4ed66">{{coupon.coupon.sub_price}}</text></block></block></block></block></view></block><block wx:if="{{coupon.coupon.type==1}}"><view class="price data-v-07a4ed66"><text class="data-v-07a4ed66">{{coupon.coupon.discount}}</text>折</view></block><view class="right dir-top-nowrap main-center data-v-07a4ed66"><text class="name data-v-07a4ed66">{{coupon.coupon.name}}</text><text class="data-v-07a4ed66">{{"满"+coupon.coupon.min_price+"元可用"}}</text><block wx:if="{{coupon.coupon.discount_limit}}"><text class="data-v-07a4ed66">{{"优惠上限:¥"+coupon.coupon.discount_limit}}</text></block></view></view><view class="need-price data-v-07a4ed66"><text class="data-v-07a4ed66">{{coupon.integral_num}}</text>积分<block wx:if="{{coupon.price>0}}"><text style="font-size:16px;" class="data-v-07a4ed66">+¥</text></block><block wx:if="{{coupon.price>0}}"><text class="data-v-07a4ed66">{{coupon.price}}</text></block></view><view class="about data-v-07a4ed66"><view class="title data-v-07a4ed66"><view class="data-v-07a4ed66"></view><text class="data-v-07a4ed66">优惠券说明</text></view><block wx:if="{{coupon.coupon.expire_type==1}}"><view class="data-v-07a4ed66">{{"优惠券有效期:兑换后"+coupon.coupon.expire_day+"天"}}</view></block><block wx:if="{{coupon.coupon.expire_type==2}}"><view class="data-v-07a4ed66">{{"优惠券有效期:"+coupon.coupon.begin_time+"-"+coupon.coupon.end_time}}</view></block><view class="data-v-07a4ed66">适用范围:<block wx:if="{{coupon.coupon.appoint_type==1}}"><text class="data-v-07a4ed66">以下指定分类商品适用:<block wx:for="{{coupon.coupon.cat}}" wx:for-item="item" wx:for-index="index" wx:key="name"><text class="data-v-07a4ed66"><block wx:if="{{index!=0}}"><text class="data-v-07a4ed66">、</text></block><text class="data-v-07a4ed66">{{item.name}}</text></text></block></text></block><block wx:if="{{coupon.coupon.appoint_type==2}}"><text class="data-v-07a4ed66"><block wx:for="{{coupon.coupon.goods}}" wx:for-item="item" wx:for-index="index" wx:key="name"><text class="data-v-07a4ed66"><block wx:if="{{index!=0}}"><text class="data-v-07a4ed66">、</text></block><text class="data-v-07a4ed66">{{item.name}}</text></text></block></text></block><block wx:if="{{coupon.coupon.appoint_type==3}}"><text class="data-v-07a4ed66">全场通用</text></block><block wx:if="{{coupon.coupon.appoint_type==4}}"><text class="data-v-07a4ed66">仅限当面付活动使用</text></block></view><view class="content data-v-07a4ed66">{{"使用说明:"+coupon.coupon.rule}}</view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['data-v-07a4ed66','exchange',iphone_x?'iphone_x':'']}}" bindtap="__e"><view class="coupon-exchange data-v-07a4ed66">立即兑换</view></view><block wx:if="{{exchangeCoupon}}"><view class="dialog-bg data-v-07a4ed66"><view class="dialog-tip data-v-07a4ed66"><view class="dialog-title data-v-07a4ed66">提示</view><view class="dialog-msg data-v-07a4ed66">确定使用<block wx:if="{{coupon.integral_num>0}}"><text class="data-v-07a4ed66"><text style="color:#ff4544;" class="data-v-07a4ed66">{{coupon.integral_num}}</text>积分</text></block><block wx:if="{{coupon.price>0}}"><text class="data-v-07a4ed66"><block wx:if="{{coupon.integral_num>0}}"><text class="data-v-07a4ed66">与</text></block><text style="color:#ff4544;" class="data-v-07a4ed66">{{coupon.price}}</text>元</text></block>兑换此优惠券?</view><view class="dialog-btn main-center data-v-07a4ed66"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="dialog-close data-v-07a4ed66" bindtap="__e">取消</view><view class="line data-v-07a4ed66"></view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="dialog-submit data-v-07a4ed66" bindtap="__e">确认</view></view></view></view></block><block wx:if="{{lose||success}}"><view class="dialog-bg data-v-07a4ed66"><view class="dialog data-v-07a4ed66"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" bindtap="__e" class="data-v-07a4ed66"><image class="close data-v-07a4ed66" src="/static/image/icon/icon-close.png"></image></view><block wx:if="{{lose}}"><view class="lose data-v-07a4ed66"><image class="lose-img data-v-07a4ed66" src="./../image/lose.png"></image><view class="lose-title data-v-07a4ed66">兑换失败!</view><view class="data-v-07a4ed66">当前积分不足</view></view></block><block wx:if="{{success}}"><view class="success data-v-07a4ed66"><image class="success-head data-v-07a4ed66" src="{{integralImg.app_image.success}}"></image><view class="data-v-07a4ed66">恭喜您,兑换成功!</view><view class="main-between success-btn data-v-07a4ed66"><view data-event-opts="{{[['tap',[['toList',['$event']]]]]}}" bindtap="__e" class="data-v-07a4ed66"><button class="to-card data-v-07a4ed66">去卡券包</button></view><view data-event-opts="{{[['tap',[['toList',['$event']]]]]}}" bindtap="__e" class="data-v-07a4ed66"><button class="to-use data-v-07a4ed66">立即使用</button></view></view></view></block></view></view></block></app-layout>
|