Browse Source

景区详情改版调整

master
shaojing 2 years ago
parent
commit
6c3ff4fbce
  1. 2
      app.js
  2. 8
      pages/info/sceneProductInfo/index.js
  3. 2
      pages/info/sceneProductInfo/index.wxml
  4. 5
      pages/info/sceneProductInfo/index.wxss
  5. 6
      pages/order/scene/index.js
  6. 2
      pages/order/scene/index.wxml
  7. 5
      pages/order/scene/index.wxss

2
app.js

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

8
pages/info/sceneProductInfo/index.js

@ -39,7 +39,8 @@ Page({
date: "",
time: "",
showDate:false,
showPrice:0
showPrice:0,
showDate2:false
},
/**
@ -759,6 +760,9 @@ Page({
},
// 选择日期
selectDate(e) {
this.setData({
showDate: true,
})
console.log(e.currentTarget.dataset);
let sku = {
sku: e.currentTarget.dataset.sku
@ -775,7 +779,7 @@ Page({
console.log(app.globalData.product);
this.setData({
product: product,
showDate: true,
showDate2: true,
skuFlag: 'order',
showPrice:e.currentTarget.dataset.sku.price
})

2
pages/info/sceneProductInfo/index.wxml

@ -111,7 +111,7 @@
<view class="mask-bg" bindtap="hideDate"></view>
<view class="mask-content1">
<view class="iconfont icon-close" bindtap="hideDate"></view>
<date bind:onChangeDate="changeDate" bind:onChangeTime="changeTime" product="{{product}}"></date>
<date wx:if="{{showDate2}}" bind:onChangeDate="changeDate" bind:onChangeTime="changeTime" product="{{product}}"></date>
<view class="bottom-box">
<view>
合计: <text class="totalPrice">{{showPrice/100}}</text>

5
pages/info/sceneProductInfo/index.wxss

@ -888,6 +888,10 @@ page {
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
.next {
width: 250rpx;
@ -910,6 +914,7 @@ page {
background: white;
border-radius: 12rpx;
overflow-y: auto;
height: 1100rpx;
}
.icon-close {
position: absolute;

6
pages/order/scene/index.js

@ -43,6 +43,7 @@ Page({
bookingInfo: null,
bookingInfoTitle: "",
showDate:false,
showDate2:false,
},
/**
@ -275,6 +276,9 @@ Page({
},
changeDate: function (e) {
console.log('打印',e);
this.setData({
showDate:true
})
// debugger
// this.showAllPrice()
this.totalPrice(e.detail.price)
@ -296,7 +300,7 @@ Page({
this.setData({
date: e.detail,
singlePrice: this.data.gp_id ? this.data.product.sku.event_price : e.detail.price,
showDate:true
showDate2:true
})
// this.changePrice()
},

2
pages/order/scene/index.wxml

@ -135,7 +135,7 @@
<view class="mask-bg" bindtap="hideDate"></view>
<view class="mask-content2">
<view class="iconfont icon-close" bindtap="hideDate"></view>
<date bind:onChangeDate="changeDate" bind:onChangeTime="changeTime" product="{{product}}"></date>
<date wx:if="{{showDate2}}" bind:onChangeDate="changeDate" bind:onChangeTime="changeTime" product="{{product}}"></date>
<view class="bottom-box">
<view>
合计: <text class="totalPrice">{{price}}</text>

5
pages/order/scene/index.wxss

@ -399,6 +399,7 @@ page {
background: white;
border-radius: 12rpx;
overflow-y: auto;
height: 1100rpx;
}
.bottom-box {
height: 133rpx;
@ -408,6 +409,10 @@ page {
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
.totalPrice {
font-family: PingFang SC;

Loading…
Cancel
Save