shish 4 сар өмнө
parent
commit
34cbce0b38

+ 18 - 6
hdApp/src/admin/home/workbench.vue

@@ -157,14 +157,24 @@
             </template>
             </template>
 
 
             <block v-else>
             <block v-else>
-              <view v-if="isWithinTwoDays" class="no-supplier-tip">附近暂无批发店</view>
+
+              <!-- 如果没有请求过接口,不确定这个花店,有没批发店,暂时不显示找批发店的入口,避免引起争议 -->
+              <block v-if="hasRequestApi == 0">
+                  <view  class="location-empty-box">
+                    <view class="location-empty-title">暂无批发店</view>
+                  </view>
+              </block>
               <block v-else>
               <block v-else>
-                <view  class="location-empty-box">
-                  <zui-svg-icon icon="general-location" :width="40" :height="40" color="#09C567"/>
-                  <view class="location-empty-title">开启定位,查看附近批发店</view>
-                  <button class="location-empty-btn" @click="searchGhs()">开启</button>
-                </view>
+                <view v-if="isWithinTwoDays" class="no-supplier-tip">附近暂无批发店</view>
+                <block v-else>
+                  <view  class="location-empty-box">
+                    <zui-svg-icon icon="general-location" :width="40" :height="40" color="#09C567"/>
+                    <view class="location-empty-title">开启定位,查看附近批发店</view>
+                    <button class="location-empty-btn" @click="searchGhs()">开启</button>
+                  </view>
+                </block>
               </block>
               </block>
+
             </block>
             </block>
   
   
             <view class="support-entry" @click="toPhone()">
             <view class="support-entry" @click="toPhone()">
@@ -249,6 +259,7 @@
         shopInfo:[],
         shopInfo:[],
         showBoughtTooltip: false, // 是否显示买花记录提示
         showBoughtTooltip: false, // 是否显示买花记录提示
         supplierSearchTime: 0, // 查找附近批发店时间
         supplierSearchTime: 0, // 查找附近批发店时间
+        hasRequestApi:0
       };
       };
     },
     },
     computed: {
     computed: {
@@ -532,6 +543,7 @@
         return ghsList().then(res => {
         return ghsList().then(res => {
           this.supplierList = res.data.list
           this.supplierList = res.data.list
           this.ad = res.data.ad ? res.data.ad : []
           this.ad = res.data.ad ? res.data.ad : []
+          this.hasRequestApi = 1
         })
         })
       },
       },
       toRemindCustom(){
       toRemindCustom(){