فهرست منبع

[edit][移动端跳转原始网页]

zhangwei 2 سال پیش
والد
کامیت
2a8ab4d06e
1فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 3
      pages/toolbox/index.vue

+ 6 - 3
pages/toolbox/index.vue

@@ -19,7 +19,7 @@
         </div>
 
         <!-- 移动端 -->
-        <div v-if="device == 'ios' || device == '安卓'" class="mobile">
+        <!-- <div v-if="device == 'ios' || device == '安卓'" class="mobile">
             <div class="mobile-content">
                 <img :src="detail.postBizData.linkImagePath" alt="">
                 <div class="title">Open link on PC to use Subway Surfers</div>
@@ -32,7 +32,7 @@
                     Copy Link
                 </div>
             </div>
-        </div>
+        </div> -->
     </div>
 </template>
 <script>
@@ -133,8 +133,11 @@ export default {
     mounted() {
         this.copy_link = window.location.href
         this.device = getBrowserType()
-        this.getConfig()
         console.log('device', this.device)
+        if (this.device == 'ios' || this.device == '安卓') {
+            return window.location = this.detail.postBizData.convertUrl
+        }
+        this.getConfig()
         if (this.device == 'chrome') {
             this.setCookie()
         }