detail_owner_invitation13.wxml 20.5 KB
<!--pack-invitation/pages/detail_owner_invitation13.wxml-->
<import src="../common/parts.wxml" />
<import src="../../pages/tpl/invitation"></import>
<view class="pageWrap {{themeColor}} viewBox viewBox11">
<nav hasHome id='nav' backgroundColor="{{show_white ? colors : 'transparent'}}" place="{{false}}"></nav>
<scroll-view scroll-y class="viewBox viewBox11">
	<!-- 音乐开关 -->
	<template is="musicImg" data="{{newStr: newStr, isPlay: isPlay, attentionAnim: attentionAnim}}" />
	<!-- 商家有礼悬浮入口 -->
	<template is="giftImg" data="{{hasValueCertificate: hasValueCertificate, marketing: marketing, coupon_dataList: coupon_dataList, isFrame: isFrame, is_comments: is_comments, is_user_comments: is_user_comments, couponData: couponData, hasValueRecharge: hasValueRecharge, recharge_data: recharge_data, animationData2: animationData2}}" />
    <!-- 领券全屏浮层 -->
    <template is="fullscreenMask" data="{{isShow: isShow, animationData: animationData}}" />
    <view class="targetPoint" style="top: 35%; right: 4%;"></view>
    <!-- 已取消/已结束 状态角标 -->
    <template is="statusBadge" data="{{detail: detail, options: options}}" />
    <view class="reservationInfo" style="background: url('{{settingUrl}}') no-repeat;background-size:cover;">
		<view class="infoTop">
			<view class="infoTopName">
				<text space="nbsp" class="font28r" wx:if="{{reserve && reserve.swich_slogan == '1' && home && home.slogan}}">{{home.slogan}}</text>
				<text space="nbsp" class="name">{{seller.name||reserve.seller_name}}</text>
			</view>
			<view class="imgBox">
				<image class="inviteImg" src="{{inviteImgUrl}}" mode="aspectFill" />
			</view>
		</view>
		<view class="bookInfo">
			<view class="infoItem infoItemOne">
				<text space="nbsp" wx:if="{{reserve && reserve.swich_booking=='1' && reserve.book_info}}" class="contentData font28r bookData">{{reserve.book_info}}</text>
			</view>
			<view class="infoItem" wx:if="{{seller.date}}">
				<view class="label font28r">上课日期:</view>
				<view class="contentData font36r">{{seller.date}}</view>
			</view>
			<view class="infoItem" wx:if="{{seller.soltName}}">
				<view class="label font28r">上课时间:</view>
                <view class="arrivalBox">
                    <view class="contentData font36r"><text class="font36r">{{temp_ddate}}</text></view>
                    <picker wx:if="{{detail && options &&  options.isOrder != '1' && (detail.status =='1' || detail.status =='2') && options.hasSellerShare == '1'}}" bindchange="bindPickerChange" value="{{index}}" range="{{timeList}}">
                        <view class="picker">
                            <button>修改到店时间</button>
                        </view>
                    </picker>
                </view>
			</view>
			<view class="infoItem" wx:if="{{seller.tablesText}}">
				<view class="label font28r">授课老师:</view>
				<view class="contentData font36r">{{seller.tablesText}}</view>
			</view>
			<view wx:if="{{roomimage && roomimage.length>0}}" class="{{roomimage.length=='1'?'pageSpacing':'pageSpacing1'}}">
				<view wx:for="{{roomimage}}" class="imgs" wx:key="index" bindtap="lookroom" data-item="{{item}}">
					<image class="imageStyle" mode="aspectFill" src="{{item.url}}"></image>
					<text>{{item.name}}</text>
				</view>
			</view>
			<text space="nbsp" class="welcomeMsg font28r" wx:if="{{reserve && reserve.swich_welcome == '1' && marketing && marketing.wecomle}}">
				{{marketing.wecomle}}
			</text>
		</view>
		<view wx:if="{{titleType == '1'}}" class="separatrixOne">
			<block wx:for="{{num1}}" wx:key="index"><text class="text{{item}}"></text></block>
			<text class="text9"></text>
			<block wx:for="{{num2}}" wx:key="index"><text class="text{{item}}"></text></block>
		</view>
		<view class="centerBox">
			<view class="positioning">
				<view class="positioningName">
					<view class="mapBox">
						<text class="font24r telBox">地址:</text>
						<text space="nbsp" class="font24r positioningText">{{seller.addr || reserve.seller.map_address}}</text>
					</view>
					<button wx:if="{{seller.addr || reserve.seller.map_address}}" bindtap="looklocation" class="flex-cc font24r mapBtn">导航到店</button>
				</view>
				<text class="font24r telBox" wx:if="{{swich_phone!='0' && seller && seller.tel && seller.tel.length>0}}">热线:<block wx:for="{{seller.tel}}" wx:key="index"><text data-phone="{{item}}" bindtap="call">{{item}}</text>{{index==(seller.tel.length-1)?'':','}}</block></text>
			</view>
			<block wx:if="{{staffinfo && reserve.swich_manager=='1'}}">
				<view class="handleInfo">
					<image wx:if="{{staffinfo && staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image>
					<view class="handle handlePhone">
						<view class="handleName">专属服务:{{staffinfo.name}}</view>
						<view class="handleBlower">服务电话:{{staffinfo.phone}}</view>
					</view>
					<view class="handle">
						<view wx:if="{{staffinfo.wechat}}" class="font22r brownFont" bindtap="copyWeChat">复制微信</view>
						<view wx:if="{{staffinfo.phone}}" data-phone="{{staffinfo.phone}}" class="font22r brownFont" bindtap="call">拨打电话</view>
					</view>
				</view>
			</block>
		</view>
	</view>
	<view class="preferentialCoupon" wx:if="{{hasValueCertificate && marketing && coupon_dataList.length>0}}">
		<block wx:for="{{coupon_dataList}}" wx:key="index" wx:for-index="index">
            <navigator wx:if="{{item.resultCoupon == '1' || item.is_type != '3'}}" url="/pack-activity/pack/receiveCoupon?id={{item.id}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
                <view class="preferentialItems">
                    <view class="itemLeft">
                        <text wx:if="{{item.discount!='0.00' && (item.use.is_cash=='1' || item.use.is_cash) && item.discount}}" class="discountText font24r">{{item.discount}}折</text>
                        <view class="discountText1 font20r {{item.arule.is_accumulation == '1'?'discountText2':'discountText3'}}" wx:if="{{item.is_type == '3'}}">{{item.arule.is_accumulation == '1' ? '可' : '不可'}}叠加</view>
                        <view class="priceText" wx:if="{{item.price}}">
                            <view class="icons font24r">¥</view><text class="font48r">{{item.price}}</text>
                        </view>
                        <view class="icons font20r" wx:if="{{item.is_type == '3' && item.desc!='0'}}">消费满{{item.desc}}元可用</view>
                    </view>
                    <view class="couponLine"></view>
                    <view class="itemRight">
                        <view class="btns">
                            <text class="font32r anameText">{{item.aname}}</text>
                            <block wx:if="{{item.is_type == '1' || item.is_type == '2'}}">
                                <text wx:if="{{item.exp_date.is_week=='1' || item.exp_date.is_week===true}}" class="bottom font24r">{{item.exp_date.week_show?item.exp_date.week_show+'可用':''}}{{item.desc?','+item.desc+'。':'。'}}</text>
                                <view wx:if="{{item.exp_date.is_none=='1' || item.exp_date.is_none===true}}" class="bottom font24r">
                                    无限制{{item.desc?','+item.desc+'。':'。'}}
                                </view>
                                <view wx:if="{{item.exp_date.is_birthday=='1' || item.exp_date.is_birthday===true}}" class="bottom font24r">
                                    会员生日当天可用{{item.desc?','+item.desc+'。':'。'}}
                                </view>
                            </block>
                            <block wx:if="{{item.is_type == '3' || item.is_type == '4'}}">
                                <view wx:if="{{(item.useStime && item.useEtime) || item.foreverText}}" class="bottom font24r">有效期:{{item.foreverText?item.foreverText : ''}}</view>
                                <view wx:if="{{item.useStime && item.useEtime}}" class="bottom font24r nodate">{{item.useStime}} 至 {{item.useEtime}}</view>
                                <view wx:if="{{item.morText || item.noonText || item.noonText}}" class="bottom font24r">不可用日期:</view>
                                <view wx:if="{{item.morText}}" class="bottom font24r nodate">{{item.morText}}</view>
                                <view wx:if="{{item.noonText}}" class="bottom font24r nodate">{{item.noonText}}</view>
                                <view wx:if="{{item.nigText}}" class="bottom font24r nodate">{{item.nigText}}</view>
                                <view wx:if="{{item.exp_date.week_show=='无'}}" class="bottom font24r">无使用时间限制</view>
                                <view wx:if="{{item.is_type == '4' && item.desc!='0'}}" class="bottom font24r">消费满{{item.desc}}元可用</view>
                            </block>
                        </view>
                        <view class="btnBox" wx:if="{{item.is_type == '3'}}" >
                            <view class="font24r orderingFood orderingFood1">已领取</view>
                            <view class="grantNum" wx:if="{{item.receiveNumText}}">
                                <view class="font24r">已被领取</view>
                                <view class="font24r"><text>{{item.receiveNumText}}</text>张</view>
                            </view>
                        </view>
                        <view wx:if="{{item.is_type != '3'}}" class="font24r orderingFood">
                            立即抢购
                        </view>
                    </view>
                </view>
            </navigator>
		</block>
	</view>
	<view wx:if="{{is_comments=='1' && !is_user_comments}}" class="evaluateBox" bindtap="evaluateFun">
		<text wx:if="{{is_comments=='1' && (marketing.is_comments_coupon!='1' || couponData.showCoupon!='1')}}">想<text class="font36r">吐槽</text>?戳这里填写意见!--></text>
		<text wx:if="{{marketing.is_comments_coupon=='1' && couponData && couponData.showCoupon =='1'}}">想<text class="font36r">吐槽</text>?戳这里填写意见反馈赢好礼!</text>
		<image src="https://nosqn.colorcun.com/evaluate2.png" mode="" />
	</view>
	<view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}">
		<view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view>
		<block wx:for="{{reserveData.content}}" wx:key="index">
			<image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix"/>
			<text space="nbsp" class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text>
		</block>
	</view>
	<!-- 餐厅介绍 -->
	<block wx:if="{{marketing.logo ||  home.image || ((store.introduce && (!store.is_introduce || store.is_introduce!='0')) || (store.images.length>0 && (!store.is_images || store.is_images!='0')) || (store.content && store.content.length>0))}}">
		<view class="introduce" wx:if="{{store}}">
			<titleStyle wx:if="{{titleType}}" titleStyleType="{{titleType}}" titleText="{{store.title ? store.title : '餐厅介绍'}}"></titleStyle>
			<image wx:if="{{marketing.logo}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" />
			<image wx:if="{{home.image}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image>
			<view class="labelBox" wx:if="{{!store.content && store.introduce && (!store.is_introduce || store.is_introduce!='0')}}">
				<text space="nbsp" class="texts font32r">{{store.introduce}}</text>
			</view>
			<block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
				<block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
					<image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" />
				</block>
			</block>
			<view class="labelBox" wx:if="{{store.content && store.content.length>0}}">
				<template is="richText" data="{{content: store.content, imgs: '', textClass: 'font32r'}}" />
			</view>
		</view>
	</block>
	<!-- 主厨介绍 -->
	<block wx:if="{{chef && ((chef.introduce && (!chef.is_introduce || chef.is_introduce!='0')) || (chef.image && (!chef.is_images || chef.is_images!='0')) || (chef.content && chef.content.length>0))}}">
		<view class="introduce">
			<view wx:if="{{titleType}}" class="chefText font36r">
				<titleStyle titleStyleType="{{titleType}}" titleText="{{chef.title ? chef.title : '主厨介绍'}}"></titleStyle>
			</view>
			<view class="labelBox" wx:if="{{(chef.introduce && (!chef.is_introduce || chef.is_introduce!='0'))}}">
				<text class="texts" space="nbsp">{{chef.introduce}}</text>
			</view>
			<image wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}" src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" />
			<view class="labelBox" wx:if="{{chef.content && chef.content.length>0}}">
				<template is="richText" data="{{content: chef.content, imgs: '', textClass: 'font32r'}}" />
			</view>
		</view>
	</block>
	<!-- 特色菜品 -->
	<view class="introduce" wx:if="{{signboard && ((signboard.swich=='1' && signboard.images && signboard.images.length>0)  || (signboard.content && signboard.content.length>0))}}">
		<block wx:if="{{titleType}}">
			<titleStyle titleStyleType="{{titleType}}" titleText="{{signboard.title ? signboard.title : '特色菜品'}}"></titleStyle>
		</block>
		<block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
			<image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}" mode="widthFix" />
		</block>
		<view class="labelBox" wx:if="{{signboard.content && signboard.content.length>0}}">
			<template is="richText" data="{{content: signboard.content, imgs: '', textClass: 'font32r'}}" />
		</view>
	</view>
	<!-- 停车指引 -->
	<view class="introduce" wx:if="{{reserve && (reserve.is_introduce_all=='1' && (reserve.park_info ||  reserve.park_info_images) || (reserve.content && reserve.content.length>0))}}">
		<block wx:if="{{titleType}}">
			<titleStyle titleStyleType="{{titleType}}" titleText="{{reserve.title ? reserve.title : '停车指引'}}"></titleStyle>
		</block>
        <block wx:if="{{!reserve.content || reserve.content.length == '0'}}">
            <view class="labelBox" wx:if="{{reserve.park_info}}">
                <text class="texts" space="nbsp">{{reserve.park_info}}</text>
            </view>
            <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex">
                <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}" mode="widthFix" />
            </block>
        </block>
		<view class="labelBox" wx:if="{{reserve.content && reserve.content.length>0}}">
			<template is="richText" data="{{content: reserve.content, imgs: '', textClass: 'font32r'}}" />
		</view>
	</view>
	<view class="introduce" wx:if="{{detail.status !='4' && options.isOrder != '1' && hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}">
		<block wx:if="{{titleType}}">
			<titleStyle titleStyleType="{{titleType}}" titleText="提前点餐"></titleStyle>
		</block>
		<view class="endStyle">
			<view class="news font32r">
				现在提前点菜下单,到店时无需等待服务员点餐,直接享受就餐服务^_^
			</view>
			<view wx:if="{{detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}" bindtap="cookbook" class="book-item-font flex-cc font30r cook" style="position: relative;">
				去点餐
			</view>
		</view>
	</view>
	<view class="introduce rechargeBox {{(marketing.is_online_book=='1' && options.onlineReserve == '1') || (detail.status !='4' && options.isOrder != '1' && paymentId && paymentStatus == '0') || (detail.status !='4' && options.isOrder != '1' && marketing.is_transpond=='1' && imgSrc)?'introduceBottom':''}}">
        <block wx:if="{{hasValueRecharge && marketing && marketing.is_recharge=='1' && recharge_data}}">
			<block wx:if="{{titleType}}">
				<titleStyle titleStyleType="{{titleType}}" titleText="会员招募"></titleStyle>
			</block>
			<navigator wx:if="{{recharge_data.id}}" url="/pack-activity/pack/vipRecharge?id={{recharge_data.id}}&name={{seller.name}}&sid={{seller.sid}}&oid={{detail.id}}&types=1&StyleType={{StyleType}}" hover-class="navigator-hover">
                <view class="preferentialItems rechargeItems">
                    <view class="itemLeft">
                        <view class="itemTop font36r">
                            {{recharge_data.rname}}
                        </view>
                        <view class="itemBottom font24r" wx:if="{{priceInfo}}">
                            {{priceInfo}}{{(recharge_data.recharge_list.is_coupons=='0' && recharge_data.recharge_list.is_score=='0')?'。':';'}}
                        </view>
                        <view class="bottom font24r" wx:if="{{scoreInfo}}">
                            {{scoreInfo}}{{recharge_data.recharge_list.is_coupons=='0'?'。':';'}}
                        </view>
                        <view class="bottom font24r" wx:if="{{recharge_data.recharge_list.is_coupons=='1'}}">
                            {{recharge_data.recharge_list.is_coupons=='1'?'会员充值满'+recharge_data.recharge_money+'元赠送'+certificate:''}}。
                        </view>
                    </view>
                    <view class="font24r orderingFood">
                        抢购
                    </view>
                </view>
            </navigator>
		</block>
		<view class="vips">
			<view wx:if="{{hasValueRecharge && marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">
				点击了解更多会员优惠政策
			</view>
			<view class="businessBox">
				周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,
				<view bindtap="gotoJoinSeller" style="text-decoration: underline;">我是商家,我要试用</view>
			</view>
		</view>
	</view>
	<view class="{{(!marketing || (marketing.is_transpond!='1' && marketing.is_online_book!='1'))?'more more1':'more'}}" wx:if="{{showMoreTip}}">
		<view class="moreText">滑动查看更多</view>
		<image src="https://qn.colorcun.com/jt1.png" mode="" />
	</view>
	<view class="toastBox" wx:if="{{toastBool}}">
		{{toastText}}
	</view>
