Sfoglia il codice sorgente

dev-修复
1、兼职招聘和详情-底部按钮的控制,百度小程序里隐藏掉

bruce 5 anni fa
parent
commit
e0c0928b66
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      pages/job/index.vue

+ 6 - 1
pages/job/index.vue

@@ -180,7 +180,7 @@
           </nuxt-link>
         </van-list>
       </van-pull-refresh>
-      <a v-if="!deviceType.app && mobile" :class="{'downapp':isShowDownLoad}" :href="downloadhref">下载APP</a>
+      <a v-if="!deviceType.app && mobile && !isBaiduxapp" :class="{'downapp':isShowDownLoad}" :href="downloadhref">下载APP</a>
     </div>
   </div>
 </template>
@@ -214,6 +214,7 @@
         downloadhref: "",
         type: "",
         isShowDownLoad: false,
+        isBaiduxapp: false
       };
     },
     head() {
@@ -336,6 +337,10 @@
         this.isShowDownLoad = true;
         console.log("this.isShowDownload=", this.isShowDownLoad);
       }, 500)
+
+      let ua = navigator.userAgent;
+
+      this.isBaiduxapp = navigator.userAgent.indexOf('swan/') > -1;
     },
     methods: {
       //移动端选择器