From 2a8f72da2740978c9a96c0e9fa27186cd2cfe8cb Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 13 七月 2023 15:04:17 +0800 Subject: [PATCH] no message --- public/html/compareprice.html | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/public/html/compareprice.html b/public/html/compareprice.html index ae8e2a7..94858f3 100644 --- a/public/html/compareprice.html +++ b/public/html/compareprice.html @@ -367,6 +367,10 @@ size=size<=0?400:size; document.documentElement.style.fontSize = (size > 750 ? 750 : size) / 7.5 + 'px'; })(); + function scanCode(str) + { + coptest(str); + } Vue.use(VueLazyload, { preLoad: 1.3,// error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png', @@ -388,12 +392,20 @@ { this.txtareatxt=''; }, + coptest(str) + { + alert(str); + }, fromcopy:function() { - alert(navigator.platform); - navigator.clipboard.readText().then(function(clipText){ + uni.postMessage({ + data: { + action: 'copy' + } + }) + /* navigator.clipboard.readText().then(function(clipText){ alert(clipText); - }) + }) */ }, getCmsUrl:function(){ var _this = this; -- Gitblit v1.9.3