You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
202 lines
10 KiB
202 lines
10 KiB
<!--pages/order/scene/index.wxml-->
|
|
<wxs src="../../../utils/filter.wxs" module="tool" />
|
|
<view class="{{product && product.isGroup==1?'group-order':''}}">
|
|
<title title="订单填写"></title>
|
|
<!-- <view class="product-info" wx:if="{{product}}">
|
|
<view class="product-title">{{product.product.title + product.isGroup==1?'(团体预约)':product.sku.sku_name}}</view>
|
|
<view class="product-price" wx:if="{{type=='museum' || type=='activity'}}">免费</view>
|
|
</view> -->
|
|
<!-- <date wx:if="{{isLogin && type!='activity' && ticket_type == 1}}" bind:onChangeDate="changeDate" bind:onChangeTime="changeTime"
|
|
product="{{product}}"></date> -->
|
|
<!-- 出行日期 信息展示部分 -->
|
|
<view class="box" style="padding: 42rpx 21rpx 45rpx 19rpx;display: flex;justify-content: space-between;align-items: center;">
|
|
<view style="width: 550rpx;">
|
|
<view style="font-weight: 500;font-size: 36rpx;color: #000000;margin-bottom: 39rpx;" class="textOver2">
|
|
{{product.product.title}}
|
|
</view>
|
|
<view style="font-weight: 400;font-size: 25rpx;color: #666666;padding-left: 2rpx;" wx:if="{{ticket_type!= 2}}">
|
|
<view style="margin-bottom: 20rpx;">
|
|
{{date.date}} {{date.week}}
|
|
</view>
|
|
<view wx:if="{{time.start_time && time.end_time}}">
|
|
{{time.start_time}}-{{time.end_time}} 入园
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="change-date" bindtap="changeDate" wx:if="{{ticket_type!= 2}}">
|
|
修改 >
|
|
</view>
|
|
</view>
|
|
<view class="box" wx:if="{{product && product.isGroup==1}}">
|
|
<view class="box-title">
|
|
<view style="flex-shrink:0">团体主体名称:</view>
|
|
<input type="text" placeholder="请输入名称" bindinput="changeGroupName"></input>
|
|
</view>
|
|
</view>
|
|
<view class="box">
|
|
<view class="box-title">
|
|
<view class="textOver2" style="flex:1">{{product && product.isGroup!=1?product.sku.sku_name:'预约人数'}}</view>
|
|
<!-- <view style="flex:1">{{product && product.isGroup!=1?'购票数量':'预约人数'}}</view> -->
|
|
<!-- <view class="iconfont icon-sami-select" wx:if="{{!kjId && !gp_id && type!='activity'}}" bindtap="minus"></view> -->
|
|
<view class="s-price">
|
|
{{product.sku.price/100}}
|
|
</view>
|
|
<image lazy-load wx:if="{{!kjId && !gp_id && type!='activity' && productNum==1 && !product.sku.is_compose}}" bindtap="minus" style="width: 46rpx;height: 46rpx;" src="https://static.ticket.sz-trip.com/uploads/20240725/d2dce6169a5e8332ccd54579afddf8bc.png" mode=""/>
|
|
<image lazy-load wx:if="{{!kjId && !gp_id && type!='activity' && productNum>1 && !product.sku.is_compose}}" bindtap="minus" style="width: 46rpx;height: 46rpx;" src="https://static.ticket.sz-trip.com/uploads/20240725/d8699afa39e73bcc7f50ed617c93bb54.png" mode=""/>
|
|
<view class="number-box">{{productNum}}</view>
|
|
<image lazy-load wx:if="{{!kjId && !gp_id && type!='activity' && !product.sku.is_compose}}" bindtap="add" style="width: 46rpx;height: 46rpx;" src="https://static.ticket.sz-trip.com/uploads/20240725/cdb68a174f17b7036374580a8aa46641.png" mode=""/>
|
|
<!-- <view class="iconfont icon-add-select" wx:if="{{!kjId && !gp_id && type!='activity'}}" bindtap="add"></view> -->
|
|
</view>
|
|
<view class="text1">
|
|
<text wx:if="{{product.sku.display_tags_str}}">
|
|
{{product.sku.display_tags_str}}<text style="margin:0 8rpx;">|</text>
|
|
</text>
|
|
<text bindtap="showBookingInfo">预订须知 ></text>
|
|
</view>
|
|
<!-- <view class="text2">
|
|
<text wx:for="{{product.sku.display_tags}}" style="margin-right: 15rpx;">{{item}}</text>
|
|
</view> -->
|
|
</view>
|
|
<contact wx:if="{{isLogin}}" type="{{type}}" bind:setLinkman="setLinkman" productNum="{{productNum}}" is_authentication="{{is_authentication}}" is_real_name="{{is_real_name}}"></contact>
|
|
<!-- 补贴 -->
|
|
<view class="box">
|
|
<view class="box-title allowance" wx:if="{{allowance_price}}">
|
|
<view bindtap="changeAllowance">惠民补贴</view>
|
|
<view class="com-flex-tao" bindtap="selectAllowance">
|
|
-¥{{allowance_price / 100}}
|
|
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20220602/6ecdbc41527c0c603608686967d4493b.png"
|
|
alt="" wx:if="{{select_allowance}}"></image>
|
|
<view class="border" wx:else></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<coupon bind:getNewCoupon = 'getNewCoupon' wx:if="{{!kjId && !gp_id && type!='activity' && product && product.isGroup!=1 && isCar=='single' && type!='museum' && showYhq}}" id="coupon"
|
|
money="{{singlePrice * productNum}}" sku="{{product.sku.id}}" couponFlag="{{couponFlag}}"></coupon>
|
|
|
|
<!-- <view class="box" wx:if="{{type!='activity' && product && product.isGroup!=1}}">
|
|
<view class="box-title" wx:if="{{flag!='mix'}}">
|
|
<view style="flex-shrink:0">订单备注</view>
|
|
<input type="text" bindinput="changeRemark" placeholder="选填"></input>
|
|
</view>
|
|
</view> -->
|
|
|
|
<!-- 景点讲解 -->
|
|
<view class="explain-box" wx:if="{{explainData && explainData.id}}">
|
|
<view class="explain-title">景点讲解服务</view>
|
|
<view class="explain-prod">
|
|
<image class="explain-img" src="{{explainData.product.headimg}}"></image>
|
|
<view class="explain-content">
|
|
<view class="explain-goods textOver2">{{explainData.product.title}}</view>
|
|
<view class="explain-sku textOver2">{{explainData.sku.sku_name}}</view>
|
|
<view class="explain-price">0</view>
|
|
</view>
|
|
<view class="explain-sku" style="font-size: 28rpx;" bind:tap="changeContent" data-val="{{true}}"
|
|
style="align-self: flex-start;flex-shrink: 0;padding: 0 20rpx 0 0;">
|
|
详情 >
|
|
</view>
|
|
<view style="align-self: flex-start;flex-shrink: 0;">
|
|
<view class="iconfont icon-quan" wx:if="{{!selectExplain}}" bind:tap="changeSeletExplain" data-val="{{true}}"></view>
|
|
<view class="iconfont icon-gou1" wx:else bind:tap="changeSeletExplain" data-val="{{false}}"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- <view style="{{type=='museum' || type=='activity'?'height:138rpx':'height:113rpx'}}"></view> -->
|
|
<view style="height:138rpx"></view>
|
|
|
|
|
|
<view class="fixed-bottom" wx:if="{{type!='museum' && type!='activity'}}">
|
|
<view class="fixed-price-box" wx:if="{{kjId || prizeId}}"><text>合计:</text><text class="price">¥0</text></view>
|
|
<!-- <view class="fixed-price-box" wx:elif="{{prizeId}}"><text>合计:</text><text class="price">¥0</text></view> -->
|
|
<view class="fixed-price-box" wx:else><text>合计:</text>
|
|
<text class="price">¥{{price}}</text>
|
|
</view>
|
|
<view class="fixed-btn" bindtap="order">下一步</view>
|
|
</view>
|
|
<view class="fixed-bottom yuyue-box" wx:else>
|
|
<view class="fixed-btn yuyue-btn" bindtap="order" wx:if="{{type=='museum'}}">立即预约</view>
|
|
<view class="fixed-btn yuyue-btn" bindtap="activityOrder" wx:else>立即预约</view>
|
|
</view>
|
|
<view class="mask" style="align-items:flex-end" wx:if="{{showMask}}">
|
|
<view class="mask-bg" bindtap="cancel"></view>
|
|
<view class="mask-content1">
|
|
<view class="dialog-top">
|
|
<view class="scene-title">{{product.product.title}}-{{product.sku.sku_name}}</view>
|
|
<view class="people-message">出行人信息</view>
|
|
<view style="max-height:430rpx;overflow: scroll;" wx:if="{{is_authentication=='1'}}">
|
|
<view class="people" wx:for="{{linkmanList}}">
|
|
<view class="flex">
|
|
<view>姓名:</view>
|
|
<view style="color: #333;">{{item.name}}</view>
|
|
</view>
|
|
<view class="flex" style="margin: 19.33rpx 0;">
|
|
<view>证件号:</view>
|
|
<view style="color: #333;">{{item.id_number}}</view>
|
|
</view>
|
|
<view class="flex">
|
|
<view>手机号:</view>
|
|
<view style="color: #333;">{{item.tel}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:else>
|
|
<view class="flex" style="margin: 10rpx 0 30rpx;">
|
|
<view>手机号:</view>
|
|
<view style="color: #333;">{{phone}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom-btn">
|
|
<view class="cancle" bindtap="cancel">取消</view>
|
|
<view class="confirm" bindtap="order">无问题,下一步</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<notice bookingInfo="{{bookingInfo}}" skuName="{{bookingInfoTitle}}" wx:if="{{bookingInfo}}" bind:close="closeMask">
|
|
</notice>
|
|
<!-- 日期弹框 -->
|
|
<view class="mask" wx:if="{{showDate}}">
|
|
<view class="mask-bg" bindtap="hideDate"></view>
|
|
<view class="mask-content2">
|
|
<view class="iconfont icon-close" bindtap="hideDate"></view>
|
|
<view>
|
|
<date wx:if="{{showDate2}}" bind:onChangeDate="changeDate" bind:onChangeTime="changeTime" product="{{product}}" endDays="{{skuDays}}"></date>
|
|
<view style="width: 100%;height: 133rpx;"></view>
|
|
</view>
|
|
<view class="bottom-box">
|
|
<view>
|
|
合计: <text class="totalPrice">{{price}}</text>
|
|
</view>
|
|
<view class="next" bindtap="changed" data-sku="{{sku}}" data-product="{{item}}">
|
|
<!-- <view class="next" bindtap="order" data-sku="{{sku}}" data-product="{{item}}"> -->
|
|
确定
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="mask" wx:if="{{showContent && explainData}}">
|
|
<view class="mask-bg" bind:tap="changeContent" data-val="{{false}}"></view>
|
|
<view class="mask-content2" style="min-height: 1100rpx;">
|
|
<view class="iconfont icon-close" bind:tap="changeContent" data-val="{{false}}"></view>
|
|
<view style="text-align: center;padding: 20rpx 0;">产品详情</view>
|
|
<view style="max-height: 65vh;overflow-y: auto;">
|
|
<view style="width: 100%;padding:20rpx 20rpx 0;box-sizing: border-box;">
|
|
<image style="width: 100%;border-radius: 20rpx;height: 200rpx;" mode="widthFix" src="{{explainData.product.headimg}}"></image>
|
|
<view style="font-weight: bold;padding:20rpx 0">{{explainData.product.title}}</view>
|
|
</view>
|
|
<view style="height: 10rpx;background:#f2f2f2"></view>
|
|
<view style="padding:20rpx">
|
|
<view style="font-weight: bold;padding:0 0 20rpx">产品详情</view>
|
|
<rich-text class="detail" nodes="{{tool.formateRichText(explainData.product.content)}}"></rich-text>
|
|
</view>
|
|
<view style="height: 50rpx;"></view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|