Procházet zdrojové kódy

测试使用测试地址1

JXDS18FUJT před 11 měsíci
rodič
revize
3497a60e13
2 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. 10 0
      src/utils/phone.ts
  2. 1 0
      src/views/yeNingKC/index.vue

+ 10 - 0
src/utils/phone.ts

@@ -116,6 +116,16 @@ class Phone {
             }
         }
     }
+    ladCallgo(){
+        if (this.isIos()) {
+            try {
+                //@ts-ignore
+                window.webkit.messageHandlers.ladCallgo.postMessage('n://wap/pay?')
+            } catch (error) {
+                console.log(error)
+            }
+        }
+    }
 
 }
 export default Phone

+ 1 - 0
src/views/yeNingKC/index.vue

@@ -95,6 +95,7 @@ window.iosOrder = (goodsId: string, userInfoStr: string) => {
   //open-api/wxjs/prepareOrder
   // alert('调用了iosOrder')
 };
+myPhone.ladCallgo()
 </script>
 
 <style scoped></style>