Browse Source

华谊价格展示问题

master
shaojing 2 years ago
parent
commit
c5928de815
  1. 2
      app.js
  2. 4
      pages/info/sceneProductInfo/index.js
  3. 3
      pages/order/scene/index.js

2
app.js

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

4
pages/info/sceneProductInfo/index.js

@ -225,8 +225,10 @@ Page({
},
// 获取日期
changeDate: function (e) {
console.log(e);
this.setData({
date: e.detail
date: e.detail,
showPrice:e.detail.price
})
console.log(this.data.date);
},

3
pages/order/scene/index.js

@ -87,7 +87,8 @@ Page({
}
this.setData({
product: app.globalData.product,
singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price
singlePrice: app.globalData.product?app.globalData.product.date.price :(this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price)
// singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price
})
console.log(this.data.singlePrice);
this.showAllPrice()

Loading…
Cancel
Save