From d03d30bd7aec07da025b2ef5063904f077cda50d Mon Sep 17 00:00:00 2001
From: wangxiaowei <1121133807@qq.com>
Date: Sun, 15 Sep 2024 09:49:00 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=AC=E5=9C=B0=E7=94=9F?=
=?UTF-8?q?=E6=B4=BB=E5=95=86=E5=93=81=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
bundle_b/pages/local_shop/components/shop-list.vue | 6 ++----
bundle_b/pages/local_shop/local_shop_add.vue | 2 +-
bundle_b/pages/local_shop/local_shop_edit.vue | 5 ++++-
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/bundle_b/pages/local_shop/components/shop-list.vue b/bundle_b/pages/local_shop/components/shop-list.vue
index f4956ef..59241e3 100644
--- a/bundle_b/pages/local_shop/components/shop-list.vue
+++ b/bundle_b/pages/local_shop/components/shop-list.vue
@@ -63,12 +63,12 @@
}
},
created() {
- uni.$on("refreshorder", () => {
+ uni.$on("refresh_local_shop_list", () => {
this.refresh()
})
},
destroyed() {
- uni.$off("refreshorder")
+ uni.$off("refresh_local_shop_list")
},
methods: {
refresh() {
@@ -130,9 +130,7 @@
});
}
}
-
});
-
}
}
};
diff --git a/bundle_b/pages/local_shop/local_shop_add.vue b/bundle_b/pages/local_shop/local_shop_add.vue
index f727777..0b8a8d6 100644
--- a/bundle_b/pages/local_shop/local_shop_add.vue
+++ b/bundle_b/pages/local_shop/local_shop_add.vue
@@ -34,7 +34,7 @@
-
+
+ 添加规格(默认为单规格)
diff --git a/bundle_b/pages/local_shop/local_shop_edit.vue b/bundle_b/pages/local_shop/local_shop_edit.vue
index bbfbc1d..77c7743 100644
--- a/bundle_b/pages/local_shop/local_shop_edit.vue
+++ b/bundle_b/pages/local_shop/local_shop_edit.vue
@@ -33,7 +33,7 @@
-
+
+ 添加规格(默认为单规格)
@@ -354,6 +354,9 @@
});
}
},
+ onUnload() {
+ uni.$emit('refresh_local_shop_list', true)
+ },
computed: {
btnText() {
if (this.state == 1) {