index.wxml
7.61 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!--pack-activity/pages/index.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<block wx:if="{{hasLoading}}">
<include src="./index.skeleton.wxml"></include>
</block>
<nav hasHome>{{checkout.sellername||'周到安排'}}</nav>
<view class="pages">
<view class="content">
<jinduBar checkout="{{checkout}}"></jinduBar>
</view>
<block wx:if="{{checkout.status==1}}">
<view class="content checkout">
<view class="waiting-money flex-vc">
<icon type="waiting" size="47" color="#C0A369"/>
<view class="waiting-txt">商家处理中</view>
</view>
</view>
<view class="content invoice">
<view class="item flex-lr">
<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>
<subscribe ids="{{[1]}}">
<view class="checkout-get subscribe">点我,商家反馈金额后提醒我</view>
</subscribe>
<view class="checkout-get tx-seller" bindtap="txSeller">催一下商家</view>
</block>
<block wx:elif="{{checkout.status==2}}">
<view class="content money">
<view class="waiting-money flex-vc">
<icon type="waiting" size="47" color="#C0A369"/>
<view class="waiting-txt">待支付</view>
</view>
<view class="list flex-lr">
<view class="list-name">消费金额</view>
<view class="list-val">¥ {{checkout.price}}</view>
</view>
<view class="list flex-lr" bindtap="discountShow">
<view class="list-name">红 包</view>
<view class="list-val flex-rr">
-¥ {{checkout.subsidy_price}}
<view class="more" style="margin-left: 20rpx;" wx:if="{{checkout.discount.length>0}}"></view>
</view>
</view>
<view class="list flex-lr">
<view class="list-name">需付金额</view>
<view class="list-val should_price">¥{{checkout.should_price}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.bill_list.length>0}}" bindtap="displayOrderImages">
<view class="list-name">消费清单</view>
<view class="list-val link">查看消费清单</view>
</view>
<view class="list flex-lr" style="align-items:flex-start;line-height: 60rpx;">
<view class="list-name">包间名称</view>
<view class="list-val">{{checkout.tablename}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.remark}}">
<view class="list-name">备注信息</view>
<view class="list-val">{{checkout.remark}}</view>
</view>
<view class="checkout-get" bindtap="pay">立即支付{{checkout.should_price}}元</view>
</view>
<view class="money-tips">注:消费清单,离店时请到前台索要;</view>
</block>
<block wx:elif="{{checkout.status==3}}">
<view class="content money">
<view class="waiting-money flex-vc">
<icon type="success" size="47" color="#C8B16D"/>
<view class="waiting-txt">已买单</view>
</view>
<view class="list flex-lr">
<view class="list-name">消费金额</view>
<view class="list-val">¥ {{checkout.price}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.subsidy_price_sj>0}}">
<view class="list-name">店铺红包</view>
<view class="list-val">-¥ {{checkout.subsidy_price_sj}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.subsidy_price_pt>0}}">
<view class="list-name">平台红包</view>
<view class="list-val">-¥ {{checkout.subsidy_price_pt}}</view>
</view>
<view class="list flex-lr">
<view class="list-name">实付金额</view>
<view class="list-val should_price">¥{{checkout.should_price}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.bill_list.length>0}}" bindtap="displayOrderImages">
<view class="list-name">消费清单</view>
<view class="list-val link">查看消费清单</view>
</view>
<view class="list flex-lr" style="align-items:flex-start;line-height: 60rpx;">
<view class="list-name">包间名称</view>
<view class="list-val">{{checkout.tablename}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.remark}}">
<view class="list-name">备注信息</view>
<view class="list-val">{{checkout.remark}}</view>
</view>
<view class="list flex-lr" wx:if="{{checkout.subsidy_price>0}}">
<view class="list-name">其他说明</view>
<view class="list-val">红包不找零,不可拆开使用</view>
</view>
<view class="list flex-lr pay-time">
<view class="list-name">支付方式</view>
<view class="list-val">微信支付</view>
</view>
<view class="list flex-lr">
<view class="list-name">买单时间</view>
<view class="list-val">{{util.unixtoTime(checkout.pay_time,'YYYY-MM-DD HH:II')}}</view>
</view>
</view>
<view class="content invoice" wx:if="{{checkout.invoice}}">
<view class="item flex-lr">
<view>发票</view>
<invoice bindevent="setInvoice">
<view class="invoice-right disabled">
<view class="invoice-title">{{checkout.invoice.title}}</view>
<view class="invoice-taxnumber">{{checkout.invoice.taxnumber}}</view>
</view>
</invoice>
</view>
</view>
</block>
<block wx:else="">
<checkbox-group bindchange="checkoutData">
<view class="content checkout">
<view class="title">买单相关(可选)</view>
<view class="item flex-lr">
<view>剩余酒水饮料需要退</view>
<checkbox color="#ffffff" value="is_wine"/>
</view>
<view class="item flex-lr">
<view>菜品打包</view>
<checkbox color="#ffffff" value="is_pack"/>
</view>
</view>
</checkbox-group>
<view class="checkout-get">
<subscribe ids="{{[1]}}" bindevent="checkoutInit">
<view class="checkout-button">
获取消费金额
<seller-discount id="seller-discount" seller="{{seller}}" wx:if="{{seller}}"
cla="checkout-button-money-tips detail_owner"></seller-discount>
</view>
</subscribe>
</view>
</block>
</view>
<showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
<discount id="discount" checkout="{{checkout}}" bindevent="discountEvent"></discount>
<xfCard id="xfCard" checkout="{{checkout}}" bindevent="xfCardEvent"></xfCard>