货运订单增加登录判断
This commit is contained in:
parent
27ae4b177e
commit
cafaa46d72
|
@ -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() {},
|
||||
|
|
Loading…
Reference in New Issue