提交 81decb42 authored 作者: 王鹏飞's avatar 王鹏飞

chore: RESERVATION_FEE -> TUITION

上级 67fd4e91
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
methods: { methods: {
// 获取订单 // 获取订单
getOrder(callback) { getOrder(callback) {
api.getOrder({ wx_open_id: this.openId, payment_method: 'WX_PAY' }, 'RESERVATION_FEE').then(response => { api.getOrder({ wx_open_id: this.openId, payment_method: 'WX_PAY' }, 'TUITION').then(response => {
const { data, error, message } = response const { data, error, message } = response
if (error.toString() === '0') { if (error.toString() === '0') {
this.order = data this.order = data
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
methods: { methods: {
// 获取订单 // 获取订单
getOrder() { getOrder() {
api.getOrder({ payment_method: 'WX_PAY_QR' }, 'RESERVATION_FEE').then(response => { api.getOrder({ payment_method: 'WX_PAY_QR' }, 'TUITION').then(response => {
const { data, error, message } = response const { data, error, message } = response
this.qrcodeError = error.toString() === '1' this.qrcodeError = error.toString() === '1'
if (error.toString() === '0') { if (error.toString() === '0') {
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
orderList() { orderList() {
// 筛选待支付订单 // 筛选待支付订单
const list = this.paymentRecords.filter(item => { const list = this.paymentRecords.filter(item => {
return item.bill_type === 'RESERVATION_FEE' && item.payment_status === 'WAITING_FOR_PAY' return item.bill_type === 'TUITION' && item.payment_status === 'WAITING_FOR_PAY'
}) })
// 待支付订单是否有当前订单 // 待支付订单是否有当前订单
const found = list.find(item => item.id === this.order.id) const found = list.find(item => item.id === this.order.id)
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
if (paymentRecords && paymentRecords.length) { if (paymentRecords && paymentRecords.length) {
// 获取支付成功的订单 // 获取支付成功的订单
const orderPaySuccess = paymentRecords.find(item => { const orderPaySuccess = paymentRecords.find(item => {
return item.bill_type === 'RESERVATION_FEE' && item.payment_status === 'SUCCESS' return item.bill_type === 'TUITION' && item.payment_status === 'SUCCESS'
}) })
if (orderPaySuccess) { if (orderPaySuccess) {
this.order = orderPaySuccess this.order = orderPaySuccess
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
return return
} }
const userId = this.user.id const userId = this.user.id
api.checkPay(order.id, { user_id: userId }, 'RESERVATION_FEE').then(response => { api.checkPay(order.id, { user_id: userId }, 'TUITION').then(response => {
if (response.data.payment_status === 'SUCCESS') { if (response.data.payment_status === 'SUCCESS') {
this.timer && clearInterval(this.timer) this.timer && clearInterval(this.timer)
this.dialogVisible = true this.dialogVisible = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论