Browse Source

feat: 接口对接;

fox
Fox-33 1 day ago
parent
commit
b9ce59c8bc
2 changed files with 14 additions and 7 deletions
  1. +5
    -3
      pages_order/report/pay.vue
  2. +9
    -4
      pages_order/test/testCard.vue

+ 5
- 3
pages_order/report/pay.vue View File

@ -153,13 +153,15 @@
const result = await this.$fetch('createOrder', params) const result = await this.$fetch('createOrder', params)
await uni.requestPaymentWxPay({ result })
if (params.payAmount > 0) {
await uni.requestPaymentWxPay({ result })
}
uni.showToast({ uni.showToast({
title: '支付成功', title: '支付成功',
icon: 'none' icon: 'none'
}) })
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: `/pages_order/report/userInfo?batchNo=${this.batchNo}` url: `/pages_order/report/userInfo?batchNo=${this.batchNo}`


+ 9
- 4
pages_order/test/testCard.vue View File

@ -54,10 +54,15 @@
}) })
}, },
onCreateReport() { onCreateReport() {
// todo: check
uni.navigateTo({
url: `/pages_order/report/pay?batchNo=${this.data.batchNo}`
})
if (this.data.isPay) {
uni.navigateTo({
url: `/pages_order/report/userInfo?batchNo=${this.batchNo}`
})
} else {
uni.navigateTo({
url: `/pages_order/report/pay?batchNo=${this.data.batchNo}`
})
}
}, },
}, },
} }


Loading…
Cancel
Save