success_new.wxml 5.09 KB
<!--pack-cookbook/pages/success_new.wxml-->
<nav backgroundColor="#4d4e50" color="#fff">{{sellerName||'提交订单'}}</nav>
<scroll-view class="main">
	<view class="box">
		<view class="info flex-lr">
			<view class="texts font28r">就餐时间:</view>
			<view class="texts_right font28r">2023年4月18日 午餐</view>
		</view>
		<view class="info flex-lr">
			<view class="texts font28r">桌位台号:</view>
			<view class="texts_right font28r">二楼包间 南京</view>
		</view>
		<view class="info flex-lr">
			<view class="texts font28r">就餐人数:</view>
			<view class="texts font28r">8</view>
		</view>
		<view class="info flex-lr">
			<view class="texts font28r">备注信息:</view>
			<view class="texts font28r">{{notes}}</view>
		</view>
		<image class="imgs" src="https://qn.colorcun.com/001.png" mode="" />
	</view>
	<view class="line"></view>
	<view class="checkMenu">
		<block wx:for="{{cookbooklist}}" wx:key="{{item.id}}" wx:for-index="indexs">
			<view wx:if="{{item.is_show}}" class="title flex-lr">
				<view class="leftTitle">{{item.class_name}}</view>
				<view class="rightTitle">{{item.arr.length}}道</view>
			</view>
			<block wx:for="{{item.cookbooklist[0]}}" wx:key="{{item.id}}" wx:for-index="index">
				<view wx:if="{{item.quantum>0}}" class="content flex-lr">
					<view class="single">{{item.name}}<text>({{item.practice}})</text></view>
					<view class="price">{{item.price}}元/{{item.unit}}</view>
					<view class="count flex-cc">
						{{item.quantum}}
					</view>
				</view>
			</block>
		</block>
		<view class="probably flex-ll">
			<view class="tariff font24r">预计金额:<text class="font32r">{{probablyPrice}}</text>元</view>
			<view class="tariff font24r">会员价:<text class="font32r">{{probablyPrice}}</text>元</view>
		</view>
		<view class="information font36r">特别优惠</view>
		<view class="poop font24r">根据您选择的菜品,我们推荐您参加以下活动,本次消费可用,预计可以节约大笔开销!</view>
		<view class="preferential" wx:if="{{marketing && (marketing.is_coupon=='1' || marketing.is_recharge=='1')}}">
			<view class="preferentialItems" wx:if="{{marketing && marketing.is_coupon=='1' && dataStr<(coupon_data.etime*1)}}">
				<view class="left">
					<view class="top">
						<text>{{coupon_data.aname}}</text>
						<text class="price" wx:if="{{coupon_data.price}}">¥{{coupon_data.price}}</text>
						<!-- is_cash 代金券  is_discount折扣券  is_dish菜品券 只有代金券有几折显示 -->
						<text wx:if="{{discount!='0.00' && (coupon_data.use.is_cash=='1' || coupon_data.use.is_cash)}}" class="discount">{{discount}}折</text>
					</view>
					<view wx:if="{{coupon_data.exp_date.is_week=='1' || coupon_data.exp_date.is_week===true}}" class="bottom">
						{{coupon_data.exp_date.week_show?coupon_data.exp_date.week_show+'可用':''}}{{coupon_data.desc?','+coupon_data.desc+'。':'。'}}
					</view>
					<view wx:if="{{coupon_data.exp_date.is_none=='1' || coupon_data.exp_date.is_none===true}}" class="bottom">
						无限制{{coupon_data.desc?','+coupon_data.desc+'。':'。'}}
					</view>
					<view wx:if="{{coupon_data.exp_date.is_birthday=='1' || coupon_data.exp_date.is_birthday===true}}" class="bottom">
						会员生日当天可用{{coupon_data.desc?','+coupon_data.desc+'。':'。'}}
					</view>
				</view>
				<navigator url="/pack-activity/pack/buyCoupon?id={{coupon_data.id}}&name={{seller.name}}&use={{stringifyUse}}&sid={{seller.sid}}&oid={{detail.id}}" hover-class="navigator-hover">
					<view class="font24r orderingFood">
						去抢购
					</view>
				</navigator>
			</view>
			<!-- 当前日期要大于限制结束日期 -->
			<view class="preferentialItems" wx:if="{{marketing && marketing.is_recharge=='1' && recharge_data && (is_fix!='1' || (is_fix=='1' && dataStr<(recharge_data.exp_date.fix_edate*1)))}}">
				<view class="left">
					<view class="top">
						<text>{{recharge_data.rname}}</text>
					</view>
					<view class="bottom" wx:if="{{priceInfo}}">
						{{priceInfo}}{{(recharge_data.recharge_list.is_coupons=='0' && recharge_data.recharge_list.is_score=='0')?'。':';'}}
					</view>
					<view class="bottom" wx:if="{{scoreInfo}}">
						{{scoreInfo}}{{recharge_data.recharge_list.is_coupons=='0'?'。':';'}}
					</view>
					<view class="bottom" wx:if="{{recharge_data.recharge_list.is_coupons=='1'}}">
						{{recharge_data.recharge_list.is_coupons=='1'?'会员充值满'+marketing.recharge_data.recharge_money+'元赠送优惠券':''}}。
					</view>
				</view>
				<navigator url="/pack-activity/pack/vipRecharge?id={{recharge_data.id}}&name={{seller.name}}&sid={{seller.sid}}&oid={{detail.id}}" hover-class="navigator-hover">
					<view class="font24r orderingFood">
						去充值
					</view>
				</navigator>
			</view>
		</view>
		<!-- <view wx:if="{{marketing.is_link}}" class="font24r favouredPolicy">
			点击了解更多会员优惠政策
		</view> -->
	</view>
</scroll-view>
<view class="btns flex-cc">
	<button class="font32r continue flex-cc" bindtap="continueOrdering">菜品更换</button>
	<button class="font32r determine flex-cc" bindtap="determineFun">分享菜单</button>
</view>