From 02627db52527f7005f68143bf9a3193bbd846776 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Wed, 8 Jan 2025 21:05:42 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3010=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=E7=94=B3=E8=AF=B7=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E5=85=A5=E9=A9=BB=EF=BC=8C=E5=A1=AB=E5=86=99=E8=B5=84?= =?UTF-8?q?=E6=96=99=E8=BF=94=E5=9B=9E=E6=88=96=E7=82=B9=E5=87=BB=E6=92=A4?= =?UTF-8?q?=E9=94=80=E5=BA=97=E9=93=BA=E7=94=B3=E8=AF=B7=EF=BC=8C=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E8=BF=9B=E5=85=A5=EF=BC=8C=E5=A1=AB=E5=86=99=E7=9A=84?= =?UTF-8?q?=E8=B5=84=E6=96=99=E6=9C=AA=E4=BF=9D=E7=95=99=EF=BC=88=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=BA=E8=B5=84=E6=96=99=E4=BB=8D=E7=84=B6=E4=BF=9D?= =?UTF-8?q?=E7=95=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_join/views/supplier.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkg_join/views/supplier.vue b/pkg_join/views/supplier.vue index eee1e60..60e4a5b 100644 --- a/pkg_join/views/supplier.vue +++ b/pkg_join/views/supplier.vue @@ -698,6 +698,19 @@ export default { onLoad(options) { this.partnerId = options.partnerId || '' const type = options.type + const local = uni.getStorageSync(type) + this.formSupplier = local || { + name: '', + avatar: '', + contact: '', + phone: '', + captcha: '', + qualification: '', + subType: '', + area: '', + address: '', + position: '' + } this.formSupplier.subType = type if (type === 'goods_supplier') { this.infoTitle = '特产' @@ -711,6 +724,9 @@ export default { }) this.init() }, + onUnload() { + uni.setStorageSync(this.formSupplier.subType, this.formSupplier) + }, onReady() { this.$refs.shopForm.setRules(this.rules) this.$refs.supplierForm.setRules(this.rulesSupplier)