From a315303d2f5023ba9eed576d5956d8926880f050 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Fri, 1 Jul 2022 14:45:21 +0800 Subject: [PATCH] 购买会员卡 --- src/views/cards/buyCard.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/src/views/cards/buyCard.vue b/src/views/cards/buyCard.vue index e91197e..298bee2 100644 --- a/src/views/cards/buyCard.vue +++ b/src/views/cards/buyCard.vue @@ -325,6 +325,8 @@ export default { queryVipCardInfoByPlNo(jsondata).then(data => { console.log(data); if (data.code == 0) { + me.cardTypeList = [] + me.carType = '请点击选择' // res.vipCardList = // this.cardTypeList = res.vipCardList // { name: "月卡", num: 1, method: this.clickAction }, @@ -335,6 +337,17 @@ export default { me.cardTypeList.push(item); }); console.log(me.cardTypeList); + if(me.carType=='请点击选择'){ + + }else{ + me.cardNum = 1 + me.unitPrice = vipCardList[0].price; + me.disPrice = vipCardList[0].price * ((10 - vipCardList[0].discValue) / 10); + me.needPay = this.unitPrice - this.disPrice; + // me.startData = new Date(); + me.typeNum = vipCardList[0].cardType; + me.createVipCardOrder = e; + } } else { this.$vux.toast.text(data.message, "top"); } @@ -391,6 +404,7 @@ export default { this.$vux.toast.text("请选择停车场", "top"); return; } + console.log(this.carType) if (this.carType == "请点击选择") { this.$vux.toast.text("请选择卡类型", "top"); return; -- libgit2 0.21.4