zhengjie #32

Manually merged
asd merged 2 commits from zhengjie into master 2019-11-29 03:20:13 +00:00
2 changed files with 20 additions and 9 deletions
Showing only changes of commit 9ba197e439 - Show all commits

View File

@ -9,7 +9,8 @@
</div>
</van-popup>
<div class="head">
<img class="logo" src alt srcset />
<img class="logo" src alt srcset />
<div class="search">
<img src alt />
<input type="text" placeholder="搜索" v-on:change="shuru" v-model="serch" />
@ -114,17 +115,17 @@ export default {
this.$router.push({
path: `/index`
});
break
case 1:
break;
case 1:
this.$router.push({
path: `/PersonalHomepage`
});
break
case 2:
break;
case 2:
this.$router.push({
path: `/login`
});
break
break;
}
}
}

View File

@ -2,15 +2,19 @@
<div class="box">
<heads></heads>
<div class="list">
<list
v-for="(item,index) in list"
:key="index"
<div v-for="(item,index) in list" :key="index" @click="todetail(item.id)">
<list
:title="item.title"
:id="item.id"
:num="item.comment"
:img="item.img"
:text="item.text"
></list>
</div>
<div style="width:100%;height:0.5rem;text-align:center;line-height:0.3rem">{{text}}</div>
<!-- <list></list>
<list></list>-->
@ -63,6 +67,12 @@ export default {
}
})
},
todetail(e){
window.console.log(e)
this.$router.push({
path: `/IndexArticleDetaill?id=`+e
});
}
},
components: {