diff --git a/src/pages/demand/demand.vue b/src/pages/demand/demand.vue
index 5fb601f..aa6676a 100644
--- a/src/pages/demand/demand.vue
+++ b/src/pages/demand/demand.vue
@@ -205,7 +205,7 @@ import AppLayout from "@/components/layout/layout";
import WidgetTips from "@/components/widgets/tips";
import WidgetModal from "@/components/widgets/modal";
import ServiceInsurance from "@/components/service/insurance";
-import { mapState } from "vuex";
+import { mapGetters, mapState } from "vuex";
export default {
name: "demand",
data() {
@@ -242,6 +242,9 @@ export default {
...mapState({
insurancePrice: (state) => state.service.insurancePrice,
}),
+ ...mapGetters({
+ isLogin: "user/isLogin",
+ }),
},
onLoad(e) {
this.pageConfig = getApp().globalData.pageConfig;
@@ -267,7 +270,11 @@ export default {
}
});
},
- onShow() {},
+ onShow() {
+ if (!this.isLogin) {
+ this.$store.commit("user/showLoginModal", true);
+ }
+ },
onReady() {},
onReachBottom() {},
onPullDownRefresh() {},
diff --git a/src/pages/service/other/business.vue b/src/pages/service/other/business.vue
index b97629c..c3585b7 100644
--- a/src/pages/service/other/business.vue
+++ b/src/pages/service/other/business.vue
@@ -9,12 +9,7 @@
品牌
-
+
@@ -60,6 +55,7 @@