From 085730bb9c6fe11a04b732e78c1289efa822149d Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Thu, 20 Aug 2026 10:57:01 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5808=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E3=80=90=E5=95=86=E6=88=B7?= =?UTF-8?q?=E5=85=A5=E9=A9=BB-=E6=96=87=E7=8E=A9=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E3=80=91=E5=85=A5=E9=A9=BB=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E8=B5=84=E6=96=99=E5=90=8E=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=95=86=E6=88=B7=E5=85=A5=E9=A9=BB=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E6=AC=A1=E8=BF=9B=E5=85=A5=E6=97=B6=E5=B7=B2?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E7=9A=84=E5=BA=97=E9=93=BA=E8=B5=84=E6=96=99?= =?UTF-8?q?=E6=9C=AA=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_join/views/supplier.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg_join/views/supplier.vue b/pkg_join/views/supplier.vue index eebe0b8..ee8bc44 100644 --- a/pkg_join/views/supplier.vue +++ b/pkg_join/views/supplier.vue @@ -714,7 +714,8 @@ export default { // 是否为审核中 reviewing: false, pageKeyId: '', - showUpload: false + showUpload: false, + draftKey: '' } }, computed: { @@ -799,9 +800,10 @@ export default { this.partnerId = options.partnerId || '' this.promoterUid = options.promoterUid || '' const type = options.type - const local = uni.getStorageSync(type) || {} - const local_form = uni.getStorageSync(type + '_form') || {} - this.quaPics = uni.getStorageSync(type + '_quaPics') || [] + this.draftKey = type + const local = uni.getStorageSync(this.draftKey) || {} + const local_form = uni.getStorageSync(this.draftKey + '_form') || {} + this.quaPics = uni.getStorageSync(this.draftKey + '_quaPics') || [] console.log(this.quaPics, 'this.quaPics'); if(!local_form.serviceTime) { @@ -855,9 +857,9 @@ export default { this.init() }, onUnload() { - uni.setStorageSync(this.formSupplier.subType, this.formSupplier) - uni.setStorageSync(this.formSupplier.subType+'_quaPics', this.quaPics) - uni.setStorageSync(this.formSupplier.subType + '_form', this.form) + uni.setStorageSync(this.draftKey, this.formSupplier) + uni.setStorageSync(this.draftKey + '_quaPics', this.quaPics) + uni.setStorageSync(this.draftKey + '_form', this.form) }, onReady() { this.$refs.shopForm.setRules(this.rules)