Browse Source

演艺票非实名优惠券后价格展示

master
shaojing 2 years ago
parent
commit
56413e8d0b
  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.isTest147? true : false; data.isTest = data.isTest148? true : false;
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {
// 获取ui配置文件 // 获取ui配置文件

6
pages/order/scene/index.js

@ -94,8 +94,8 @@ Page({
// singlePrice: 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); console.log(this.data.singlePrice);
this.showAllPrice()
this.getNewCoupon() this.getNewCoupon()
// this.showAllPrice()
// console.log('********',this.data.product); // console.log('********',this.data.product);
if (!this.data.kjId && !this.data.gp_id && this.data.product.isGroup != 1 && this.data.type!='museum') { if (!this.data.kjId && !this.data.gp_id && this.data.product.isGroup != 1 && this.data.type!='museum') {
this.couponCom = this.selectAllComponents("#coupon")[0]; this.couponCom = this.selectAllComponents("#coupon")[0];
@ -167,8 +167,8 @@ Page({
// console.log(this.data.singlePrice); // console.log(this.data.singlePrice);
}else { }else {
let price let price
if (this.data.coupon) { if (this.data.coupon) {
if (this.data.coupon.discount_type == 'pricebreak') { if (this.data.coupon.activity.discount_type == 'pricebreak') {
price = this.data.singlePrice * this.data.productNum - this.data.coupon.activity.money price = this.data.singlePrice * this.data.productNum - this.data.coupon.activity.money
} else { } else {
price =(this.data.singlePrice * this.data.productNum * this.data.coupon.activity.fold)/ 10 price =(this.data.singlePrice * this.data.productNum * this.data.coupon.activity.fold)/ 10

Loading…
Cancel
Save