搜索跳文章详情
This commit is contained in:
parent
46269e14ec
commit
bab4a163f0
@ -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">
|
||||||
@ -91,6 +91,18 @@ methods:{
|
|||||||
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;
|
||||||
window.console.log(e)
|
window.console.log(e)
|
||||||
|
@ -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)=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user