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

---
 public/html/compareprice.html |   97 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 74 insertions(+), 23 deletions(-)

diff --git a/public/html/compareprice.html b/public/html/compareprice.html
index 17ea086..ed7ed01 100644
--- a/public/html/compareprice.html
+++ b/public/html/compareprice.html
@@ -28,7 +28,6 @@
         {
             width: 95%;
             margin: 0 auto;
-            min-height: 23rem;
             margin-top: 5.3rem;
             position:relative;
         }
@@ -38,7 +37,7 @@
             background: #fff;
             border-radius: .2rem;
             margin-bottom: 0.2rem;
-            padding-top:.4rem;
+            padding-top:.2rem;
         }
         .mid-content-list
         {
@@ -55,18 +54,30 @@
             margin-bottom: 0.2rem;
             font-weight: 500;
             color: #958d8d;
+            text-align: right;
+            padding-right: 0.1rem;
+        }
+        .copytxt
+        {
+            font-size: 13px;
+        position: absolute;
+        bottom: 0.1rem;
+        right: 0.1rem;
+        color: #958d8d;
         }
         .content-txtarea
         {
             width: 88%;
             margin: 0 auto;
             height: 2.2rem;
+            position: relative;
         }
         .txtarea{
             width: 100%;
             height: 99%;
             border: 0px;
             background: #f5f5f9;
+            resize:none;
         }
         .mid-button-content
         {
@@ -92,14 +103,15 @@
             width: 100%;
             text-align: center;
             margin: 0 auto;
-            line-height: 6.2rem;
+            line-height: 1.2rem;
             color: #a69b9b;
             font-size: 14px;
         }
 
         .ulist > a {
-        display: block;
-        text-decoration: none;
+            display: block;
+            text-decoration: none;
+            margin-bottom: 0.15rem;
         }
 
         .ulist {
@@ -289,30 +301,27 @@
 
 <body style="background: #f5f5f9;">
     <div id="comprice">
+        <image class="top-content" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/compareprice_topimg.png"></image>
         <div class="main-content">
-            <image class="top-content" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/compareprice_topimg.png"></image>
+          
             <div class="mid-content">
                 <div class="mid-content-con">
-                    <div class="content-tip">
-                        鏀寔娣樺疂銆佸ぉ鐚�佷含涓溿�佹姈闊炽�佹嫾澶氬绛夊瀹剁數鍟�
+                    <div class="content-tip" v-on:click="clear()">
+                        娓呯┖
                     </div>
                     <div class="content-txtarea">
-                        <textarea class="txtarea"></textarea>
+                        <textarea class="txtarea" v-model="txtareatxt" :placeholder='txtplaceholder'></textarea>
+                        <span class="copytxt" v-on:click="fromcopy()">绮樿创</span>
                     </div>
                     <div class="mid-button-content">
                         <div class="mid-button-content-img">
                             <image style="width: 100%;" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/compareprice_search.png"></image>
                         </div>
-                        <!-- <div class="mid-button-content-img">
-                            <image style="width: 100%;" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/compareprice_clear.png"></image>
-                        </div> -->
                     </div>
                 </div>
                 <div class="cont-title">
                     鏌ヨ鎺掕
                 </div>
-                
-                    
                     <div v-if="goodsItem.length==0" class="mid-content-none">
                         鏆傛棤鏁版嵁~
                     </div>
@@ -357,38 +366,78 @@
         size=size<=0?400:size;
         document.documentElement.style.fontSize = (size > 750 ? 750 : size) / 7.5 + 'px';
     })();
+    function scanCode(str)
+    {
+        app.copytxt(str);
+    }
+    function likeDataGet(data)
+    {
+        app.likeDataGet(data);
+    }
     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:'',
+          txtplaceholder:'1銆佹敮鎸佹窐瀹濄�佸ぉ鐚�佷含涓溿�佹姈闊炽�佹嫾澶氬绛夊瀹剁數鍟� \r\n 2銆佽绮樿创鎮ㄩ渶瑕佽浆鎹㈢殑鍒嗕韩鏂囨/閾炬帴鍜屽彛浠�/鍟嗗搧閾炬帴;涓嶆敮鎸佸埜閾炬帴'
         },
         methods:{
-            getCmsUrl:function(){
-                var _this = this;
-                _this.loading=true;
+            likeDataGet:function(postData)
+            {
                 $.ajax({
                     headers:{
                         "token":this.getUrlPar("token")
                     },
                   
-                    url:_this.posturl+'/api/activity/cmsGet',
+                    url:_this.posturl+'/api/taoke/get_goods_things',
                     type:"post",
                     dataType:"json",
                     async: false,
                     data:{
-                       
+                        deviceType:postData.postData,
+                        deviceValue:postData.deviceValue,
+                        pageId:1,
+                        pageSize:10,
+                        type:1
                     }
                 }).done(function(res){
-                                               
+                    console.log(res);                   
+                })
+            },
+            getLikeGoods:function()
+            {
+                uni.postMessage({
+                    data: {
+                        action: 'copy'
+                    }
+                })
+            },
+            clear:function()
+            {
+                this.txtareatxt='';
+            },
+            copytxt(str)
+            {
+                if(str&&str.data&&str.data.length>0)
+                {
+                    this.txtareatxt=str.data;
+                }
+            },
+            fromcopy:function()
+            {
+                uni.postMessage({
+                    data: {
+                        action: 'copy'
+                    }
                 })
             },
             getUrlPar:function(name)
@@ -422,7 +471,9 @@
             },
         },
         mounted:function(){
-            this.getGoodsList();
+            document.addEventListener('UniAppJSBridgeReady', function() {
+                this.getLikeGoods();
+            });
         }
     })
 </script>
\ No newline at end of file

--
Gitblit v1.9.3