</scroll-view>
<view wx:if="{{barShow}}" class="flex-lr sharewidth">
    <view wx:if="{{showMoreOnline}}" class="flex-cc font30r moreBtn {{threeBtnMore}}" bindtap="secondbook">再次预订</view>
    <view wx:if="{{showMoreCall}}" class="flex-cc font30r moreBtn {{threeBtnCall}}" bindtap="call" data-phone="{{seller.phone}}">再次预订</view>
    <view wx:if="{{canPay}}" class="flex-cc font30r paymenBtn {{threeBtnPay}}" bindtap="paymentFun">支付定金</view>
    <button wx:if="{{canShare}}" class="flex-cc font30r shareItem" open-type="share">转发邀请函{{options.hasSellerShare == '1' ? '给客人' : ''}}</button>
    <button wx:if="{{isOver}}" class="flex-cc font30r shareItem" data-type="2" open-type="share">转发店铺给好友</button>
</view>
<painter palette="{{wxml}}" style="position: absolute; top: -9999rpx;" bind:imgOK="onImgOK" />
<!-- 截屏提示弹窗 -->
<template is="payModal" data="{{detail: detail, options: options, marketing: marketing, imgSrc: imgSrc}}" />
<my-modal id="couponModal" fadeStyle="slideUp" height="240px">
	<view slot="modalContent">
        <view class="titleModal">
            <image bindtap="closeCouponModal" class="closeImg" src="https://qn.colorcun.com/closeImg4.png" mode=""/>
            <view class="nameInfo font28r">{{seller.name||reserve.seller_name}}</view>
            <view class="couponTotal font28r" wx:if="{{totalPrice}}">
                赠送给您代金券
                <view class="counterText">
                    <view class="font36r">¥</view><scroll-number value="{{totalPrice}}"></scroll-number>
                </view>
            </view>
        </view>
        <view class="couponWrap">
            <view class="couponInfo font48r">
                <text class="font48r">到店微信扫码</text>
                <text class="font48r">自动识别</text>
            </view>
            <subscribe ids="{{[2]}}" bindtap="closeCouponModal">
                <view class="couponBtn couponBtn1 font40r">欣然收下</view>
            </subscribe>
            <view class="couponText font24r" bindtap="gotoSellerGift" data-form="2">查看更多</view>
        </view>
        <view class="closeBox font28r">{{countDown}} 秒后自动关闭</view>
	</view>
</my-modal>
</view>