货运订单增加登录判断

This commit is contained in:
TOP糯米 2023-04-06 22:09:11 +08:00
parent 27ae4b177e
commit cafaa46d72
1 changed files with 11 additions and 1 deletions

View File

@ -185,6 +185,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-distribution", name: "service-other-distribution",
data() { data() {
@ -224,13 +225,22 @@ export default {
components: { components: {
AppLayout, AppLayout,
}, },
computed: {
...mapGetters({
isLogin: "user/isLogin",
}),
},
onLoad() { onLoad() {
this.pageConfig = getApp().globalData.pageConfig; this.pageConfig = getApp().globalData.pageConfig;
this.$models.service.distributionCar().then((list) => { this.$models.service.distributionCar().then((list) => {
this.carTypeList = list; this.carTypeList = list;
}); });
}, },
onShow() {}, onShow() {
if (!this.isLogin) {
this.$store.commit("user/showLoginModal", true);
}
},
onReady() {}, onReady() {},
onReachBottom() {}, onReachBottom() {},
onPullDownRefresh() {}, onPullDownRefresh() {},