detail_owner.wxml 21.5 KB
<!--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 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>
            <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>
            <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>
            <navigator url="/pages/customer/detail_owner_invitation?id={{detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1"
                       wx:if="{{detail.hasRunning}}"
                     class="split">
                <view class="min-but flex align-center justify-center txt-30-h solid line-blue">通知好友</view>
            </navigator>
            <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="{{true || 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="#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>