detail_owner.wxml 11.9 KB
<!--pages/customer/detail_owner.wxml-->
<nav hasHome>订座详情</nav>
<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">{{firstShowMsg.length>10?'餐厅处理中':'餐厅休息中'}}</view>
                <view class="info" wx:if="{{firstShowMsg}}">
                    {{firstShowMsg.length>10?firstShowMsg:'营业后将优先处理您的订单,预计'+firstShowMsg+'左右短信告知预订结果'}}
                </view>
                <subscribe class="flex-lr share-view subscribe" ids="{{[0]}}">
                    <view class="share-but">提醒我包间预订结果</view>
                </subscribe>
                <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">
                            提前买单
                            <view class="money-tips" wx:if="{{user.price>0}}">{{user.price}}元红包待用</view>
                        </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;">抱歉!</view>
                <view class="info Medium" style="font-size: 36rpx;color: #353535;">您相中的餐厅包间已经订满</view>
            </block>
        </block>
    </view>
    <navigator url="/pages/reserve/detail?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>
                        <view class="money-tips" wx:if="{{user.price>0}}">{{user.price}}元红包待用</view>
                    </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">
            <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>
        </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="{{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}}"
                                   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>
<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>