From 5b3fd86f384d22466acd8286505fdcd237b92a80 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 13 七月 2023 15:10:56 +0800 Subject: [PATCH] no message --- public/html/compareprice.html | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/public/html/compareprice.html b/public/html/compareprice.html index fdb1a50..0c4c5e1 100644 --- a/public/html/compareprice.html +++ b/public/html/compareprice.html @@ -78,6 +78,7 @@ height: 99%; border: 0px; background: #f5f5f9; + resize:none; } .mid-button-content { @@ -366,17 +367,21 @@ size=size<=0?400:size; document.documentElement.style.fontSize = (size > 750 ? 750 : size) / 7.5 + 'px'; })(); + function scanCode(str) + { + app.coptest(str); + } Vue.use(VueLazyload, { preLoad: 1.3,// error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png', loading: 'https://sr.ffquan.cn/cms_pic/20200612/brhjkf76vrkcrfpi79eg0.png', attempt: 1 }) - new Vue({ + var app= new Vue({ el: '#comprice', data:{ //posturl:'http://dfg.shop.com', - posturl:'http://appapitest.ushopvip.com', + posturl:'https://appapitest.ushopvip.com', //posturl:'http://dfgapp.ushopvip.com', goodsItem:[], txtareatxt:'', @@ -387,11 +392,21 @@ { this.txtareatxt=''; }, + copytxt(str) + { + alert(str.data); + if(str&&str.data&&str.data.length>0) + { + this.txtareatxt=str.data; + } + }, fromcopy:function() { - navigator.clipboard.readText().then(function(clipText){ - alert(clipText); - }) + uni.postMessage({ + data: { + action: 'copy' + } + }) }, getCmsUrl:function(){ var _this = this; -- Gitblit v1.9.3