소스 검색

fix: 三级页客户端弹窗问题调试1

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 3 달 전
부모
커밋
c85624917f

+ 0 - 7
apps/mobile/src/main.js

@@ -51,13 +51,6 @@ Vue.prototype.$getBase64Image = (img) => {
   return dataURL
 }
 
-try {
-  window.JyObj.openExternalLink = function () {}
-}
-catch (error) {
-
-}
-
 // Sentry 异常监控
 initSentry(Vue)
 

+ 14 - 14
apps/mobile/src/views/article/components/OriginLink.vue

@@ -96,19 +96,19 @@ export default {
     this.eventBusListening()
   },
   methods: {
-    eventBusListening() {
-      EventBus.$on('originLink:view', () => {
-        this.viewOriginLink()
-      })
-      // 及时解绑 EventBus 的事件监听
-      this.$once('hook:beforeDestroy', () => {
-        EventBus.$off('originLink:view')
-      })
-    },
+    // eventBusListening() {
+    //   EventBus.$on('originLink:view', () => {
+    //     this.viewOriginLink()
+    //   })
+    //   // 及时解绑 EventBus 的事件监听
+    //   this.$once('hook:beforeDestroy', () => {
+    //     EventBus.$off('originLink:view')
+    //   })
+    // },
     async viewOriginLink() {
       if (this.url) {
         // 如果已经获取过链接,则可以直接打开
-        return this.openUrl()
+        // return this.openUrl()
       }
       const { inH5 } = this.$envs
       if (inH5) {
@@ -243,7 +243,7 @@ export default {
         return
       const { inApp } = this.$envs
       if (inApp) {
-        appCallOpenWindow(this.url, '查看原文')
+        // appCallOpenWindow(this.url, '查看原文')
       }
       else {
         this.clickA(this.url)
@@ -283,9 +283,9 @@ export default {
         props: {
           name: '标讯详情页-查看原文链接'
         },
-        next: () => {
-          this.viewOriginLink()
-        }
+        // next: () => {
+        //   this.viewOriginLink()
+        // }
       }
     }
   }

+ 0 - 1
apps/mobile/src/views/create-order/components/creditreport/ProductionCard.vue

@@ -143,7 +143,6 @@ export default {
     if (buyer) {
       this.info.buyer = buyer
     }
-    appCallOpenWindow('https://www.baidu.com', '测试链接')
   },
   mounted() {
     this.updatePayAmount()