Merge branch 'zhengjie' of pplokijuhyg/falvpingtai into master

This commit is contained in:
asd 2019-12-02 09:26:59 +08:00
commit c33a350780
2 changed files with 14 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<indexfindtab @changeno="getno"></indexfindtab> <indexfindtab @changeno="getno"></indexfindtab>
</div> </div>
<div class="all" v-if="no==0"> <div class="all" v-if="no==0">
<div class="all1" v-for="(i,j) in list" :key="j"> <div class="all1" v-for="(i,j) in list" :key="j" @click="todetail(i.id,i.type)">
<indexfindall :title="i.title" :num="i.comment" :right="i.avatar" :content="i.text"></indexfindall> <indexfindall :title="i.title" :num="i.comment" :right="i.avatar" :content="i.text"></indexfindall>
</div> </div>
<!-- <div class="all1"> <!-- <div class="all1">
@ -90,6 +90,18 @@ methods:{
getno(e){ getno(e){
window.console.log(e) window.console.log(e)
this.no=e this.no=e
},
todetail(e, type) {
window.console.log(e);
if (type == 2) {
this.$router.push({
path: `/IndexArticleDetaill?id=` + e
});
} else {
this.$router.push({
path: `/articledetail?id=` + e
});
}
}, },
serch(e){ serch(e){
let t=this; let t=this;

View File

@ -64,6 +64,7 @@ export default {
off(){ off(){
this.ifshow=false this.ifshow=false
}, },
sub(){ sub(){
let t=this; let t=this;
this.axios.post("http://lawpro.earnest.pro/api/Main/login",{uname:t.username,password:t.pwd}).then((res)=>{ this.axios.post("http://lawpro.earnest.pro/api/Main/login",{uname:t.username,password:t.pwd}).then((res)=>{