detail_owner.wxml
5.59 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
<!--pages/customer/detail_owner.wxml-->
<nav hasHome>订座详情</nav>
<view class="page">
<view class="flex-vc success">
<block wx:if="{{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">餐厅处理中</view>
<view class="info" wx:if="{{firstShowMsg}}">{{firstShowMsg}}</view>
</block>
<block wx:elif="{{detail.status==6}}">
<view class="icon">
<icon type="warn" size="47" color="#999999"/>
</view>
<view class="title Medium">{{detail.cancel.desc||'包间已订满'}}</view>
</block>
<block wx:else="">
<view class="icon">
<icon type="success" size="47" color="#C8B16D"/>
</view>
<view class="title Medium">订座成功</view>
<view class="info">分享订座信息给朋友,及时获知朋友们的反馈</view>
</block>
</block>
</view>
<block wx:if="{{detail.hasRunning}}">
<view class="flex-lr share-view" >
<userinfo-share
binduserinfo="userinfo"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">发邀请函</view>
</userinfo-share>
</view>
<view class="flex-lr share-view-cookbook" wx:if="{{detail.seller.is_open_order==1 || detail.seller.is_open_wine==1}}">
<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://qn.colorcun.com/custom/lite-yd-cook/image/order-cook.png"></image>
</view>
<view class="share-but Regular" wx:else="">提前点餐</view>
</userinfo>
</view>
</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}}</view>
</view>
<view class="flex-lr" style="margin-top: 43rpx;">
<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;">
<view>备注信息</view>
<view class="detail-info-right">{{detail.cusdem}}</view>
</view>
</view>
<view class="hr" style="margin-top: 52rpx;margin-bottom: 48rpx;"></view>
<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://qn.colorcun.com/custom/lite-yd/image/click.png" class="more"></image>
</view>
</formids>
<view class="detail-info Medium tuiding">
<view class="flex-rr">
<view class="item" bindtap="callSeller">联系商家</view>
<view class="item" bindtap="callSeller">取消预订</view>
</view>
</view>
<view style="height: 50rpx;"></view>
</view>
<manager manager="{{detail}}" id="manager"></manager>
<as id="as" items="{{detail.seller.seller_tel}}" bindclick="callSellerPhone">拨打电话</as>