货运订单增加登录判断

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