From 3376eeddad73eb7d728e3eadf528aed2d37cfac1 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期四, 13 七月 2023 15:21:18 +0800 Subject: [PATCH] no message --- public/html/compareprice.html | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/public/html/compareprice.html b/public/html/compareprice.html index 2df1bbb..31db963 100644 --- a/public/html/compareprice.html +++ b/public/html/compareprice.html @@ -371,6 +371,10 @@ { 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', @@ -388,13 +392,42 @@ txtplaceholder:'1銆佹敮鎸佹窐瀹濄�佸ぉ鐚�佷含涓溿�佹姈闊炽�佹嫾澶氬绛夊瀹剁數鍟� \r\n 2銆佽绮樿创鎮ㄩ渶瑕佽浆鎹㈢殑鍒嗕韩鏂囨/閾炬帴鍜屽彛浠�/鍟嗗搧閾炬帴;涓嶆敮鎸佸埜閾炬帴' }, methods:{ + likeDataGet:function(postData) + { + $.ajax({ + headers:{ + "token":this.getUrlPar("token") + }, + + url:_this.posturl+'/api/activity/cmsGet', + 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: 'getlike' + } + }) + }, clear:function() { this.txtareatxt=''; }, copytxt(str) { - alert(str.data); if(str&&str.data&&str.data.length>0) { this.txtareatxt=str.data; -- Gitblit v1.9.3