删除跳转获取的信息弹出提示

cz_dev
格调main 2026-03-06 10:00:27 +08:00
parent bf7cb7ec01
commit 075054a6c1
1 changed files with 43 additions and 43 deletions

86
App.vue
View File

@ -19,52 +19,52 @@
console.log(options)
// 2. scene '1038'
if (options.scene === 1038 &&
options.referrerInfo?.appId === 'wxef277996acc166c3') {
// if (options.scene === 1038 &&
// options.referrerInfo?.appId === 'wxef277996acc166c3') {
//
const extraData = options.referrerInfo.extraData;
console.log("extraData",extraData)
// //
// const extraData = options.referrerInfo.extraData;
// console.log("extraData",extraData)
if (!extraData) {
uni.showToast({
title: '当前通过物理按键返回,未接收到返参,建议自行查询交易结果',
icon: 'none',
duration: 3000
});
} else {
if (extraData.code === 'success') {
//
// 1. 使
const orderNumberFromExtra =
extraData.orderNumber || extraData.reqsn || extraData.orderNo;
// 2. 使
const storedOrderNumber = uni.getStorageSync("lastOrderNumber");
const orderNumber = orderNumberFromExtra || storedOrderNumber;
// if (!extraData) {
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 3000
// });
// } else {
// if (extraData.code === 'success') {
// //
// // 1. 使
// const orderNumberFromExtra =
// extraData.orderNumber || extraData.reqsn || extraData.orderNo;
// // 2. 使
// const storedOrderNumber = uni.getStorageSync("lastOrderNumber");
// const orderNumber = orderNumberFromExtra || storedOrderNumber;
if (orderNumber) {
this.startOrderStatusPolling(orderNumber);
} else {
uni.showToast({
title: '支付返回缺少订单号,请稍后在服务记录中查看',
icon: 'none',
duration: 3000
});
}
} else if (extraData.code === 'cancel') {
uni.showToast({
title: '支付已取消',
icon: 'none'
});
} else {
uni.showToast({
title: `支付失败:${extraData.errmsg || '未知错误'}`,
icon: 'none',
duration: 3000
});
}
}
}
// if (orderNumber) {
// this.startOrderStatusPolling(orderNumber);
// } else {
// uni.showToast({
// title: '',
// icon: 'none',
// duration: 3000
// });
// }
// } else if (extraData.code === 'cancel') {
// uni.showToast({
// title: '',
// icon: 'none'
// });
// } else {
// uni.showToast({
// title: `${extraData.errmsg || ''}`,
// icon: 'none',
// duration: 3000
// });
// }
// }
// }
},
onHide: function() {
console.log('App Hide')