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