1 |
- <app-layout vue-id="67913780-1" class="data-v-20081fb1" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!toSearch}}"><view style="z-index:50;" class="data-v-20081fb1"><block wx:if="{{is_mall}}"><view class="status data-v-20081fb1"><view class="status-list main-between data-v-20081fb1"><view data-event-opts="{{[['tap',[['tab',[1]]]]]}}" class="{{['data-v-20081fb1',''+(status==1?'active':''),'left-status']}}" bindtap="__e">订单</view><view data-event-opts="{{[['tap',[['tab',[2]]]]]}}" class="{{['data-v-20081fb1',''+(status==2?'active':''),'right-status']}}" bindtap="__e">卡券</view></view></view></block><view class="{{['data-v-20081fb1','search',''+(is_mall?'':'no-mall')]}}"><view data-event-opts="{{[['tap',[['beSearch',['$event']]]]]}}" class="main-center search-content cross-center data-v-20081fb1" bindtap="__e"><image src="/static/image/icon/icon-search.png" class="data-v-20081fb1"></image><text class="data-v-20081fb1">搜索</text></view></view><app-tab-nav vue-id="{{('67913780-2')+','+('67913780-1')}}" setTop="190" placeHeight="{{placeHeight}}" setHeight="96" tabList="{{tabList}}" padding="0" activeItem="{{activeTab}}" theme="{{theme}}" data-event-opts="{{[['^click',[['tabStatus']]]]}}" bind:click="__e" class="data-v-20081fb1" bind:__l="__l"></app-tab-nav><block wx:if="{{_num==2}}"><view data-event-opts="{{[['tap',[['scan',['$event']]]]]}}" class="scan data-v-20081fb1" bindtap="__e"><image src="./../image/scan.png" class="data-v-20081fb1"></image></view></block></view></block><block wx:if="{{toSearch}}"><view class="search-item main-between cross-center data-v-20081fb1"><view class="search-input data-v-20081fb1"><image src="/static/image/icon/icon-search.png" class="data-v-20081fb1"></image><block wx:if="{{status==1&&toSearch}}"><input focus="{{true}}" confirm-type="search" placeholder-style="color:#999999;font-size:13px;" placeholder="输入订单号/商品名称/店铺名称搜索" data-event-opts="{{[['confirm',[['search',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e" class="data-v-20081fb1"/></block><block wx:if="{{status==2&&toSearch}}"><input focus="{{true}}" confirm-type="search" placeholder-style="color:#999999;font-size:13px;" placeholder="输入卡券名称/用户昵称搜索" data-event-opts="{{[['confirm',[['search',['$event']]]],['input',[['__set_model',['','keyword','$event',[]]]]]]}}" value="{{keyword}}" bindconfirm="__e" bindinput="__e" class="data-v-20081fb1"/></block></view><view data-event-opts="{{[['tap',[['cancelSeacrch',['$event']]]]]}}" bindtap="__e" class="data-v-20081fb1">取消</view></view></block><block wx:if="{{!searchResult&&toSearch}}"><view class="{{['data-v-20081fb1','search-history',''+(list.length==0?'':'go-out')]}}"><block wx:if="{{candidate.length!=0}}"><view class="main-between search-title data-v-20081fb1"><view class="data-v-20081fb1">历史搜索</view><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" bindtap="__e" class="data-v-20081fb1"><image class="history-img data-v-20081fb1" src="/static/image/icon/delete.png"></image></view></view></block><view class="flex-wrap history-list data-v-20081fb1"><block wx:for="{{candidate}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><view data-event-opts="{{[['tap',[['keywordSearch',['$0'],[[['candidate','',__i0__]]]]]]]}}" class="keyword-item box-grow-0 data-v-20081fb1" bindtap="__e"><text class="t-omit data-v-20081fb1">{{item}}</text></view></block></view></view></block><block wx:if="{{toSearch}}"><view class="search-place data-v-20081fb1"></view></block><block wx:if="{{status==1}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i1__" wx:key="id"><view class="item data-v-20081fb1"><view class="main-between item-top data-v-20081fb1"><view class="shop data-v-20081fb1"><image src="./../image/shop.png" class="data-v-20081fb1"></image><text class="data-v-20081fb1">{{item.store.name}}</text></view><block wx:if="{{item.clerk_id>0}}"><view class="item-status data-v-20081fb1">已核销</view></block><block wx:else><block wx:if="{{item.cancel_status==1}}"><view class="item-status data-v-20081fb1">已退款</view></block><block wx:else><view class="item-status data-v-20081fb1">未核销</view></block></block></view><view data-event-opts="{{[['tap',[['toDetail',['$0'],[[['list','id',item.id,'id']]]]]]]}}" bindtap="__e" class="data-v-20081fb1"><block wx:for="{{item.detail}}" wx:for-item="goods" wx:for-index="__i2__" wx:key="id"><view class="goods data-v-20081fb1" style="{{'margin-top:'+((index==0?'0':'12')+'px')+';'}}"><image src="{{goods.goods.goodsWarehouse.cover_pic}}" class="data-v-20081fb1"></image><view class="goods-info data-v-20081fb1"><view class="goods-name t-omit-two data-v-20081fb1">{{goods.goods.goodsWarehouse.name}}</view><view class="goods-attr data-v-20081fb1"><block wx:for="{{goods.attr_list}}" wx:for-item="attr" wx:for-index="__i3__" wx:key="id"><text class="data-v-20081fb1">{{''+attr.attr_group_name+":"+attr.attr_name+''}}</text></block></view><view class="data-v-20081fb1">{{"x"+goods.num}}</view></view><view class="goods-price data-v-20081fb1">{{"¥ "+goods.total_price}}</view></view></block></view><view class="total data-v-20081fb1">合计<text class="data-v-20081fb1">{{"¥"+item.total_pay_price}}</text>{{'(含运费¥'+item.express_price+')'}}</view><block wx:if="{{item.clerk_id==0&&item.cancel_status!=1}}"><view class="dir-right-nowrap data-v-20081fb1"><block wx:if="{{item.refund}}"><view class="refund-text data-v-20081fb1">{{item.refund}}</view></block><block wx:else><view data-event-opts="{{[['tap',[['toClerk',['$0'],[[['list','id',item.id,'id']]]]]]]}}" class="clerk-btn dir-right-nowrap data-v-20081fb1" bindtap="__e"><button class="data-v-20081fb1">核销</button></view></block></view></block></view></block></block><block wx:if="{{status==2}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i4__" wx:key="id"><view class="item card-item data-v-20081fb1"><image class="card-img data-v-20081fb1" src="{{item.pic_url}}"></image><view data-event-opts="{{[['tap',[['toCardDetail',['$0'],[[['list','id',item.id,'id']]]]]]]}}" bindtap="__e" class="data-v-20081fb1"><view class="t-omit-two card-name data-v-20081fb1">{{item.name}}</view><view class="surplus-number data-v-20081fb1">{{"剩余"+(item.number-item.use_number)+"次"}}</view><view class="dir-left-nowrap platform cross-center data-v-20081fb1"><block wx:if="{{item.platform=='wxapp'}}"><image class="platform-img data-v-20081fb1" src="./../image/wx.png"></image></block><block wx:if="{{item.platform=='aliapp'}}"><image class="platform-img data-v-20081fb1" src="./../image/ali.png"></image></block><view class="data-v-20081fb1">{{item.nickname}}</view></view></view><view class="cross-center card-clerk data-v-20081fb1"><block wx:if="{{item.is_use==0}}"><view data-event-opts="{{[['tap',[['toClerkCard',['$0'],[[['list','id',item.id,'id']]]]]]]}}" class="clerk-btn dir-right-nowrap data-v-20081fb1" bindtap="__e"><button class="data-v-20081fb1">核销</button></view></block><block wx:else><image class="clerked-img data-v-20081fb1" src="./../image/clerked.png"></image></block></view></view></block></block><block wx:if="{{list.length==0&&status==1}}"><view class="no-tip data-v-20081fb1"><image src="{{clerkImg.order}}" class="data-v-20081fb1"></image><view class="data-v-20081fb1">没有任何订单哦~</view></view></block><block wx:if="{{list.length==0&&status==2}}"><view class="no-tip data-v-20081fb1"><image src="{{clerkImg.card}}" class="data-v-20081fb1"></image><view class="data-v-20081fb1">没有任何卡券哦~</view></view></block></app-layout>
|