Merge branch 'zhengjie' of pplokijuhyg/falvpingtai into master
This commit is contained in:
commit
1ab16c6d92
@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="user" v-if="no==2">
|
<div class="user" v-if="no==2">
|
||||||
<div class="user1" v-for="(i,j) in list" :key="j">
|
<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>
|
||||||
|
|
||||||
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{text}}</div>
|
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{text}}</div>
|
||||||
@ -238,12 +238,12 @@ methods:{
|
|||||||
serch(e){
|
serch(e){
|
||||||
let t=this;
|
let t=this;
|
||||||
window.console.log(e)
|
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)
|
// window.console.log(res)
|
||||||
for(let i in res.data.data){
|
// for(let i in res.data.data){
|
||||||
res.data.data[i].avatar= res.data.data[i].avatar.substr(1)
|
// 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
|
// res.data.data[i].avatar= "http://lawpro.earnest.pro/"+res.data.data[i].avatar
|
||||||
}
|
// }
|
||||||
// t.list=res.data.data
|
// t.list=res.data.data
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
t.list = res.data.data;
|
t.list = res.data.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user