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" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest133? true : false; data.isTest = data.isTest134? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

8
pages/info/sceneProductInfo/index.js

@ -39,7 +39,8 @@ Page({
date: "", date: "",
time: "", time: "",
showDate:false, showDate:false,
showPrice:0 showPrice:0,
showDate2:false
}, },
/** /**
@ -759,6 +760,9 @@ Page({
}, },
// 选择日期 // 选择日期
selectDate(e) { selectDate(e) {
this.setData({
showDate: true,
})
console.log(e.currentTarget.dataset); console.log(e.currentTarget.dataset);
let sku = { let sku = {
sku: e.currentTarget.dataset.sku sku: e.currentTarget.dataset.sku
@ -775,7 +779,7 @@ Page({
console.log(app.globalData.product); console.log(app.globalData.product);
this.setData({ this.setData({
product: product, product: product,
showDate: true, showDate2: true,
skuFlag: 'order', skuFlag: 'order',
showPrice:e.currentTarget.dataset.sku.price 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-bg" bindtap="hideDate"></view>
<view class="mask-content1"> <view class="mask-content1">
<view class="iconfont icon-close" bindtap="hideDate"></view> <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 class="bottom-box">
<view> <view>
合计: <text class="totalPrice">{{showPrice/100}}</text> 合计: <text class="totalPrice">{{showPrice/100}}</text>

5
pages/info/sceneProductInfo/index.wxss

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

6
pages/order/scene/index.js

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

2
pages/order/scene/index.wxml

@ -135,7 +135,7 @@
<view class="mask-bg" bindtap="hideDate"></view> <view class="mask-bg" bindtap="hideDate"></view>
<view class="mask-content2"> <view class="mask-content2">
<view class="iconfont icon-close" bindtap="hideDate"></view> <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 class="bottom-box">
<view> <view>
合计: <text class="totalPrice">{{price}}</text> 合计: <text class="totalPrice">{{price}}</text>

5
pages/order/scene/index.wxss

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

Loading…
Cancel
Save