Commit 6d67d4e4 by qinjianhui

feat:问题修改

parent 8ac38a9f
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</template> </template>
<script> <script>
import { mapMutations, mapState } from 'vuex' import { mapMutations } from 'vuex'
import headerNavMobile from './headerNavMobile.vue' import headerNavMobile from './headerNavMobile.vue'
export default { export default {
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
} }
}, },
computed: { computed: {
// ...mapState(['userInfo']), // ...mapState(['shopifyObj']),
active() { active() {
return this.$route.path return this.$route.path
}, },
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
if(this.$route.query.shopKey){ if(this.$route.query.shopKey){
localStorage.setItem('shopifyObj', JSON.stringify(this.$route.query)) localStorage.setItem('shopifyObj', JSON.stringify(this.$route.query))
} }
if(this.userInfo){ if(this.userInfo && this.$route.query.shopKey){
this.$router.push('/contact') this.$router.push('/contact')
} }
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="login_bg"> <div class="login_bg">
<div class="contact-header"> <div class="contact-header">
<div class="header-image"> <div class="header-image">
<img src="../assets/logo.png" height="40px"/> <img src="../assets/logo.png" height="40px" />
</div> </div>
<div class="user-info"> <div class="user-info">
<!-- <div class="user-msg"> <!-- <div class="user-msg">
...@@ -17,28 +17,34 @@ ...@@ -17,28 +17,34 @@
<div class="login_content"> <div class="login_content">
<div class="no-authority"> <div class="no-authority">
<div <div
style=" style="
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 50px; font-size: 50px;
line-height: 100px; line-height: 100px;
font-family: '微软雅黑'; font-family: '微软雅黑';
" v-if="userInfo && userInfo.erpKey"> "
<a :href="`https://${userInfo && userInfo.erpKey}.jomalls.com`" target="_blank" style="text-decoration: none"> v-if="userInfo && userInfo.erpKey">
{{ `https://${userInfo && userInfo.erpKey}.jomalls.com` }}</a> <a
:href="`https://${userInfo && userInfo.erpKey}.jomalls.com`"
target="_blank"
style="text-decoration: none">
{{ `https://${userInfo && userInfo.erpKey}.jomalls.com` }}
</a>
</div> </div>
<h1 <h1
style=" style="
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 50px; font-size: 50px;
line-height: 100px; line-height: 100px;
font-family: '微软雅黑'; font-family: '微软雅黑';
" v-else> "
v-else>
您尚未开通erp权限,请联系您的商务经理 您尚未开通erp权限,请联系您的商务经理
</h1> </h1>
<h2 <h2
style=" style="
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 36px; font-size: 36px;
...@@ -48,7 +54,7 @@ ...@@ -48,7 +54,7 @@
联系电话:18710915638 联系电话:18710915638
</h2> </h2>
<h2 <h2
style=" style="
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 36px; font-size: 36px;
...@@ -58,7 +64,7 @@ ...@@ -58,7 +64,7 @@
邮箱:nina@jomalls.com 邮箱:nina@jomalls.com
</h2> </h2>
<el-button <el-button
style=" style="
text-align: center; text-align: center;
font-size: 30px; font-size: 30px;
width: 160px; width: 160px;
...@@ -67,8 +73,8 @@ ...@@ -67,8 +73,8 @@
margin-top: 30px; margin-top: 30px;
border-radius: 15px; border-radius: 15px;
" "
type="success" type="success"
@click="goBack"> @click="goBack">
返回首页 返回首页
</el-button> </el-button>
</div> </div>
...@@ -78,8 +84,8 @@ ...@@ -78,8 +84,8 @@
</template> </template>
<script> <script>
import {mapMutations, mapState} from 'vuex' import { mapMutations, mapState } from 'vuex'
import {post} from '../utils/axios' import { post } from '../utils/axios'
export default { export default {
name: 'contact', name: 'contact',
...@@ -93,22 +99,23 @@ export default { ...@@ -93,22 +99,23 @@ export default {
...mapState(['shopifyObj']), ...mapState(['shopifyObj']),
}, },
mounted() { mounted() {
if (this.userInfo&&this.shopifyObj) { if (this.userInfo && this.shopifyObj) {
this.getShopifyInfo() this.getShopifyInfo()
} }
}, },
methods: { methods: {
...mapMutations(['setUserInfo']), ...mapMutations(['setUserInfo']),
goBack() { goBack() {
console.log('111')
this.$router.push('/') this.$router.push('/')
}, },
getShopifyInfo() { getShopifyInfo() {
console.log(this.shopifyObj)
if (!this.shopifyObj.shopKey || !this.userInfo.erpKey) return
post('business/shop/bind', { post('business/shop/bind', {
shopKey: this.shopifyObj.shopKey, shopKey: this.shopifyObj.shopKey,
platform: this.shopifyObj.platform, platform: this.shopifyObj.platform,
companyCode: this.userInfo.erpKey companyCode: this.userInfo.erpKey,
}).then(res => { }).then((res) => {
console.log(res) console.log(res)
}) })
}, },
......
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