sousuo11
This commit is contained in:
parent
dc93b9d2e4
commit
22a99e5cc2
@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="user" v-if="no==2">
|
||||
<div class="user1" v-for="(i,j) in list" :key="j">
|
||||
<indedfinduser :answer="i.answer" :article="i.article" :attention="i.attention" :username="i.nickname" :pic="i.avatar"></indedfinduser>
|
||||
<indedfinduser :answer="i.answer" :article="i.article" :attention="i.attention" :username="i.topic_name" :pic="'http://lawpro.earnest.pro/'+i.img"></indedfinduser>
|
||||
</div>
|
||||
|
||||
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{text}}</div>
|
||||
@ -238,12 +238,12 @@ methods:{
|
||||
serch(e){
|
||||
let t=this;
|
||||
window.console.log(e)
|
||||
t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:t.$route.query.word,type:this.no}).then((res)=>{
|
||||
t.axios.post("http://lawpro.earnest.pro/api/login_main/indexsearch", {where:e,type:this.no}).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
|
||||
}
|
||||
// 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
|
||||
if (res.data.code == 200) {
|
||||
t.list = res.data.data;
|
||||
|
Loading…
Reference in New Issue
Block a user