优化交易完成页
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 46s

This commit is contained in:
kk
2026-07-11 17:17:34 +08:00
parent 2978ac25f7
commit 149fcdd231
3 changed files with 81 additions and 12 deletions
+7 -1
View File
@@ -146,7 +146,13 @@ export default {
},
onLoad(options) {
this.orderId = options.order_id || '';
if (this.orderId) {
// 优先从缓存读取(订单列表/交易完成页跳转时已存入)
const cached = uni.getStorageSync('__order_detail_cache');
if (cached) {
this.order = cached;
this.orderId = cached.order_id || this.orderId;
uni.removeStorageSync('__order_detail_cache');
} else if (this.orderId) {
this.fetchOrder();
}
},