detail_owner_invitation.wxml
16.3 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
<!--pages/customer/detail_owner.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<import src="../tpl/invitation"></import>
<nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;" class="navhome" place="{{true}}">
<!--
<service class="flex-rr" style="display: flex;flex-direction: row;" catchtap="catchtap">
<view class="service-view flex-vc">
<view class="service-icon"></view>
</view>
</service>
-->
</nav>
<!-- 内部预定 -->
<block wx:if="{{detail && detail.type==0 && detail.channel==2}}">
<!-- <view class="pages bg-1" style="max-height:{{height}}px;overflow-y: scroll;padding-top: {{statusBarHeight+titleBarHeight}}px;line-height: 1.4;padding-bottom: 60rpx;">
<view class="book-image flex-cc">
</view>
<view class="cover-conent flex-vc">
<view class="staff-info flex-lr">
<view class="staff-image" style="background: url({{staffinfo.photo}}) center center no-repeat;background-size: 100% auto;"></view>
<view class="flex-vl" style="padding-top: 16rpx;">
<view class="brown-font font34r font-bold" style="margin-bottom: 6rpx;">{{staffinfo.name}}</view>
<view class="brown-font font26r" style="margin-bottom: 6rpx;">{{staffinfo.position}}</view>
<view class="brown-font font26r" style="margin-bottom: 44rpx;">{{staffinfo.phone}}</view>
<view class="bg-light-brown book-concat flex-cc" style="margin-bottom: 20rpx;" bindtap="call">
<image src="http://sellershare.colorcun.com/share-call.png" class="book-concat-icon"></image>
<view class="brown-font font24r">电话</view>
</view>
<view class="bg-light-brown book-concat flex-cc" bindtap="addwechat">
<image src="http://sellershare.colorcun.com/share-wechat.png" class="book-concat-icon"></image>
<view class="brown-font font24r">微信</view>
</view>
</view>
<swiper class="seller-coupon" wx:if="{{list && list.length>0}}">
<swiper-item wx:for="{{list}}">
<view class="new-coupon-item flex-vl" data-id="{{item.id}}" catchtap="todetail">
<view class="font22r font-more font-bold" style="width:140rpx;display: block;">{{item.aname}}</view>
</view>
</swiper-item>
</swiper>
<block wx:else>
<view class="mask-line"></view>
</block>
</view>
<view class="order-info flex-vc">
<view class="order-decrote top-decrote" style="margin-bottom: 60rpx;"></view>
<view class="seller-name font34r font-bold brown-font">{{seller.name}}</view>
<view class="font26r smooth light-brown-font" style="margin-bottom: 12rpx;">已为您安排在包间</view>
<view class="room-info flex-cc">
<view class="room-decrote left-decrote"></view>
<view class="room-name font42r font-bold brown-font" style="font-size:42rpx;">{{seller.room}}</view>
<view class="room-decrote right-decrote"></view>
</view>
<view class="font24r smooth brown-font book-button bg-light-brown flex-cc" wx:if="{{roomimage && roomimage.length>0}}" bindtap="lookroom">浏览照片</view>
<view class="font28r smooth brown-font" style="margin-top: 60rpx;margin-bottom: 20rpx;">时间:{{seller.date}}</view>
<view class="font28r smooth brown-font">地址:{{seller.addr}}</view>
<view class="font24r smooth brown-font book-button bg-light-brown flex-cc" style="margin-bottom: 60rpx;" bindtap="lookLocation">一键导航</view>
<view class="order-decrote bottom-decrote"></view>
</view>
</view>
<button open-type="share" class="font32r font-bold main-button book-button font-bold flex-cc" wx:if="{{!detail.hasOvered && !detail.hasCancel}}" catchtap="setUserInfoSuccess">转发好友</button>
<block wx:elif="{{detail.hasCancel}}">
<view class="font32r white-font flex-cc" style="margin-bottom: 30rpx;">订座已取消</view>
</block>
<block wx:else="">
<view class="font32r white-font flex-cc" style="margin-bottom: 30rpx;">订座已完成</view>
</block>
<view class="font34r smooth flex-cc font-bold" style="width:140rpx;color:#ECC88F;margin: 0 auto;" bindtap="secondbook">再次预订</view>
</view> -->
<scroll-view class="last-bg" style="padding-top: {{statusBarHeight+titleBarHeight}}px;line-height: 1.4;height:{{height}}px;" scroll-y>
<!-- <view class="last-book-title"></view> -->
<view class="last-staff-info flex-lr">
<view class="last-staff-image" style="background: url({{staffinfo.photo}}) center center no-repeat;background-size: 100% auto;"></view>
<view class="last-staff-detail flex-vr" style="align-items: flex-end;">
<view class="white-font font60r">{{staffinfo.name}}</view>
<view class="white-font font32r">{{staffinfo.phone}}</view>
<view class="white-font font34r" style="margin-bottom: 20rpx;">{{staffinfo.position}}</view>
<view class="last-button-item flex-ll" style="margin-bottom: 20rpx;" bindtap="call">
<image src="http://sellershare.colorcun.com/last-book-call.png" class="last-icon"></image>
<view class="black-font font22r last-button-content flex-cc" >拨打电话</view>
</view>
<!-- <button class="last-button-item flex-ll" open-type="contact" bindcontact="test" send-message-img="{{staffinfo.qrcode}}" show-message-card="{{true}}" send-message-path="pages/customer/index?qrcode={{staffinfo.qrcode}}&islover=customer">
<image src="http://sellershare.colorcun.com/last-book-wechat.png" class="last-icon"></image>
<view class="black-font font22r last-button-content flex-cc" >加我微信</view>
</button> -->
<button class="last-button-item flex-ll" bindtap="addwechat">
<image src="http://sellershare.colorcun.com/last-book-wechat.png" class="last-icon"></image>
<view class="black-font font22r last-button-content flex-cc" >加我微信</view>
</button>
</view>
<swiper class="last-seller-coupon" wx:if="{{list && list.length>0}}">
<swiper-item wx:for="{{list}}">
<view class="last-new-coupon-item flex-vl" data-id="{{item.id}}" catchtap="todetail">
<view class="font22r font-more font-bold last-coupon-content" style="width:290rpx;display: block;">{{item.aname}}</view>
<view class="black-font font24r flex-cc last-use-button">立即使用</view>
</view>
</swiper-item>
</swiper>
</view>
<view class="last-order-info flex-vc">
<view class="font42r last-yellow-font" style="margin-bottom: 14rpx;">{{seller.name}}</view>
<view class="font42r last-yellow-font" style="margin-bottom: 26rpx;">{{seller.date}}</view>
<view class="white-font font32r" style="margin-bottom: 28rpx;">已为您安排在包间</view>
<view class="last-room-rect flex-cc">
<view class="font52r last-yellow-font font-bold">{{seller.room}}</view>
<view class="last-look-button last-comoon-button black-font font22r flex-cc" wx:if="{{roomimage && roomimage.length>0}}" bindtap="lookroom">浏览照片</view>
</view>
<view class="font28r last-yellow-font" style="margin-bottom: 10rpx;">{{seller.addr}}</view>
<view class="last-comoon-button black-font font22r flex-cc" style="margin-bottom: 60rpx;" bindtap="lookLocation">一键导航</view>
</view>
<button class="last-share-button font38r flex-cc font-bold" open-type="share" wx:if="{{!detail.hasOvered && !detail.hasCancel}}" catchtap="setUserInfoSuccess">转发好友</button>
<!-- <block wx:elif="{{detail.hasCancel}}">
<view class="font32r white-font flex-cc" style="margin-bottom: 30rpx;">订座已取消</view>
</block>
<block wx:else="">
<view class="font32r white-font flex-cc" style="margin-bottom: 30rpx;">订座已完成</view>
</block> -->
<view class="font24r last-yellow-font" style="width:140rpx;padding: 0 20rpx;box-sizing: border-box;margin: 0 auto;" bindtap="sendmsg" wx:if="{{!detail.hasOvered && !detail.hasCancel}}">短信通知</view>
<view style="height:40rpx;"></view>
</scroll-view>
<!-- wx:if="{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel}}" -->
<!-- <view class="last-bottom flex-lr">
<view class="booking-button last-buts-text flex-cc font30r" bindtap="secondbook" style="width:{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel ? (detail && detail.seller.isopen_md==1 ? 33.33 : 50) : 100}}%;">
<image src="http://sellershare.colorcun.com/yuding.png" class="icon" style="width: 32rpx;height: 32rpx;"></image>
再次预订
</view>
<block wx:if="{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel}}">
<userinfo binduserinfo="cookbook" class="last-diancan flex-vc" style="width:{{detail && detail.seller.isopen_md==1 ? 33.33 : 50}}%;">
<view class="last-buts-text flex-cc font30r" style="border-left:2rpx solid #D3BF9C;height: 50rpx;">
<image src="http://sellershare.colorcun.com/diancan.png" class="icon" style="width: 34rpx;height: 28rpx;"></image>
提前点餐
</view>
</userinfo>
<userinfo class="last-pay flex-cc" binduserinfo="checkout" share="{{detail}}" share-act="invitation" wx:if="{{detail && detail.seller.isopen_md==1}}">
<view class="last-buts-text font30r flex-cc" style="border-left:2rpx solid #D3BF9C;height: 50rpx;">
<image src="http://sellershare.colorcun.com/maidan.png" class="icon" style="width:30rpx;height: 24rpx;"></image>
在线买单
</view>
</userinfo>
</block>
</view> -->
<showModal id="showModal" confirmText="知道了" bindshowModal="showModal" cla="checkout"></showModal>
<!-- <view bindtap="sendmsg">测试发送短信息</view> -->
</block>
<block wx:else>
<block wx:if="{{detail}}">
<view class="pages bg-{{options.tplid}} flex-vc" style="height:{{height}}px;" wx:if="{{options.tplid}}">
<template is="tpl-{{options.tplid}}" data="{{seller,options,hasOwner,animation}}"></template>
<view class="opt-view flex-vc">
<block wx:if="{{!detail.hasOvered && !detail.hasCancel}}">
<button open-type="share" class="button-none flex-vc" catchtap="setUserInfoSuccess">
<view class="buts-share"></view>
</button>
</block>
<block wx:elif="{{detail.hasCancel}}">
<view class="opt-view-tip Medium">订座已取消</view>
</block>
<block wx:else="">
<view class="opt-view-tip Medium">订座已完成</view>
</block>
</view>
</view>
</block>
</block>
<view class="menu" wx:if="{{detail && detail.type==0 && detail.channel==2}}" bindtap="showmenu"></view>
<view class="menu-list flex-vl" style="justify-content: flex-end;" wx:if="{{detail && detail.type==0 && detail.channel==2}}" hidden="{{menuhidden}}" catchtap="hidemenu">
<view class="menu-item menu-seller-item flex-ll" catchtap="secondbook">
<view class="menu-item-image" style="background: url({{detail.seller.seller_image}}) center center no-repeat;background-size: cover;"></view>
<view class="white-font font30r smooth">{{seller.name}}</view>
<view class="click-icon"></view>
</view>
<view class="menu-item menu-seller-item flex-ll" bindtap="secondbook">
<view class="menu-item-image menu-item-book"></view>
<view class="white-font font30r smooth">再次预订</view>
</view>
<block wx:if="{{detail.seller.is_open_order==1 && !detail.hasOvered && !detail.hasCancel}}">
<block wx:if="{{detail && detail.seller.is_open_order==1}}">
<view class="menu-item menu-seller-item flex-ll" bindtap="cookbook">
<view class="menu-item-image menu-item-buy"></view>
<view class="white-font font30r smooth">提前点餐</view>
</view>
</block>
<block wx:else>
<view class="menu-item menu-seller-item flex-ll" bindtap="noopen" data-mark="buy">
<view class="menu-item-image menu-item-buy-nouse"></view>
<view class="gray-font font30r smooth">提前点餐</view>
</view>
</block>
<block wx:if="{{detail && detail.seller.isopen_md==1}}">
<view class="menu-item menu-seller-item flex-ll" bindtap="checkout">
<view class="menu-item-image menu-item-check"></view>
<view class="white-font font30r smooth">在线买单</view>
</view>
</block>
<block wx:else>
<view class="menu-item menu-seller-item flex-ll" bindtap="noopen" data-mark="checkout">
<view class="menu-item-image menu-item-check-nouse"></view>
<view class="gray-font font30r smooth">在线买单</view>
</view>
</block>
</block>
<view class="menu-item menu-seller-item flex-ll" bindtap="hidemenu">
<view class="menu-item-image menu-item-back"></view>
<view class="white-font font30r smooth">返回</view>
</view>
</view>
<view class="bottom flex-lr" wx:if="{{!detail.hasOvered && !detail.hasCancel && detail.channel!=2}}">
<view bindtap="gotoHome" class="dingbaojian flex-vc">
<image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20191114105901.png" class="icon"></image>
<view class="text">订包间</view>
</view>
<formids bindclick="sendmsg" class="diancan" style="{{detail.seller.is_open_order!=1 && detail.seller.is_open_wine!=1?'width:100%;':''}}">
<view class="buts-text flex-cc">
<image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911141059011.png" class="icon"></image>
短信通知
</view>
</formids>
<userinfo binduserinfo="cookbook" class="diancan left-border" wx:if="{{detail.seller.is_open_order==1}}">
<view class="buts-text flex-cc">
<image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E6%8F%90%E5%89%8D%E7%82%B9%E9%A4%90.png" class="icon"></image>
提前点餐
</view>
</userinfo>
<block wx:if="{{detail.seller.is_open_wine==1}}">
<view class="vline" wx:if="{{detail.seller.is_open_order==1}}" ></view>
<formids bindclick="toast" class="jiushui">
<view class="buts-text flex-cc">
<image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E8%87%AA%E5%B8%A6%E9%85%92%E6%B0%B4.png" class="icon"></image>
自带酒水
</view>
</formids>
</block>
</view>
<!--//商务-->
<template name="tpl-1">
<view class="flex-vc shangwu" bindtap="{{options.rid?'goEditor':''}}">
<template is="tpl-shangwu" data="{{...seller,options}}"></template>
</view>
</template>
<!--//温馨-->
<template name="tpl-2">
<template is="tpl-wenxin" data="{{...seller,options}}"></template>
</template>
<ddate id="ddate" order="{{detail}}" wx:if="{{detail}}" bindevent="ddateEvent"></ddate>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="INVIT-OWNER"></a2l>
<!-- <view class="coupon" wx:if="{{list && list.length>0}}" hidden="{{couponhidden}}" bindtap="close">
<view class="coupon-content flex-vc" style="margin-top: -{{360+(list.length>2 ? 180 : 75*list.length+1)}}rpx;">
<view class="coupon-bg"></view>
<view class="coupon-info">
<view class="coupon-header flex-vc">
<view class="font-bold">恭喜您获得</view>
<view class="font32r">{{list.length}}张代金券</view>
</view>
<view class="coupon-list">
<view class="coupon-single flex-ll bg-white" wx:for="{{list}}">
<view class="flex-vl coupon-main" style="justify-content: center;">
<view class="font36r font-bold" style="color:#E84033;">{{item.aname}}</view>
<view class="gray-font font20r">有效期至{{util.unixtoTime(item.etime,'YYYY.MM.DD HH:II')}}</view>
</view>
<view class="flex-vc coupon-border">
<view class="circle circle-bottom bg-white"></view>
<view class="coupon-line"></view>
<view class="circle circle-top bg-white"></view>
</view>
<block wx:if="{{getcoupon}}">
<view class="flex-cc" style="padding-right: 15rpx;" data-id="{{item.id}}" catchtap="todetail">
<view class="use-button flex-cc font20r">去使用</view>
</view>
</block>
<block wx:else>
<view class="flex-cc" style="padding-right: 15rpx;">
<view class="use-button flex-cc font20r">领取</view>
</view>
</block>
</view>
</view>
<block wx:if="{{getcoupon}}">
<view class="coupon-button font24r smooth white-font flex-cc" catchtap="tohref">
<view style="position: relative;z-index: 0;">在我的-卡券中可查看,<text style="color:#FFC807;">前往查看</text></view>
</view>
</block>
<block wx:else>
<userinfo binduserinfo="setcoupon">
<view class="coupon-button font32r smooth white-font flex-cc get-button font-bold">立即领取</view>
</userinfo>
</block>
</view>
<view class="" style="padding: 20rpx;position: relative;top: -94rpx;" catchtap="close">
<image src="http://nosqn.colorcun.com/book-close.png" style="width: 60rpx;height: 60rpx;"></image>
</view>
</view>
</view> -->