index.wxml
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--pack-activity/pages/index.wxml-->
<nav hasHome>周到安排</nav>
<view class="pages">
<view class="content">
<jinduBar checkout="{{checkout}}"></jinduBar>
</view>
<!--//买单相关(可选)-->
<block wx:if="{{checkout.status<1}}">
<view class="content checkout">
<view class="title">买单相关(可选)</view>
<view class="item flex-lr">
<view>剩余酒水饮料需要退</view>
<switch color="#C0A369" bindchange="checkoutData" data-type="is_wine"/>
</view>
<view class="item flex-lr">
<view>菜品打包</view>
<switch color="#C0A369" bindchange="checkoutData" data-type="is_pack"/>
</view>
</view>
<view class="checkout-get" bindtap="checkoutInit">获取消费金额</view>
</block>
<block wx:elif="{{checkout.status==1}}">
<view class="content checkout" wx:if="{{checkout.is_pack==1 || checkout.is_wine==1}}">
<view class="title">已提交信息</view>
<view class="item flex-lr" wx:if="{{checkout.is_wine==1}}">
<view>有剩余酒水饮料要退</view>
</view>
<view class="item flex-lr" wx:if="{{checkout.is_pack==1}}">
<view>菜品打包</view>
</view>
</view>
<view class="content invoice">
<view class="title">提前开发票</view>
<view class="item flex-lr" bindtap="setInvoice">
<view>发票</view>
<invoice bindevent="setInvoice">
<view class="flex-rr invoice-right">
<view class="title {{checkout.invoice?'active':''}}">{{checkout.invoice.title||'提前提交发票抬头'}}</view>
<view class="more"></view>
</view>
</invoice>
</view>
</view>
<view class="checkout-get subscribe" bindtap="checkoutInit">商家反馈金额后提醒我</view>
<view class="checkout-get tx-seller" bindtap="checkoutInit">催一下商家</view>
</block>
</view>
<showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>