From 425533485cbe2b975a0f9d850942a0f1b10e2379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Sun, 2 Apr 2023 16:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/demand/demand.vue | 11 +++++++++-- src/pages/service/other/business.vue | 19 ++++++++++++------- src/pages/service/other/project.vue | 12 +++++++++++- 3 files changed, 32 insertions(+), 10 deletions(-) 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 @@