增加登录判断
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 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() {},
|
||||
|
|
|
@ -9,12 +9,7 @@
|
|||
<text>品牌</text>
|
||||
</view>
|
||||
<view class="input-box">
|
||||
<input
|
||||
class="input"
|
||||
v-model="brand"
|
||||
placeholder="请输入贵公司品牌"
|
||||
placeholder-class="placeholder-style-3"
|
||||
/>
|
||||
<input class="input" v-model="brand" placeholder="请输入贵公司品牌" placeholder-class="placeholder-style-3" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="input-item">
|
||||
|
@ -60,6 +55,7 @@
|
|||
|
||||
<script>
|
||||
import AppLayout from "@/components/layout/layout";
|
||||
import { mapGetters } from "vuex";
|
||||
export default {
|
||||
name: "service-other-business",
|
||||
data() {
|
||||
|
@ -74,8 +70,17 @@ export default {
|
|||
components: {
|
||||
AppLayout,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
isLogin: "user/isLogin",
|
||||
}),
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
onShow() {
|
||||
if (!this.isLogin) {
|
||||
this.$store.commit("user/showLoginModal", true);
|
||||
}
|
||||
},
|
||||
onReady() {},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
<script>
|
||||
import AppLayout from "@/components/layout/layout";
|
||||
import WidgetCountModify from "@/components/widgets/count-modify";
|
||||
import { mapGetters } from "vuex";
|
||||
export default {
|
||||
name: "service-other-project",
|
||||
data() {
|
||||
|
@ -115,8 +116,17 @@ export default {
|
|||
AppLayout,
|
||||
WidgetCountModify,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
isLogin: "user/isLogin",
|
||||
}),
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
onShow() {
|
||||
if (!this.isLogin) {
|
||||
this.$store.commit("user/showLoginModal", true);
|
||||
}
|
||||
},
|
||||
onReady() {},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
|
|
Loading…
Reference in New Issue