Commit 86f62861 by qinjianhui

fix: 问题修改

parent 4adac5de
<template> <template>
<div class="header" :class="{ 'no-shadow': !shadow }" ref="header"> <div class="header" :class="{ 'no-shadow': !shadow }" ref="header">
<headerNavMobile <headerNavMobile v-if="$isMobile" :userInfo="userInfo"></headerNavMobile>
v-if="$isMobile"
:userInfo="userInfo"></headerNavMobile>
<div class="container" v-else> <div class="container" v-else>
<div class="logo"> <div class="logo">
<span class="logo_text"> <span class="logo_text">
...@@ -286,8 +284,6 @@ export default { ...@@ -286,8 +284,6 @@ export default {
if (this.userInfo && this.$route.query.shopKey) { if (this.userInfo && this.$route.query.shopKey) {
this.$router.push('/contact') this.$router.push('/contact')
} }
},
mounted() {
this.scrollParent().addEventListener('scroll', this.onScroll) this.scrollParent().addEventListener('scroll', this.onScroll)
}, },
beforeDestroy() { beforeDestroy() {
...@@ -314,6 +310,7 @@ export default { ...@@ -314,6 +310,7 @@ export default {
}) })
}, },
login() { login() {
console.log(this.$route.query)
if (this.$route.query && this.$route.query.shopKey) { if (this.$route.query && this.$route.query.shopKey) {
this.setShopKey(this.$route.query.shopKey) this.setShopKey(this.$route.query.shopKey)
} }
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
} }
}, },
computed: { computed: {
...mapState(['shopifyObj']), // ...mapState(['shopifyObj']),
}, },
mounted() { mounted() {
console.log(this.shopifyObj); console.log(this.shopifyObj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment