clerk.wxml 3.5 KB

1
  1. <app-layout vue-id="c691d8de-1" class="data-v-459af59a" bind:__l="__l" vue-slots="{{['default']}}"><view class="box data-v-459af59a"><view class="item data-v-459af59a"><block wx:if="{{detail.name}}"><view class="order-info data-v-459af59a"><view class="dir-left-nowrap data-v-459af59a"><view class="info-label data-v-459af59a">收货人:</view><view class="data-v-459af59a"><view class="data-v-459af59a">{{detail.name}}</view></view></view><view class="dir-left-nowrap data-v-459af59a"><view class="info-label data-v-459af59a">联系方式:</view><view class="data-v-459af59a"><view class="data-v-459af59a">{{detail.mobile}}</view></view></view></view></block><view class="card-info data-v-459af59a"><image class="card-img data-v-459af59a" src="{{detail.pic_url}}"></image><view class="card-name t-omit-two data-v-459af59a">{{detail.card_name}}</view><view class="card-other data-v-459af59a"><view class="other-label data-v-459af59a">有效时间</view><view class="data-v-459af59a">{{detail.start_time+" - "+detail.end_time}}</view><view class="other-label data-v-459af59a">发放时间</view><view class="data-v-459af59a">{{detail.created_at}}</view><view class="other-label data-v-459af59a">使用说明</view><text class="data-v-459af59a">{{detail.content}}</text></view></view><view class="order-info data-v-459af59a"><view style="margin-bottom:24rpx;" class="data-v-459af59a">核销信息</view><view class="dir-left-nowrap data-v-459af59a"><view class="info-label data-v-459af59a">剩余次数:</view><view class="data-v-459af59a"><view class="data-v-459af59a">{{detail.number-detail.use_number+"次"}}</view></view></view><view class="dir-left-nowrap data-v-459af59a"><view class="info-label data-v-459af59a">已核销次数:</view><view class="data-v-459af59a"><view class="data-v-459af59a">{{detail.use_number+"次"}}</view></view></view><view class="dir-left-nowrap data-v-459af59a"><view class="info-label data-v-459af59a">总次数:</view><view class="data-v-459af59a"><view class="data-v-459af59a">{{detail.number+"次"}}</view></view></view></view></view><view class="bottom cross-center data-v-459af59a"><block wx:if="{{detail.is_use==0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e" class="data-v-459af59a"><button class="submit-btn data-v-459af59a">核销卡券</button></view></block></view></view><block wx:if="{{msg||submit}}"><view data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" class="bg cross-center main-center data-v-459af59a" catchtouchmove="__e"><view class="dialog data-v-459af59a"><view class="title data-v-459af59a">{{submit?'输入本次核销次数':'提示'}}</view><block wx:if="{{msg}}"><view class="dialog-content data-v-459af59a">{{msg}}</view></block><block wx:if="{{submit}}"><view class="dialog-content data-v-459af59a"><input class="input-number data-v-459af59a" type="number" data-event-opts="{{[['input',[['__set_model',['','useNumber','$event',[]]]]]]}}" value="{{useNumber}}" bindinput="__e"/>次</view></block><block wx:if="{{msg}}"><view data-event-opts="{{[['tap',[['closeDialog',['$event']]]]]}}" class="dialog-btn data-v-459af59a" bindtap="__e">确认</view></block><block wx:if="{{submit}}"><view class="dialog-btn main-center cross-center data-v-459af59a"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" style="color:#666666;width:50%;" bindtap="__e" class="data-v-459af59a">取消</view><view class="line data-v-459af59a"></view><view data-event-opts="{{[['tap',[['clerk',['$event']]]]]}}" style="width:50%;" bindtap="__e" class="data-v-459af59a">确定</view></view></block></view></view></block></app-layout>