diff --git a/src/App.vue b/src/App.vue index e603f62..f79ee19 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,7 @@ :imageUrl="detectResult.imageUrl" :trustworthiness="detectResult.trustworthiness" > - + @@ -39,6 +39,32 @@ export default { trustworthiness: 0.0, }, showDetectResult: false, + news: [ + { + title: "一到春天就皮肤过敏瘙痒怎么办?掌握这几招立马止痒", + image: + "https://pic4.zhimg.com/v2-df56391f8128d2c8921d0b5112a51fa3_1440w.jpg?source=172ae18b", + abstract: + "春天是万物复苏,花红柳绿的季节,同时也是过敏性皮肤疾病高发的季节。", + readMinutes: 5, + }, + { + title: "下雨天,皮肤就不用补水了吗?", + image: + "https://pic1.zhimg.com/v2-6bf489635811b1552320c23bd58392fd_1440w.jpg?source=172ae18b", + abstract: + "空气湿度大,皮肤已经可以吸收天然水分,不需要再额外补充了!真的是这样吗?", + readMinutes: 8, + }, + { + title: "脸上经常长痘痘是什么原因导致的?", + image: + "https://pic2.zhimg.com/80/v2-598043efaf9de7e18ddc63a6a6e42a08_720w.jpg?source=1940ef5c", + abstract: + "曾经的我,也是满脸痘痘的男人。现在的我,浑身肌肤嫩滑,吹弹可破。前方高能预警:文章很长,干货很干,全文没有多余的废话,请一定一定,耐心读完。", + readMinutes: 12, + }, + ], }; }, methods: { diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 1692be2..a4e7ab5 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -56,7 +56,7 @@ data-bs-toggle="modal" data-bs-target="#loginModal" > - Login + 登录 + 猜你想看 - - - + + + 想看更多? + @@ -17,6 +27,17 @@ export default { components: { NewsAlbumItem, }, + data() { + return { + NewsList: this.news, + }; + }, + props: { + news: { + type: Array, + default: () => null, + }, + }, }; diff --git a/src/components/NewsAlbumItem.vue b/src/components/NewsAlbumItem.vue index e118b25..244c497 100644 --- a/src/components/NewsAlbumItem.vue +++ b/src/components/NewsAlbumItem.vue @@ -1,34 +1,22 @@ - - Placeholder - - Thumbnail - + :src="NewsImage" + :alt="NewsTitle" + /> - My Title - - This is a wider card with supporting text below as a natural lead-in - to additional content. This content is a little bit longer. - + {{ NewsTitle }} + {{ NewsAbstract }} Read More... - 9 mins + {{ NewsMinutesToRead }} mins @@ -36,7 +24,24 @@
+ 想看更多? +
- This is a wider card with supporting text below as a natural lead-in - to additional content. This content is a little bit longer. -
{{ NewsAbstract }}