增加登录判断
This commit is contained in:
parent
0802d2d920
commit
425533485c
|
@ -205,7 +205,7 @@ import AppLayout from "@/components/layout/layout";
|
||||||
import WidgetTips from "@/components/widgets/tips";
|
import WidgetTips from "@/components/widgets/tips";
|
||||||
import WidgetModal from "@/components/widgets/modal";
|
import WidgetModal from "@/components/widgets/modal";
|
||||||
import ServiceInsurance from "@/components/service/insurance";
|
import ServiceInsurance from "@/components/service/insurance";
|
||||||
import { mapState } from "vuex";
|
import { mapGetters, mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "demand",
|
name: "demand",
|
||||||
data() {
|
data() {
|
||||||
|
@ -242,6 +242,9 @@ export default {
|
||||||
...mapState({
|
...mapState({
|
||||||
insurancePrice: (state) => state.service.insurancePrice,
|
insurancePrice: (state) => state.service.insurancePrice,
|
||||||
}),
|
}),
|
||||||
|
...mapGetters({
|
||||||
|
isLogin: "user/isLogin",
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.pageConfig = getApp().globalData.pageConfig;
|
this.pageConfig = getApp().globalData.pageConfig;
|
||||||
|
@ -267,7 +270,11 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {
|
||||||
|
if (!this.isLogin) {
|
||||||
|
this.$store.commit("user/showLoginModal", true);
|
||||||
|
}
|
||||||
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
|
|
|
@ -9,12 +9,7 @@
|
||||||
<text>品牌</text>
|
<text>品牌</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-box">
|
<view class="input-box">
|
||||||
<input
|
<input class="input" v-model="brand" placeholder="请输入贵公司品牌" placeholder-class="placeholder-style-3" />
|
||||||
class="input"
|
|
||||||
v-model="brand"
|
|
||||||
placeholder="请输入贵公司品牌"
|
|
||||||
placeholder-class="placeholder-style-3"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="input-item">
|
<view class="input-item">
|
||||||
|
@ -60,6 +55,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AppLayout from "@/components/layout/layout";
|
import AppLayout from "@/components/layout/layout";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "service-other-business",
|
name: "service-other-business",
|
||||||
data() {
|
data() {
|
||||||
|
@ -74,8 +70,17 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
AppLayout,
|
AppLayout,
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({
|
||||||
|
isLogin: "user/isLogin",
|
||||||
|
}),
|
||||||
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
onShow() {},
|
onShow() {
|
||||||
|
if (!this.isLogin) {
|
||||||
|
this.$store.commit("user/showLoginModal", true);
|
||||||
|
}
|
||||||
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
<script>
|
<script>
|
||||||
import AppLayout from "@/components/layout/layout";
|
import AppLayout from "@/components/layout/layout";
|
||||||
import WidgetCountModify from "@/components/widgets/count-modify";
|
import WidgetCountModify from "@/components/widgets/count-modify";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "service-other-project",
|
name: "service-other-project",
|
||||||
data() {
|
data() {
|
||||||
|
@ -115,8 +116,17 @@ export default {
|
||||||
AppLayout,
|
AppLayout,
|
||||||
WidgetCountModify,
|
WidgetCountModify,
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({
|
||||||
|
isLogin: "user/isLogin",
|
||||||
|
}),
|
||||||
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
onShow() {},
|
onShow() {
|
||||||
|
if (!this.isLogin) {
|
||||||
|
this.$store.commit("user/showLoginModal", true);
|
||||||
|
}
|
||||||
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
|
|
Loading…
Reference in New Issue