修正佛前供灯bug
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
</div>
|
||||
</transition>
|
||||
<div class="next-group">
|
||||
<span class="total">合计:<em>¥{{lightSize.price || 0}}</em></span>
|
||||
<span class="total">合计:<em>¥{{totalPrice}}</em></span>
|
||||
<button class="next" @click="onNextStep">下一步</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,7 +122,6 @@ export default {
|
||||
value: '',
|
||||
spec_id: '',
|
||||
step: 0,
|
||||
quantity: 1,
|
||||
dreamInfo: null,
|
||||
anyPrice: 0, // 随喜金额
|
||||
swiperOption: {
|
||||
@@ -163,6 +162,10 @@ export default {
|
||||
lights.push(goods.slice(0 * i, 0 * i + 15))
|
||||
}
|
||||
return lights;
|
||||
},
|
||||
totalPrice(){
|
||||
if(!this.lightSize) return 0;
|
||||
return this.lightSize.price * this.buy_quantity
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
@@ -202,10 +205,10 @@ export default {
|
||||
goods_id: this.currentLight.id,
|
||||
spec_id: this.lightSize.id,
|
||||
friendly_time: this.number,
|
||||
quantity: this.quantity,
|
||||
quantity: this.buy_quantity,
|
||||
title: this.data.details.title,
|
||||
subTitle: this.currentLight.name + ':'+this.lightSize.name,
|
||||
amount: this.lightSize.price,
|
||||
amount: this.totalPrice,
|
||||
from: 'goods_light', // 标识为通用商品
|
||||
}
|
||||
})
|
||||
@@ -227,7 +230,7 @@ export default {
|
||||
// 获取感恩功德
|
||||
async getPayRecords(lType){
|
||||
this.listType = lType.id;
|
||||
const res = await getOrderCompare(this.query.temple_id, this.listType, this.query.goods_id, 3 );
|
||||
const res = await getOrderCompare(this.query.temple_id, this.listType, this.query.goods_id, 5 );
|
||||
console.log('pay record', res)
|
||||
this.payList = res.list;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user