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