detail_owner_invitation.wxml 5.44 KB
<!--pages/customer/detail_owner.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<import src="../tpl/invitation"></import>
<nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;" class="navhome">
    <!--
    <service class="flex-rr" style="display: flex;flex-direction: row;" catchtap="catchtap">
        <view class="service-view flex-vc">
            <view class="service-icon"></view>
        </view>
    </service>
    -->
</nav>
<view class="pages bg-{{options.tplid}} flex-vc" style="height:{{height}}px;" wx:if="{{options.tplid}}">
    <template is="tpl-{{options.tplid}}" data="{{seller,options,hasOwner,animation}}"></template>
    <view class="opt-view flex-vc">
        <block wx:if="{{!detail.hasOvered && !detail.hasCancel}}">
            <button open-type="share" class="button-none flex-vc" catchtap="setUserInfoSuccess">
                <view class="buts-share"></view>
            </button>
        </block>
        <block wx:elif="{{detail.hasCancel}}">
            <view class="opt-view-tip Medium">订座已取消</view>
        </block>
        <block wx:else="">
            <view class="opt-view-tip Medium">订座已完成</view>
        </block>
    </view>
</view>
<view class="bottom flex-lr" wx:if="{{!detail.hasOvered && !detail.hasCancel}}">
    <view bindtap="gotoHome" class="dingbaojian flex-vc">
        <image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20191114105901.png" class="icon"></image>
        <view class="text">订包间</view>
    </view>
    <formids bindclick="sendmsg" class="diancan" style="{{detail.seller.is_open_order!=1 && detail.seller.is_open_wine!=1?'width:100%;':''}}">
        <view class="buts-text flex-cc">
            <image src="http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911141059011.png" class="icon"></image>
            短信通知
        </view>
    </formids>
    <userinfo binduserinfo="cookbook" class="diancan left-border" wx:if="{{detail.seller.is_open_order==1}}">
        <view class="buts-text flex-cc">
            <image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E6%8F%90%E5%89%8D%E7%82%B9%E9%A4%90.png" class="icon"></image>
            提前点餐
        </view>
    </userinfo>
    <block wx:if="{{detail.seller.is_open_wine==1}}">
        <view class="vline" wx:if="{{detail.seller.is_open_order==1}}" ></view>
        <formids bindclick="toast" class="jiushui">
            <view class="buts-text flex-cc">
                <image src="http://nosqn.colorcun.com/manager-invitation/wx2/%E8%87%AA%E5%B8%A6%E9%85%92%E6%B0%B4.png" class="icon"></image>
                自带酒水
            </view>
        </formids>
    </block>
</view>
<!--//商务-->
<template name="tpl-1">
    <view class="flex-vc shangwu" bindtap="{{options.rid?'goEditor':''}}">
        <template is="tpl-shangwu" data="{{...seller,options}}"></template>
    </view>
</template>

<!--//温馨-->
<template name="tpl-2">
    <template is="tpl-wenxin" data="{{...seller,options}}"></template>
</template>
<ddate id="ddate" order="{{detail}}" wx:if="{{detail}}" bindevent="ddateEvent"></ddate>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="INVIT-OWNER"></a2l>

<view class="coupon" wx:if="{{list && list.length>0}}" hidden="{{couponhidden}}" bindtap="close">
	<view class="coupon-content flex-vc" style="margin-top: -{{360+(list.length>2 ? 180 : 75*list.length+1)}}rpx;">
		<view class="coupon-bg"></view>
		<view class="coupon-info">
			<view class="coupon-header flex-vc">
				<view class="font-bold">恭喜您获得</view>
				<view class="font32r">{{list.length}}张代金券</view>
			</view>
			<view class="coupon-list">
				<view class="coupon-single flex-ll bg-white" wx:for="{{list}}">
					<view class="flex-vl coupon-main" style="justify-content: center;">
						<view class="font36r font-bold" style="color:#E84033;">{{item.aname}}</view>
						<view class="gray-font font20r">有效期至{{util.unixtoTime(item.etime,'YYYY.MM.DD HH:II')}}</view>
					</view>
					<view class="flex-vc coupon-border">
						<view class="circle circle-bottom bg-white"></view>
						<view class="coupon-line"></view>
						<view class="circle circle-top bg-white"></view>
					</view>
					<block wx:if="{{getcoupon}}">
						<view class="flex-cc" style="padding-right: 15rpx;" data-id="{{item.id}}" catchtap="todetail">
							<view class="use-button flex-cc font20r">去使用</view>
						</view>
					</block>
					<block wx:else>
						<!-- <userinfo binduserinfo="setcoupon">
							
						</userinfo> -->
						<view class="flex-cc" style="padding-right: 15rpx;">
							<view class="use-button flex-cc font20r">领取</view>
						</view>
					</block>
				</view>
			</view>
			<block wx:if="{{getcoupon}}">
				<view class="coupon-button font24r smooth white-font flex-cc" catchtap="tohref">
					<view style="position: relative;z-index: 0;">在我的-卡券中可查看,<text style="color:#FFC807;">前往查看</text></view>
				</view>
			</block>
			<block wx:else>
				<userinfo binduserinfo="setcoupon">
					<view class="coupon-button font32r smooth white-font flex-cc get-button font-bold">立即领取</view>
				</userinfo>
				
			</block>
			
			<!-- <official-account class="care flex-ll" bindload="load"></official-account> -->
		</view>
		<view class="" style="padding: 20rpx;position: relative;top: -94rpx;" catchtap="close">
			<image src="http://nosqn.colorcun.com/book-close.png" style="width: 60rpx;height: 60rpx;"></image>
		</view>
	</view>
</view>