|
|
@ -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 |
|
|
|