优化下单页面
This commit is contained in:
parent
3d1729dad0
commit
9f75725b3d
|
@ -70,7 +70,7 @@ import AppLayout from "@/components/layout/layout";
|
||||||
import ServicePreviewItem from "@/components/service/preview-item";
|
import ServicePreviewItem from "@/components/service/preview-item";
|
||||||
import WidgetTips from "@/components/widgets/tips";
|
import WidgetTips from "@/components/widgets/tips";
|
||||||
import ServiceInsurance from "@/components/service/insurance";
|
import ServiceInsurance from "@/components/service/insurance";
|
||||||
import { mapState } from "vuex";
|
import { mapGetters, mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "order-create",
|
name: "order-create",
|
||||||
data() {
|
data() {
|
||||||
|
@ -98,8 +98,12 @@ export default {
|
||||||
...mapState({
|
...mapState({
|
||||||
insurancePrice: (state) => state.service.insurancePrice,
|
insurancePrice: (state) => state.service.insurancePrice,
|
||||||
}),
|
}),
|
||||||
|
...mapGetters({
|
||||||
|
isLogin: "user/isLogin",
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
this.serviceList = [];
|
||||||
this.pageConfig = getApp().globalData.pageConfig;
|
this.pageConfig = getApp().globalData.pageConfig;
|
||||||
this.$store.dispatch("service/insurancePrice");
|
this.$store.dispatch("service/insurancePrice");
|
||||||
if (!e.orderData) {
|
if (!e.orderData) {
|
||||||
|
@ -126,7 +130,11 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {
|
||||||
|
if (!this.isLogin) {
|
||||||
|
this.$store.commit("user/showLoginModal", true);
|
||||||
|
}
|
||||||
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {},
|
onPullDownRefresh() {},
|
||||||
|
|
Loading…
Reference in New Issue