From 331dc84d3177fbc7ac4f5f7120bcadd6ad17122a Mon Sep 17 00:00:00 2001 From: jscyl_mac <13849007907@163.com> Date: Wed, 2 Jul 2025 19:12:30 +0800 Subject: [PATCH] no message --- root/detail/apply.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/root/detail/apply.vue b/root/detail/apply.vue index 885590b..1d9e439 100644 --- a/root/detail/apply.vue +++ b/root/detail/apply.vue @@ -483,12 +483,21 @@ export default { console.log('邀请 codeRes 2',codeRes) this.oid = codeRes[1].split('_')[1]; this.relationId = codeRes[1].split('_')[2]; + uni.setStorageSync('order_oid',this.oid) + uni.setStorageSync('order_relationId',this.relationId) this.type = '1'; console.log('邀请 codeRes 3 oid:',this.oid,' rid:',this.relationId) } else { - this.oid = options.id; - this.relationId = options.relationId; - this.type = options.type; + if(options.id){ + this.oid = options.id; + this.relationId = options.relationId; + this.type = options.type; + }else if(uni.getStorageSync('order_oid')){ + this.oid = uni.getStorageSync('order_oid'); + this.relationId = uni.getStorageSync('order_relationId'); + this.type = options.type; + } + } }, onShow() { @@ -599,6 +608,8 @@ export default { relationId: that.relationId, }, (res) => { + uni.removeStorageSync('order_oid') + uni.removeStorageSync('order_relationId') console.log("工单详情:", res); // return; console.log("res", res);