From 86bad54e901998c24810c9d1a799a6547cb182fe Mon Sep 17 00:00:00 2001 From: chenruiye <862859104@qq.com> Date: Wed, 28 May 2025 11:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B4=BB=E5=8A=A8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/eventDetails/js/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/view/molistar/modules/eventDetails/js/index.js b/view/molistar/modules/eventDetails/js/index.js index ecbd22e..d54507d 100644 --- a/view/molistar/modules/eventDetails/js/index.js +++ b/view/molistar/modules/eventDetails/js/index.js @@ -253,7 +253,14 @@ function genLink(){ hideLoading(layerIndex); if (res.code == 200) { let text = res.data; - copyText(text); + if (browser.ios) { + window.webkit.messageHandlers.showShareAction.postMessage(text); + } else if (browser.android) { + if (androidJsObj && typeof androidJsObj === 'object') { + window.androidJsObj.showShareAction(text); + } + } + // copyText(text); // if (navigator.clipboard) { // console.log('使用 navigator.clipboard API') // // 使用 navigator.clipboard API