detail_owner.wxml 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 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 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
<!--pages/customer/detail_owner.wxml-->
<nav back="none" bindNavEvent="navEvent">订座详情</nav>
<page loading="{{loading}}">
    <view class="view flex justify-start subscribe-tips align-center" wx:if="{{!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 margin-top text-black">
            <service id="service" class="split view">
                <view class="min-but flex align-center justify-center txt-30-h solid">联系客服</view>
            </service>
            <block wx:if="{{detail.seller.is_online_reserve == '1'}}">
                <navigator url="/pages/reserve/reserve?id={{detail.sid}}&activeTab=reserve"
                        wx:if="{{detail.hasCancel || detail.status==6}}"
                        class="split">
                    <view class="min-but flex align-center justify-center txt-30-h solid">再次预订</view>
                </navigator>
            </block>
            <block wx:if="{{customerCancel && customerCancel == '1'}}">
                <navigator url="./cancel?id={{detail.id}}"
                        wx:if="{{(detail.hasRunning || detail.status==0) && checkout.status!=3}}"
                        class="split">
                    <view class="min-but flex align-center justify-center txt-30-h solid">取消预订</view>
                </navigator>
            </block>
						<block>
							<view bindtap="gotoInvitation"
												wx:if="{{detail.hasRunning}}"
											class="split">
									<view class="min-but flex align-center justify-center txt-30-h solid line-blue">通知好友</view>
							</view>
						</block>
            
            <navigator url="/pages/pinglun/create?sid={{detail.seller.id}}&oid={{detail.id}}&sellername={{detail.seller.sellername}}"
                       wx:if="{{detail.hasFinished && hasComment}}"
                       class="split">
                <view class="min-but flex align-center justify-center txt-30-h solid line-blue">评价</view>
            </navigator>
        </view>
        <view class="margin-lr-lg padding-tb-lg view solid-top" wx:if="{{detail.customers.length>1}}">
            <navigator 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>
            </navigator>
        </view>
        <view class="fixed-buttons flex justify-between align-center padding-lg view bg-white">
            <view wx:if="{{detail.hasRunning && detail.seller.is_open_order==1}}"
                  class="view flex-treble big-but flex align-center justify-center txt-34-h solid line-blue round">
                <userinfo
                          binduserinfo="cookbook"
                          bindshare="share"
                          share="{{detail}}"
                          share-act="invitation">
                    <view wx:if="{{detail.order && detail.order.cookbooklist.length>0}}">
                        查看菜品
                    </view>
                    <view wx:else="">提前点餐</view>
                </userinfo>
            </view>
            <block wx:if="{{detail.status==6}}">
                <view bindtap="gotoList"
                      class="view flex-treble big-but flex align-center justify-center txt-34-h solid line-blue round">
                    帮我推荐餐厅
                </view>
                <!-- <chatbot class="big-but view flex-treble align-center justify-center" params="{{chatbotParams}}">
                    <view class="view flex-treble big-but flex align-center justify-center txt-34-h solid line-blue round">
                        帮我
                        <image src="http://nosqn.colorcun.com/detail/qiang-2%403x.png"
                               style="width: 56rpx;height: 56rpx; margin: 0 6rpx;"></image>
                        订
                    </view>
                </chatbot> -->
            </block>

            <view class="view flex-treble big-but flex align-center justify-center txt-34-h solid line-blue round"
                  wx:if="{{detail.hasRunning && detail.seller.isopen_md==1}}">
                <userinfo
                        binduserinfo="checkout"
                        share="{{detail}}"
                        share-act="invitation">
                    <view style="position: relative;">
                        在线买单
                        <seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}"
                                         cla="money-tips detail_owner"></seller-discount>
                    </view>
                </userinfo>
            </view>
        </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="#57A0FF" type="success" size="18"></icon>包厢预订通知
            </view>
        </view>
        <view class="view flex align-center justify-center" style="margin-top: 80rpx;">
            <view class="subscribe-but-new text-blue flex justify-center align-center margin-right-xl bg-gray text-blue"
                  bindtap="subscribeFailHide">再想想</view>
            <subscribe ids="{{[0,1]}}"
                       bindevent="subscribeEvent" bindtap="subscribeEvent"
                       class="subscribe-but-new Semibold flex-vc bg-blue round">去开启</subscribe>
        </view>

    </view>
</view>
<as-phone id="as-phone"></as-phone>