detail_owner.wxml
16.8 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!--pages/customer/detail_owner.wxml-->
<nav hasHome>订座详情</nav>
<page loading="{{loading}}">
<view class="view flex justify-start subscribe-tips align-center" wx:if="{{true || !subscribeHide && (detail.hasRunning || detail.status==0)}}">
<view class="view flex-treble flex align-center">
<view>点击开启预订提醒,第一时间获知预订结果。</view>
<subscribe ids="{{[0,1]}}" bindtap="subscribeEvent"
bindevent="subscribeEvent"
class="subscribe-but Semibold">开启提醒</subscribe>
</view>
<view class="subscribe-close close-x"></view>
</view>
<view wx:if="{{!subscribeYDHide}}" bindtap="subscribeYDHide">
<view class="mask"></view>
<view class="subscribe-yd">
<view class="subscribe-jian"></view>
<view class="subscribe-dao Semibold">
<view class="flex-ll">点击<view class="icon-ddd"></view>——设置——订阅消息,</view>
<view>开启包间预订通知,第一时间知道预订结果。</view>
</view>
</view>
</view>
<block wx:if="{{detail}}">
<detail-status detail="{{detail}}" ></detail-status>
<detail-card detail="{{detail}}"></detail-card>
<view class="flex padding justify-end align-center">
</view>
<view class="fixed-buttons flex justify-center align-center">
</view>
</block>
<view class="page">
<view class="flex-vc success" wx:if="{{hasCancel}}">
<view class="icon">
<icon type="waiting" size="47" color="#C8B16D"/>
</view>
<view class="title Medium">申请已提交,待商家处理</view>
<view class="info">
请留意周到安排公众号通知
</view>
</view>
<view class="flex-vc success" wx:else="">
<block wx:if="{{detail.hasRunning}}">
<view class="icon">
<icon type="success" size="47" color="#C8B16D"/>
</view>
<view class="title Medium">订座成功</view>
<view class="info">分享订座信息给朋友,及时获知朋友们的反馈</view>
</block>
<block wx:elif="{{detail.hasCancel}}">
<view class="icon">
<icon type="info" size="47" color="#C9C9C9"/>
</view>
<view class="title Medium">订座已取消</view>
</block>
<block wx:elif="{{detail.hasOvered}}">
<view class="icon">
<icon type="success" size="47" color="#C8B16D"/>
</view>
<view class="title Medium">订座已完成</view>
</block>
<block wx:else="">
<block wx:if="{{detail.status==0}}">
<view class="icon">
<icon type="waiting" size="47" color="#C8B16D"/>
</view>
<view class="title Medium">{{reserveSubmitInfo?reserveSubmitInfo:(firstShowMsg.length>10?'餐厅处理中':'餐厅休息中')}}</view>
<view class="info flex-vc" wx:if="{{firstShowMsg}}">
<block wx:if="{{firstShowMsg.length>10}}">
<view>预计10分钟左右餐厅将告知您结果</view>
<view>(请留意短信或微信通知 )</view>
</block>
<block wx:else="">
<view>营业后将优先处理您的订单</view>
<view>预计{{firstShowMsg}}左右短信告知预订结果</view>
</block>
</view>
<view class="flex-lr share-view-cookbook" wx:if="{{detail.seller.isopen_md==1}}">
<userinfo
binduserinfo="checkout"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">
在线买单
<seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}"
cla="money-tips detail_owner"></seller-discount>
</view>
</userinfo>
</view>
</block>
<block wx:elif="{{detail.status==6}}">
<view class="icon">
<icon type="warn" size="47" color="#999999"/>
</view>
<view class="title Medium" style="font-size: 36rpx;margin-bottom: 42rpx;">包间已订满</view>
<view class="info" style="font-size: 30rpx;color: #353535; width: 100% ; text-align: left;height: auto;margin-bottom: 40rpx;">
<view>1、包间状态会实时更新,周到安排可帮忙抢订;</view>
<view>2、周到安排拥有全市包间资源,可为您推荐更多优质餐厅。</view>
</view>
<view class="flex-lr share-view" style="margin-top: 0">
<chatbot class="share-but-view" params="{{chatbotParams}}">
<view class="share-but flex-cc Medium">帮我<view class="qiang"></view>订</view>
</chatbot>
</view>
<view class="flex-lr share-view-cookbook" bindtap="gotoList">
<view class="share-but-view" params="{{chatbotParams}}">
<view class="share-but flex-cc Regular">帮我推荐附近可订餐厅</view>
</view>
</view>
</block>
</block>
</view>
<navigator url="/pages/reserve/reserve?id={{detail.sid}}&activeTab=reserve"
wx:if="{{detail.hasCancel}}"
hover-class="navigator-hover">
<view class="flex-lr share-view subscribe" style="margin-top: 60rpx;">
<view class="share-but">再次预订</view>
</view>
</navigator>
<block wx:if="{{detail.hasRunning}}">
<view class="flex-lr share-view" wx:if="{{detail.type==1}}">
<formids url="/pages/customer/detail_owner_invitation?id={{detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1"
class="share-but-view">
<view class="share-but Regular">邀请同行好友</view>
</formids>
</view>
<view class="flex-lr share-view" wx:else="">
<userinfo-share
binduserinfo="userinfo"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">发邀请函</view>
</userinfo-share>
</view>
<block wx:if="{{(detail.seller.is_open_order==1 || detail.seller.is_open_wine==1 ) || (hasLoadedCheckout && detail.seller.isopen_md==1 && checkout.status!=3)}}">
<view class="flex-lr share-view-cookbook">
<userinfo wx:if="{{detail.seller.is_open_wine==1}}"
binduserinfo="wineGo"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">订酒水</view>
</userinfo>
<userinfo wx:if="{{detail.seller.is_open_order==1}}"
binduserinfo="cookbook"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular flex-cc" wx:if="{{detail.order && detail.order.cookbooklist.length>0}}">
<view>查看菜品</view>
<image class="order-cook" src="http://nosqn.colorcun.com/custom/lite-yd-cook/image/order-cook.png"></image>
</view>
<view class="share-but Regular" wx:else="">提前点餐</view>
</userinfo>
<userinfo wx:if="{{detail.seller.isopen_md==1 && checkout.status!=3}}"
binduserinfo="checkout"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">
<view class="flex-cc">
<view class="checkout-icon checkout-icon-{{checkout.status}}" wx:if="{{checkout}}"></view>
在线买单
</view>
<seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}"
cla="money-tips detail_owner"></seller-discount>
</view>
</userinfo>
</view>
</block>
</block>
<view style="height: 40rpx;"></view>
<card seller="{{detail.seller}}" detail="{{detail}}" bindevent="cardEvent"></card>
<view class="detail-info Medium" style="margin-top: 56rpx;">
<view class="flex-lr">
<view>用餐人</view>
<view class="detail-info-right">{{detail.rname}}{{detail.phone?'('+detail.phoneMask+')':''}}</view>
</view>
<view class="flex-lr" style="margin-top: 43rpx;" wx:if="{{detail.type!=1}}">
<view>用餐人数</view>
<view class="detail-info-right">{{detail.pnum||detail.pnum_str}}人</view>
</view>
<view class="flex-lr" wx:if="{{detail.cusman}}"
style="margin-top: 43rpx;"
bindtap="{{(detail.cusman_phone || detail.cusman_account)?'showManager':''}}">
<view>客户经理</view>
<view class="detail-info-right"
style="{{(detail.cusman_phone || detail.cusman_account)?'text-decoration: underline;':''}}"
>{{detail.cusman||''}}</view>
</view>
<view class="flex-lr" style="margin-top: 43rpx;align-items: flex-start;" wx:if="{{detail.cusdem}}">
<view style="line-height: 34rpx;">备注信息</view>
<view class="detail-info-right flex-rr" style="width:500rpx;line-height: 1.35;">{{detail.cusdem}}</view>
</view>
</view>
<view class="hr" style="margin-top: 78rpx;margin-bottom: 78rpx;"></view>
<block wx:if="{{detail.customers.length>1}}">
<formids url="./detail_owner_part?id={{detail.id}}" hover-class="navigator-hover" wx:if="{{detail.customers.length>0}}">
<view class="flex-lr customers_view">
<view class="customers flex-ll">
<block wx:for="{{detail.customers}}" wx:key="detail.customers.key">
<image src="{{item.headimgurl}}" class="avatar" mode="aspectFill" wx:if="{{index<3}}"></image>
</block>
<view style="margin-left: 12rpx;">等{{detail.customers.length}}人已参加</view>
</view>
<image src="http://nosqn.colorcun.com/custom/lite-yd/image/click.png" class="more"></image>
</view>
</formids>
</block>
<view class="detail-info Medium tuiding">
<view class="flex-rr">
<service id="service"><view class="item">联系客服</view></service>
<view class="item" bindtap="callSeller">联系商家</view>
<navigator url="./cancel?id={{detail.id}}"
wx:if="{{(detail.hasRunning || detail.status==0) && checkout.status!=3}}"
hover-class="navigator-hover">
<view class="item" >取消预订</view>
</navigator>
<navigator url="/pages/pinglun/create?sid={{detail.seller.id}}&oid={{detail.id}}&sellername={{detail.seller.sellername}}"
wx:if="{{detail.hasFinished && hasComment}}"
hover-class="navigator-hover">
<view class="item" >评论</view>
</navigator>
</view>
</view>
<block wx:if="{{checkout.status==3}}">
<view class="hr" style="margin-top: 78rpx;margin-bottom: 78rpx;"></view>
<view class="detail-info Medium" style="margin-top: 56rpx;">
<view class="flex-lr">
<view>实付金额</view>
<view class="detail-info-right" style="color:rgba(224,32,32,1);">¥{{checkout.should_price}}</view>
</view>
<view class="flex-lr" style="margin-top: 26rpx;">
<view></view>
<navigator url="/pack-checkout/pages/index?sid={{detail.seller.id}}&rid={{detail.id}}">
<view class="detail-info-right see-pics">查看消费详情</view>
</navigator>
</view>
</view>
</block>
<block wx:if="{{checkout.invoice}}">
<view class="hr" style="margin-top: 78rpx;margin-bottom: 78rpx;"></view>
<view class="detail-info Medium" style="margin-top: 56rpx;">
<view class="flex-lr">
<view>发票</view>
<view class="detail-info-right">{{checkout.invoice.title}}</view>
</view>
<view class="flex-lr" style="margin-top: 26rpx;">
<view></view>
<view class="detail-info-right">{{checkout.invoice.taxnumber}}</view>
</view>
</view>
</block>
<block wx:if="{{false && rsl.length>0}}">
<view class="line-push">为你推荐</view>
<view class="transverse-list">
<swiper
indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
interval="2000" duration="500"
previous-margin="{{15}}px" next-margin="{{15}}px" style="height: 350rpx;"
current="{{current}}" bindchange="bindtransition" bindanimationfinish="bindtransition">
<block wx:for="{{rsl}}" wx:key="rsl.key">
<swiper-item bindtap="gotoSellerDetail" id="{{item.id}}">
<view class="seller" id="seller-{{item.id}}">
<sb-tr seller="{{item}}"
hasInSwiper bindevent="sbtrEvent"
hasActivityTags="{{false}}"
hasActivityShort="{{true}}"
hasBrand="true" hasActivityTese="true"
hasSlogan="{{false}}"></sb-tr>
</view>
</swiper-item>
</block>
</swiper>
</view>
</block>
<view style="height: 50rpx;"></view>
</view>
</page>
<manager manager="{{detail}}" id="manager"></manager>
<as id="as" items="{{detail.seller.seller_tel}}" bindclick="callSellerPhone">拨打电话</as>
<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>
<activity-enter floclass="detail_owner"></activity-enter>
<showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
<view class="mask" wx:if="{{hasSubscribeFail}}" bindtap="subscribeFailHide">
<view class="hasSubscribeFail">
<view class="header flex-lr">
<view></view>
<view class="title">温馨提示</view>
<view class="close"></view>
</view>
<view class="content">
您未开启预订通知,将无法第一时间获知预订结果,可能影响您的行程安排,建议开启
<view class="flex-ll content-tips">
<icon class="content-tips-icon" color="#C0A369" type="success" size="16"></icon>包厢预订通知
</view>
</view>
<subscribe ids="{{[0,1]}}"
bindevent="subscribeEvent" bindtap="subscribeEvent"
class="subscribe-but Semibold flex-vc">开启提醒</subscribe>
</view>
</view>
<as-phone id="as-phone"></as-phone>