Quellcode durchsuchen

isPay问题

yxb
DESKTOP-2IO5MST\huting vor 1 Jahr
Ursprung
Commit
16b1e392be
2 geänderte Dateien mit 2 neuen und 22 gelöschten Zeilen
  1. 1
    1
      subpackage/after-sale/empty.vue
  2. 1
    21
      subpackage/orders/payment/payment.vue

+ 1
- 1
subpackage/after-sale/empty.vue Datei anzeigen

state.isPay = option.isPay; state.isPay = option.isPay;
state.token = option.token; state.token = option.token;
state.openId = option.openId; state.openId = option.openId;
console.log("option11111", option)
console.log("option1111111111", option)
if (state.isPay == "1") { if (state.isPay == "1") {
// 为1时跳转到2小程序支付 // 为1时跳转到2小程序支付
my.navigateToMiniProgram({ my.navigateToMiniProgram({

+ 1
- 21
subpackage/orders/payment/payment.vue Datei anzeigen

}; };
request(checkOrderStatus, optionsaliquery).then((res) => { request(checkOrderStatus, optionsaliquery).then((res) => {
console.log('支付结果查询:', res) console.log('支付结果查询:', res)
// 支付完成跳转到h5
// const param = `https://qtzl.etcjz.cn/order/#/pages/payment/payment?qdOrderNo=${state.qdOrderNo}&type=3`
// const params = encodeURIComponent(JSON.stringify(param))
// console.log('支付结果查询params', params)
// uni.navigateTo({
// url: `/subpackage/personal-center/webview?url=` + params
// })
if (state.isPay == "1") { if (state.isPay == "1") {
my.navigateToMiniProgram({ my.navigateToMiniProgram({
appId: '2021004102619032', // 16 位 appId: '2021004102619032', // 16 位
path: `/subpackage/after-sale/empty?qdOrderNo=${state.qdOrderNo}&type=3&orderId=${state.orderId}isPay=2`,
path: `/subpackage/after-sale/empty?qdOrderNo=${state.qdOrderNo}&type=3&orderId=${state.orderId}&isPay=2`,
query: { query: {
a: 'foo', a: 'foo',
b: 'bar', b: 'bar',
} }
}); });
} }

// my.navigateBackMiniProgram({
// extraData: {
// 'qdOrderNo': state.qdOrderNo,
// 'type': 3
// },
// success: (res) => {
// console.log(res)
// },
// fail: (err) => {
// console.log(err)
// }
// });
}) })
}, },
fail: res => { fail: res => {

Laden…
Abbrechen
Speichern