Kaynağa Gözat

修改移动端卖家中心,店铺按钮展示的问题

shenjj 7 yıl önce
ebeveyn
işleme
8783e97c18
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      pages/mobile/user/index.vue

+ 5 - 5
pages/mobile/user/index.vue

@@ -444,9 +444,8 @@
               this.EnterprisePage = res.data.totalPages
             })
           } else if (val === 'mystore') {
-            if (this.$store.state.option.storeStatus.data.uuid) {
-              this.$router.push(`/mobile/shop/${this.shopuuid.uuid}`)
-            }
+            // alert(1)
+            this.$router.push(`/mobile/shop/${this.shopuuid.uuid}`)
           }
         }
       }
@@ -472,6 +471,7 @@
               this.reloadData()
             }
           })
+          this.$store.dispatch('loadStoreStatus', { op: 'check' })
         })
       },
       setShowEnterpriseToggle (flag, e) {
@@ -848,8 +848,8 @@
       // 是否展示空数据
       StateNone() {
         if (this.activeType === 'provider') {
-          return this.GetEnterpriseListData.length === 0
-        } else if (this.activeType === 'oppor') {
+          return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
+        } else if (this.activeType === 'oppor' || this.activeType === 'mystore') {
           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)