From 2a8185f2403600e558ce510c8759abc9cf865551 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期四, 13 七月 2023 15:09:28 +0800
Subject: [PATCH] no message

---
 public/html/compareprice.html |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/public/html/compareprice.html b/public/html/compareprice.html
index ac5bd25..5dc53bc 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,8 +392,12 @@
             {
                 this.txtareatxt='';
             },
+            coptest(str)
+            {
+                alert(str.data);
+            },
             fromcopy:function()
-            {           
+            {
                 uni.postMessage({
                     data: {
                         action: 'copy'

--
Gitblit v1.9.3