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.
128 lines
6.3 KiB
128 lines
6.3 KiB
<!--pages/order/ctriphotel/index.wxml-->
|
|
<!-- <wxs src="../../../utils/filter.wxs" module="filter" /> -->
|
|
<title wx:if="{{CtripHotelCart}}" title="{{CtripHotelCart.product.title}}"></title>
|
|
<view class="box1" style="background:#f7f7f7" wx:if="{{CtripHotelCart}}">
|
|
<view class="top-box" style="justify-content:flex-start">
|
|
<text>{{CtripHotelCart.startDateText}} 周{{CtripHotelCart.startDay}}</text>
|
|
<view class="night-number">{{CtripHotelCart.days}}晚</view>
|
|
<text>{{CtripHotelCart.endDateText}} 周{{CtripHotelCart.endDay}}</text>
|
|
<!-- <view class="top-tip" bindtap="showInfo">房型详情</view> -->
|
|
</view>
|
|
<view class="sku-name">{{CtripHotelCart.sku_name}}</view>
|
|
<view class="tags">
|
|
<view class="tag">{{CtripHotelCart.sku_model.area}}</view>
|
|
<view class="tag">{{CtripHotelCart.sku_model.bed_type}}</view>
|
|
<view class="tag">{{CtripHotelCart.sku_model.breakfast}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="box" style="padding-bottom:0" wx:if="{{CtripHotelCart}}">
|
|
<view class="top-box top-box1">
|
|
<text>入住信息</text>
|
|
<view class="top-tip2">姓名与证件保持一致,每间只需填1人</view>
|
|
</view>
|
|
<view class="line-box">
|
|
<text>房间数量</text>
|
|
<picker style="flex:1" bindchange="changeNumber" value="{{numberIndex}}" range="{{roomNumbers}}">
|
|
<view class="pay-info-box" style="flex:1;justify-content:space-between">
|
|
<view class="line-box-text">
|
|
{{numberIndex+1}}间 每间最多住{{CtripHotelCart.sku_model.max_room_num}}人
|
|
</view>
|
|
<view class="iconfont icon-xia"></view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
<view class="line-box line-box1" style="height:auto">
|
|
<view>
|
|
<view bindtap="showLinkman" style="display:flex;align-items:center;height:109rpx;{{index!=numberIndex?'border-bottom:1rpx solid #cacaca':''}}" wx:for="{{numberIndex+1}}">
|
|
<text>房间{{index+1}}</text>
|
|
<view class="line-box-text">
|
|
<view class="line-box-tip">住客姓名</view>
|
|
<input disabled value="{{selectLinkman[index].name}}" type="text" placeholder="填1位入住人姓名"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view bindtap="showLinkman"><image src="https://static.ticket.sz-trip.com/xcxImages/other/selectLinkman.png" mode="widthFix"></image></view>
|
|
</view>
|
|
<view class="line-box" style="height:auto;margin:0;border:none">
|
|
<view class="line-box-text">
|
|
<view class="line-box line-box1">
|
|
<text>手机号</text>
|
|
<input style="flex:1" type="number" value="{{selectLinkman[0]?selectLinkman[0].tel:''}}" bindinput="inputTel" placeholder="请输入手机号"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="box" wx:if="{{CtripHotelCart}}">
|
|
<view class="top-box top-box1">
|
|
<text>费用明细</text>
|
|
<view class="pay-info-box-right">
|
|
{{CtripHotelCart.days}}晚,{{numberIndex+1}}间共<text>¥{{CtripHotelCart.price_sum/100 * (numberIndex+1)}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="pay-info-box pay-info-box2">
|
|
<view style="flex:1">
|
|
<view wx:for="{{priceInfo}}">{{item.date+" "+CtripHotelCart.sku_model.breakfast}}</view>
|
|
</view>
|
|
<view style="text-align:right;">
|
|
<view wx:for="{{priceInfo}}">{{numberIndex+1}} x ¥{{item.price/100}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 2023/9/14隐藏酒店下单页优惠券入口 -->
|
|
<coupon id="coupon" wx:if="{{showCoupon}}" money="{{CtripHotelCart.price_sum * (numberIndex+1)}}" sku="{{CtripHotelCart.id}}"></coupon>
|
|
<!-- 支付按钮 -->
|
|
<view style="height:{{100 }}rpx"></view>
|
|
<view class="fixed-bottom">
|
|
<view class="price-all">在线支付:<text wx:if="{{prizeId}}">¥0</text><text wx:else>¥{{(CtripHotelCart.price_sum/100 * (numberIndex+1) - (coupon?coupon.activity.money/100:0))>0?CtripHotelCart.price_sum/100 * (numberIndex+1) - (coupon?coupon.activity.money/100:0):0}}</text></view>
|
|
<text class="price-tip" bindtap="showFee">每晚明细</text>
|
|
<view class="pay-btn" bindtap="gotoPay">去支付</view>
|
|
</view>
|
|
<!-- 价格明细 -->
|
|
<view class="mask" wx:if="{{showFeeFlag}}" style="z-index:90">
|
|
<view class="mask-bg" bindtap="showFee"></view>
|
|
<view class="mask-content fee-mask-box">
|
|
<view class="pay-info-box" style="margin:0 20rpx">
|
|
<text class="pay-info-box-left">在线支付</text>
|
|
<view class="pay-info-box-right">{{CtripHotelCart.days}}晚,{{numberIndex+1}}间共<text>¥{{CtripHotelCart.price_sum/100 * (numberIndex+1)}}</text></view>
|
|
</view>
|
|
<view class="pay-info-box pay-info-box2">
|
|
<view style="flex:1">
|
|
<view wx:for="{{priceInfo}}">{{item.date+" "+CtripHotelCart.sku_model.breakfast}}</view>
|
|
</view>
|
|
<view style="text-align:right;">
|
|
<view wx:for="{{priceInfo}}">{{numberIndex+1}} x ¥{{item.price/100}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="pay-info-box pay-info-box2" style="color:#FB6E4D" wx:if="{{coupon}}">
|
|
<view style="flex:1">
|
|
<view>优惠金额</view>
|
|
</view>
|
|
<view style="text-align:right;">
|
|
<view>-{{coupon.activity.money/100}}</view>
|
|
</view>
|
|
</view>
|
|
<view style="height:100rpx"></view>
|
|
</view>
|
|
</view>
|
|
<view class="mask" style="align-items:flex-end" wx:if="{{showMask}}">
|
|
<view class="mask-bg" bindtap="cancel"></view>
|
|
<view class="mask-content linkman-mask">
|
|
<view class="btns">
|
|
<view bindtap="cancel">取消</view>
|
|
<view bindtap="confirm">确定</view>
|
|
</view>
|
|
<navigator url="/pages/old/linkman/add/index" class="add-btn">添加出行人</navigator>
|
|
<view class="linkmanlist-item" wx:for="{{linkmanList}}">
|
|
<view class="linkmanlist-item-top">
|
|
<navigator bindtap="gotoEdit" data-item="{{item}}" url="/pages/old/linkman/add/index?id={{item.id}}&from=order" class="iconfont icon-bianji1"></navigator>
|
|
<view class="linkman-nickname">{{item.name}}</view>
|
|
<view class="linkman-info">
|
|
<view class="linkman-tel" style="margin-bottom:20rpx">手机号 {{item.tel}}</view>
|
|
<view class="linkman-tel">{{item.title}} {{item.id_number}}</view>
|
|
</view>
|
|
<view class="iconfont {{item.selected==1?'icon-gou':'icon-quan'}}" bindtap="selectIt" data-item="{{item}}"></view>
|
|
</view>
|
|
<view class="linkmanlist-tip" bindtap="setDefault" data-item="{{item}}"><text style="position:static" class="iconfont {{item.is_default==1?'icon-iconfontoptionbutton':'icon-quan'}}"></text> 设为默认出行人</view>
|
|
</view>
|
|
</view>
|
|
</view>
|