|
|
|
@ -44,6 +44,7 @@ Page({ |
|
|
|
bookingInfoTitle: "", |
|
|
|
showDate:false, |
|
|
|
showDate2:false, |
|
|
|
showYhq:null |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -64,9 +65,10 @@ Page({ |
|
|
|
is_authentication:app.globalData.product.sku.sku_model.is_authentication, |
|
|
|
is_real_name:app.globalData.product.sku.sku_model.is_real_name, |
|
|
|
date: app.globalData.product.date, |
|
|
|
time: app.globalData.product.time |
|
|
|
time: app.globalData.product.time, |
|
|
|
showYhq:app.globalData.listName?false:true |
|
|
|
}) |
|
|
|
console.log('-------',this.data.date,this.data.time); |
|
|
|
console.log('-------',this.data.showYhq,this.data.time); |
|
|
|
// debugger
|
|
|
|
console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard); |
|
|
|
console.log('---是否实名----',app.globalData.product.sku.sku_model.is_authentication); |
|
|
|
@ -87,7 +89,7 @@ Page({ |
|
|
|
} |
|
|
|
this.setData({ |
|
|
|
product: app.globalData.product, |
|
|
|
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: app.globalData.product.date?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); |
|
|
|
@ -140,7 +142,17 @@ Page({ |
|
|
|
// this.setData({
|
|
|
|
// 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 |
|
|
|
if (this.data.coupon) { |
|
|
|
if (this.data.coupon.discount_type == 'pricebreak') { |
|
|
|
price = this.data.singlePrice * this.data.productNum - this.data.coupon.activity.money |
|
|
|
} else { |
|
|
|
price =(this.data.singlePrice * this.data.productNum * this.data.coupon.activity.fold)/ 10 |
|
|
|
} |
|
|
|
} else { |
|
|
|
price = this.data.singlePrice * this.data.productNum |
|
|
|
} |
|
|
|
|
|
|
|
if (price >0) { |
|
|
|
this.setData({ |
|
|
|
price:price/100 |
|
|
|
@ -152,7 +164,17 @@ Page({ |
|
|
|
} |
|
|
|
// console.log(this.data.singlePrice);
|
|
|
|
} |
|
|
|
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)
|
|
|
|
let price |
|
|
|
if (this.data.coupon) { |
|
|
|
if (this.data.coupon.discount_type == 'pricebreak') { |
|
|
|
price = this.data.singlePrice * this.data.productNum - this.data.coupon.activity.money |
|
|
|
} else { |
|
|
|
price =(this.data.singlePrice * this.data.productNum * this.data.coupon.activity.fold)/ 10 |
|
|
|
} |
|
|
|
} else { |
|
|
|
price = this.data.singlePrice * this.data.productNum |
|
|
|
} |
|
|
|
if (price >0) { |
|
|
|
this.setData({ |
|
|
|
price:price/100 |
|
|
|
@ -261,7 +283,17 @@ Page({ |
|
|
|
}, |
|
|
|
totalPrice(price) { |
|
|
|
let allPrice |
|
|
|
allPrice = price * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0) |
|
|
|
if (this.data.coupon) { |
|
|
|
if (this.data.coupon.discount_type == 'pricebreak') { |
|
|
|
allPrice = this.data.singlePrice * this.data.productNum - this.data.coupon.activity.money |
|
|
|
} else { |
|
|
|
allPrice =(this.data.singlePrice * this.data.productNum * this.data.coupon.activity.fold)/ 10 |
|
|
|
} |
|
|
|
} else { |
|
|
|
allPrice = this.data.singlePrice * this.data.productNum |
|
|
|
} |
|
|
|
|
|
|
|
// allPrice = price * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0)
|
|
|
|
if (allPrice >0) { |
|
|
|
this.setData({ |
|
|
|
price:allPrice/100, |
|
|
|
|