From 2ddcf19dadddbc05e4b96f50ad732b9f4b1bc288 Mon Sep 17 00:00:00 2001 From: asd Date: Thu, 28 Nov 2019 17:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/IndexFind.vue | 98 +++++++++++++++++--- src/components/indexfindall.vue | 151 ++++++++++++++++--------------- src/components/indexfindhead.vue | 17 +++- src/components/indexfinduser.vue | 36 +++++++- src/components/indexhead.vue | 31 ++++--- 5 files changed, 227 insertions(+), 106 deletions(-) diff --git a/src/IndexFind.vue b/src/IndexFind.vue index 0a9eaee..939690b 100644 --- a/src/IndexFind.vue +++ b/src/IndexFind.vue @@ -1,22 +1,22 @@ @@ -49,17 +53,83 @@ components:{ indexfindtab, indexfindall, indedfinduser +}, +mounted(){ + // http://lawpro.earnest.pro/uploads/20191121/145e1911017ac255f25d6eb760d0bb4c.jpg + var t=this; + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:t.$route.query.word,type:0}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].avatar= res.data.data[i].avatar.substr(1) + res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar + } + t.list=res.data.data + }) + + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:t.$route.query.word,type:5}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].avatar= res.data.data[i].avatar.substr(1) + res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar + } + t.list2=res.data.data + }) + + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:t.$route.query.word,type:2}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].img= res.data.data[i].img.substr(1) + res.data.data[i].img= "http://lawpro.earnest.pro/"+res.data.data[i].img + } + t.list3=res.data.data + }) + + }, methods:{ getno(e){ window.console.log(e) this.no=e + }, + serch(e){ + let t=this; + window.console.log(e) + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:0}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].avatar= res.data.data[i].avatar.substr(1) + res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar + } + t.list=res.data.data + }) + + + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:2}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].img= res.data.data[i].img.substr(1) + res.data.data[i].img= "http://lawpro.earnest.pro/"+res.data.data[i].img + } + t.list3=res.data.data + }) + t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:5}).then((res)=>{ + window.console.log(res) + for(let i in res.data.data){ + res.data.data[i].avatar= res.data.data[i].avatar.substr(1) + res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar + } + t.list2=res.data.data + }) } }, data(){ return { pics, - no:0 + no:0, + list:[], + list1:[], + list2:[], + list3:[] } } } diff --git a/src/components/indexfindall.vue b/src/components/indexfindall.vue index 2bc9709..77b75f9 100644 --- a/src/components/indexfindall.vue +++ b/src/components/indexfindall.vue @@ -1,102 +1,109 @@ \ No newline at end of file diff --git a/src/components/indexfindhead.vue b/src/components/indexfindhead.vue index c7baecb..3a5fa0b 100644 --- a/src/components/indexfindhead.vue +++ b/src/components/indexfindhead.vue @@ -12,7 +12,7 @@