detail_owner.wxml 4.7 KB
<!--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="">
            <view class="icon">
                <icon type="success" size="47" color="#C8B16D"/>
            </view>
            <view class="title Medium">订座成功</view>
            <view class="info">分享订座信息给朋友,及时获知朋友们的反馈</view>
        </block>
    </view>

    <block wx:if="{{!detail.hasOvered && !detail.hasCancel}}">
        <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" >
            <userinfo
                    binduserinfo="userinfodemo"
                    bindshare="share"
                    share="{{detail}}"
                    share-act="invitation"
                    class="share-but-view">
                <view class="share-but Regular">自带酒水</view>
            </userinfo>
            <userinfo
                    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}}"></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">
        <view class="flex-lr">
            <view>退订政策</view>
        </view>
        <view class="flex-lr" style="margin-top: 43rpx;">
            <view>免费退订,已提前点菜,交押金,无法退订</view>
        </view>
    </view>
    <view style="height: 50rpx;"></view>
</view>
<manager manager="{{detail}}" id="manager"></manager>