250320
This commit is contained in:
@@ -262,8 +262,8 @@ export default {
|
||||
this.userInfo = await userStore.fetchUserInfo();
|
||||
eventChannel.on('data', async (data) => {
|
||||
_this.list = data
|
||||
if (data[0].isHalf === 1) _this.payPrice = data.reduce((a, b) => a + b.halfPrice, 0)
|
||||
else _this.payPrice = data.reduce((a, b) => a + b.price, 0)
|
||||
if (data[0].isHalf === 1) _this.payPrice = data.reduce((a, b) => a + parseFloat(b.halfPrice), 0)
|
||||
else _this.payPrice = data.reduce((a, b) => a + parseFloat(b.price), 0)
|
||||
|
||||
_this.originPrice = JSON.parse(JSON.stringify(_this.payPrice))
|
||||
const thinkOrderInfos = []
|
||||
@@ -294,6 +294,7 @@ export default {
|
||||
code: null,
|
||||
payType: 1,
|
||||
thinkOrderInfos,
|
||||
day: dayjs(item.dateTime).format('D') - 1,
|
||||
startTime: thinkOrderInfos.map(item => item.startTime).join()
|
||||
}
|
||||
})
|
||||
@@ -558,10 +559,12 @@ export default {
|
||||
async onPayType(index) {
|
||||
// app.payType = index;
|
||||
this.form.payType = index;
|
||||
console.log(this.form.payType)
|
||||
this.form.vid = null
|
||||
this.form.code = null
|
||||
this.reducePrice = 0
|
||||
if (this.form.sid !== 37) this.payPrice = this.originPrice
|
||||
else this.reCalSwimAmount({value: this.peopleNum})
|
||||
if (this.form.payType === 2) this.makeUserVipCardList()
|
||||
if (this.form.payType === 5) this.makeUserCardList()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user