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

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

View File

@ -2,15 +2,19 @@
<div class="box"> <div class="box">
<heads></heads> <heads></heads>
<div class="list"> <div class="list">
<div v-for="(item,index) in list" :key="index" @click="todetail(item.id)">
<list <list
v-for="(item,index) in list"
:key="index"
:title="item.title" :title="item.title"
:id="item.id" :id="item.id"
:num="item.comment" :num="item.comment"
:img="item.img" :img="item.img"
:text="item.text" :text="item.text"
></list> ></list>
</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>
<!-- <list></list> <!-- <list></list>
<list></list>--> <list></list>-->
@ -63,6 +67,12 @@ export default {
} }
}) })
},
todetail(e){
window.console.log(e)
this.$router.push({
path: `/IndexArticleDetaill?id=`+e
});
} }
}, },
components: { components: {