优化服务详情页面
This commit is contained in:
parent
04896b5455
commit
0607292316
|
@ -80,6 +80,7 @@
|
||||||
import AppLayout from "@/components/layout/layout";
|
import AppLayout from "@/components/layout/layout";
|
||||||
import AppAppraiseSection from "@/components/appraise/section";
|
import AppAppraiseSection from "@/components/appraise/section";
|
||||||
import AppLoadMore from "@/components/widgets/loadmore";
|
import AppLoadMore from "@/components/widgets/loadmore";
|
||||||
|
import { mapGetters } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "service-detail",
|
name: "service-detail",
|
||||||
data() {
|
data() {
|
||||||
|
@ -110,6 +111,11 @@ export default {
|
||||||
AppAppraiseSection,
|
AppAppraiseSection,
|
||||||
AppLoadMore,
|
AppLoadMore,
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters({
|
||||||
|
isLogin: "user/isLogin",
|
||||||
|
}),
|
||||||
|
},
|
||||||
async onLoad(e) {
|
async onLoad(e) {
|
||||||
this.pageConfig = getApp().globalData.pageConfig;
|
this.pageConfig = getApp().globalData.pageConfig;
|
||||||
|
|
||||||
|
@ -168,7 +174,9 @@ export default {
|
||||||
* 初始化页面
|
* 初始化页面
|
||||||
*/
|
*/
|
||||||
initPage() {
|
initPage() {
|
||||||
this.$store.dispatch("cart/update");
|
if (this.isLogin) {
|
||||||
|
this.$store.dispatch("cart/update");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 分享
|
* 分享
|
||||||
|
|
Loading…
Reference in New Issue