|
|
@@ -25,9 +25,9 @@
|
|
|
<li :class="{active: activeType == 'store'}" @click="activeType = 'store'">店铺关注</li>
|
|
|
</ul>
|
|
|
<ul class="switch-list" v-if="userType !== 'buyer'">
|
|
|
- <li :class="{active: activeType == 'oppor'}" @click="activeType = 'oppor'">我的商机</li>
|
|
|
- <li :class="{active: activeType == 'provider'}" @click="activeType = 'provider'">产品管理</li>
|
|
|
- <li :class="{active: activeType == 'mystore'}" @click="activeType = 'mystore'">我的店铺</li>
|
|
|
+ <li :class="{active: activeType == 'oppor', noshop: !shopuuid}" @click="activeType = 'oppor'">我的商机</li>
|
|
|
+ <li :class="{active: activeType == 'provider', noshop: !shopuuid}" @click="activeType = 'provider'">产品管理</li>
|
|
|
+ <li :class="{active: activeType == 'mystore'}" @click="activeType = 'mystore'" v-if="shopuuid">我的店铺</li>
|
|
|
</ul>
|
|
|
<!-- 买家中心 我的求购 -->
|
|
|
<div v-if="activeType == 'seek' || activeType == 'oppor'">
|
|
|
@@ -417,10 +417,11 @@
|
|
|
this.GetEnterpriseList().then(res => {
|
|
|
this.GetEnterpriseListData = res.data.content
|
|
|
this.EnterprisePage = res.data.totalPages
|
|
|
- this.isGetResoure = true
|
|
|
})
|
|
|
} else if (val === 'mystore') {
|
|
|
- this.$router.push(`/mobile/shop/${this.$store.state.option.storeStatus.data.uuid}`)
|
|
|
+ if (this.$store.state.option.storeStatus.data.uuid) {
|
|
|
+ this.$router.push(`/mobile/shop/${this.shopuuid}`)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -798,11 +799,16 @@
|
|
|
},
|
|
|
// 是否展示空数据
|
|
|
StateNone() {
|
|
|
- if (this.activeType === 'provider' && this.isGetResoure) {
|
|
|
+ if (this.activeType === 'provider') {
|
|
|
return this.GetEnterpriseListData.length === 0
|
|
|
+ } else if (this.activeType === 'oppor') {
|
|
|
+ return false
|
|
|
} else {
|
|
|
return (this.activeType !== 'seek') && ((this.collectSave.totalElements === 0 && this.activeType === 'comp') || (this.focusPage.totalElements === 0 && this.activeType === 'store') || (this.collectSave.totalElements === 0 && this.focusPage.totalElements === 0) || this.GetEnterpriseListData.totalElements === 0)
|
|
|
}
|
|
|
+ },
|
|
|
+ shopuuid() {
|
|
|
+ return this.$store.state.option.storeStatus.data.uuid
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1036,6 +1042,9 @@
|
|
|
}
|
|
|
}
|
|
|
ul.switch-list {
|
|
|
+ .noshop {
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
li {
|
|
|
display: inline-block;
|
|
|
width: 2.5rem;
|