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 |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/public/html/compareprice.html b/public/html/compareprice.html
index f32a983..0c4c5e1 100644
--- a/public/html/compareprice.html
+++ b/public/html/compareprice.html
@@ -369,7 +369,7 @@
     })();
     function scanCode(str)
     {
-        alert(str);
+        app.coptest(str);
     }
     Vue.use(VueLazyload, {
         preLoad: 1.3,//
@@ -377,7 +377,7 @@
         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',
@@ -392,9 +392,13 @@
             {
                 this.txtareatxt='';
             },
-            coptest(str)
+            copytxt(str)
             {
-                alert(str);
+                alert(str.data);
+                if(str&&str.data&&str.data.length>0)
+                {
+                    this.txtareatxt=str.data;
+                }
             },
             fromcopy:function()
             {
@@ -403,9 +407,6 @@
                         action: 'copy'
                     }
                 })
-                /* navigator.clipboard.readText().then(function(clipText){
-                alert(clipText);
-               }) */
             },
             getCmsUrl:function(){
                 var _this = this;

--
Gitblit v1.9.3