|
|
@@ -44,32 +44,32 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="link-list">
|
|
|
- <li>
|
|
|
+ <li v-bind:class="{'widthActive' : isShowStoreApply}">
|
|
|
<nuxt-link to="/mobile/supplier">
|
|
|
<img src="/images/mobile/@2x/home/supplier.png" alt="">
|
|
|
<span>供应商</span>
|
|
|
</nuxt-link>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li v-bind:class="{'widthActive' : isShowStoreApply}">
|
|
|
<a @click="goOpportunity">
|
|
|
<img src="/images/mobile/@2x/home/seek.png" alt="">
|
|
|
<span>公司商机</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li v-bind:class="{'widthActive' : isShowStoreApply}">
|
|
|
<nuxt-link to="/mobile/shop">
|
|
|
<img src="/images/mobile/@2x/home/store.png" alt="">
|
|
|
<span>店铺列表</span>
|
|
|
<!-- <i></i>-->
|
|
|
</nuxt-link>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li v-bind:class="{'widthActive' : isShowStoreApply}">
|
|
|
<nuxt-link to="/mobile/brand/brandCenter/A">
|
|
|
<img src="/images/mobile/@2x/home/brand.png" alt="">
|
|
|
<span>品牌墙</span>
|
|
|
</nuxt-link>
|
|
|
</li>
|
|
|
- <li>
|
|
|
+ <li v-bind:class="{'widthActive' : isShowStoreApply}" v-show="isShowStoreApply">
|
|
|
<a @click="goOpenStoreApply">
|
|
|
<img src="/images/mobile/@2x/home/store-into.png" alt="">
|
|
|
<span>商家入驻</span>
|
|
|
@@ -143,7 +143,8 @@
|
|
|
keyword: '',
|
|
|
associate: {
|
|
|
show: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ isShowStoreApply: false
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -314,9 +315,9 @@
|
|
|
if (this.user.data.enterprise.isVendor === 313) {
|
|
|
this.$http.get('/basic/vendor/transactionInfo').then(response => {
|
|
|
if (response.data.isOpenStore) {
|
|
|
- window.location.href = '/mobile/user/storeinfo'
|
|
|
+ // window.location.href = '/mobile/user/storeinfo'
|
|
|
} else {
|
|
|
- window.location.href = '/mobile/store'
|
|
|
+ this.setRemindText('您的申请已提交,请耐心等待工作人员审核(2-3个工作日)')
|
|
|
}
|
|
|
}, err => {
|
|
|
this.$message.error('获取开店信息失败')
|
|
|
@@ -331,10 +332,35 @@
|
|
|
} else {
|
|
|
this.login()
|
|
|
}
|
|
|
+ },
|
|
|
+ storeApply: function () {
|
|
|
+ if (this.user.logged) {
|
|
|
+ if (this.user.data.enterprise.uu) {
|
|
|
+ if (this.user.data.enterprise.isVendor === 313) {
|
|
|
+ this.$http.get('/basic/vendor/transactionInfo').then(response => {
|
|
|
+ if (response.data.isOpenStore) {
|
|
|
+ this.isShowStoreApply = false
|
|
|
+ } else {
|
|
|
+ this.isShowStoreApply = true
|
|
|
+ }
|
|
|
+ }, err => {
|
|
|
+ this.$message.error('获取开店信息失败')
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.isShowStoreApply = true
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.isShowStoreApply = true
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.isShowStoreApply = false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$nextTick(() => {
|
|
|
+ this.storeApply()
|
|
|
let ua = this.$store.state.option.userAgent.toLowerCase()
|
|
|
let info = localStorage.getItem('USOFTMALLWECHATINFO')
|
|
|
// 如果本地有缓存 则证明存在openid
|
|
|
@@ -480,7 +506,7 @@
|
|
|
li {
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
- width: 20%;
|
|
|
+ width: 25%;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
height: 1.56rem;
|
|
|
@@ -505,6 +531,9 @@
|
|
|
top: .2rem;
|
|
|
}
|
|
|
}
|
|
|
+ li.widthActive{
|
|
|
+ width: 20%;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|