|
|
@@ -5,17 +5,12 @@
|
|
|
<div class="flex flex-center ml-10" style="flex: 5">
|
|
|
<div
|
|
|
class="flex flex-col flex-center border radius box-shadow mr-15 mt-15"
|
|
|
- v-for="item in 4"
|
|
|
+ v-for="item in data"
|
|
|
>
|
|
|
<div>
|
|
|
- <img
|
|
|
- src="../../../assets/img/code.png"
|
|
|
- style="width: 50px; height: 120px"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div class="bold padding">
|
|
|
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题
|
|
|
+ <img :src="item.thumb_url" style="width: 50px; height: 120px" />
|
|
|
</div>
|
|
|
+ <div class="bold padding">{{ item.author }}</div>
|
|
|
<div class="lines-2 lines-height-15 grey-9 padding">
|
|
|
文章内容文章内容文章内容文章内容文章内容文章内容
|
|
|
</div>
|
|
|
@@ -50,7 +45,7 @@ export default {
|
|
|
getList() {
|
|
|
this.$api.dash.mpList().then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- console.log(res)
|
|
|
+ this.data = res.data[0].content
|
|
|
} else {
|
|
|
console.log(res)
|
|
|
}
|