Browse Source

酒店

master
jiazhipeng 1 year ago
parent
commit
149344ecd8
  1. 2
      app.js
  2. 14
      pages/order/hotel/index.js
  3. 2
      pages/order/hotel/index.wxml

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest157? true : false; data.isTest = data.isTest? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

14
pages/order/hotel/index.js

@ -29,7 +29,8 @@ Page({
showMask:false, showMask:false,
editId:null, editId:null,
linkmanList:[], linkmanList:[],
prizeId:null prizeId:null,
showCoupon: false
}, },
/** /**
@ -39,7 +40,7 @@ Page({
this.setData({ this.setData({
prizeId:wx.getStorageSync('prizeId') prizeId:wx.getStorageSync('prizeId')
}) })
this.couponCom = this.selectAllComponents("#coupon")[0];
let CtripHotelCart = app.globalData.product; let CtripHotelCart = app.globalData.product;
// 获取默认联系人 // 获取默认联系人
userApi.user_post("user/getDefaultContact",{ userApi.user_post("user/getDefaultContact",{
@ -73,8 +74,15 @@ Page({
CtripHotelCart.price_sum = price_sum; CtripHotelCart.price_sum = price_sum;
this.setData({ this.setData({
priceInfo:res.data, priceInfo:res.data,
CtripHotelCart:CtripHotelCart CtripHotelCart:CtripHotelCart,
showCoupon: true
}) })
this.couponCom = this.selectAllComponents("#coupon")[0];
// if (this.couponCom) {
// this.couponCom.getMaxCoupon()
// }
}) })
}, },
inputTel:function(e){ inputTel:function(e){

2
pages/order/hotel/index.wxml

@ -69,7 +69,7 @@
</view> </view>
</view> </view>
<!-- 2023/9/14隐藏酒店下单页优惠券入口 --> <!-- 2023/9/14隐藏酒店下单页优惠券入口 -->
<!-- <coupon id="coupon" money="{{CtripHotelCart.price_sum * (numberIndex+1)}}" sku="{{CtripHotelCart.id}}"></coupon> --> <coupon id="coupon" wx:if="{{showCoupon}}" money="{{CtripHotelCart.price_sum * (numberIndex+1)}}" sku="{{CtripHotelCart.id}}"></coupon>
<!-- 支付按钮 --> <!-- 支付按钮 -->
<view style="height:{{100 }}rpx"></view> <view style="height:{{100 }}rpx"></view>
<view class="fixed-bottom"> <view class="fixed-bottom">

Loading…
Cancel
Save