diff --git a/pages/store/home/index.vue b/pages/store/home/index.vue index 3fcae29..4debee5 100644 --- a/pages/store/home/index.vue +++ b/pages/store/home/index.vue @@ -567,10 +567,6 @@ }], // 底部菜单 tabs3: [{ - icon: 'icon-yizhan_o', - name: '云商品', - value: 7, - }, { icon: 'icon-gouwu_o', name: '商品', value: 3, @@ -677,12 +673,26 @@ } } // #endif - this.getStore(); this.diyData(); shareScence(this.currSpid, this.isLogin); this.initHeight(); + + // 判断是否有云商品,如果没有 就不展示这个tab + getStoreCloudGoods(this.id, { + page: 1, + limit: 1 + }).then(res => { + const data = res.data.list; + if (data && data.length > 0) { + this.tabs3.unshift({ + icon: 'icon-yizhan_o', + name: '云商品', + value: 7, + }) + } + }) }, /**