This commit is contained in:
曹辉 2023-03-13 17:09:32 +08:00
parent 904df19c7f
commit 2c5424924e

View File

@ -85,6 +85,7 @@
buy() { buy() {
var that = this var that = this
addHealthConsultationOrder(this.updata).then(res => { addHealthConsultationOrder(this.updata).then(res => {
if (res.code == 200) {
res.data.payType = "WECHAT_PAY" res.data.payType = "WECHAT_PAY"
res.data.paymentPrice = res.data.totalPrice res.data.paymentPrice = res.data.totalPrice
res.data.openid = this.openid res.data.openid = this.openid
@ -122,6 +123,13 @@
}) })
} }
}) })
} else {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: 2000
})
}
}) })
}, },
}, },