Browse Source

feat: 接口对接;

fox
Fox-33 16 hours 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)
await uni.requestPaymentWxPay({ result })
if (params.payAmount > 0) {
await uni.requestPaymentWxPay({ result })
}
uni.showToast({
title: '支付成功',
icon: 'none'
})
setTimeout(() => {
uni.redirectTo({
url: `/pages_order/report/userInfo?batchNo=${this.batchNo}`


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

@ -54,10 +54,15 @@
})
},
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