Browse Source

期票价格展示

master
shaojing 2 years ago
parent
commit
b90e736795
  1. 2
      app.js
  2. 6
      pages/order/scene/index.js

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.isTest126? true : false; data.isTest = data.isTest127? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

6
pages/order/scene/index.js

@ -97,9 +97,9 @@ Page({
// console.log('productNum',this.data.productNum); // console.log('productNum',this.data.productNum);
console.log('couponInfo',app.globalData.couponInfo); console.log('couponInfo',app.globalData.couponInfo);
if (this.data.ticket_type != 1) { if (this.data.ticket_type != 1) {
this.setData({ // this.setData({
singlePrice:app.globalData.product.product.price // singlePrice:app.globalData.product.product.price
}) // })
let price = this.data.singlePrice * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0) let price = this.data.singlePrice * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0)
if (price >0) { if (price >0) {
this.setData({ this.setData({

Loading…
Cancel
Save