Explorar el Código

修改首页

version2.0
chutingting hace 4 años
padre
commit
9ef30b4be9
Se han modificado 2 ficheros con 8 adiciones y 7 borrados
  1. +3
    -3
      src/page/cultivate/particulars.vue
  2. +5
    -4
      src/page/home/home.vue

+ 3
- 3
src/page/cultivate/particulars.vue Ver fichero

@@ -2,9 +2,9 @@
<div class="Box">
<textTitle :text="textTop" />
<div class="info">
<div class="info_img">
<el-card class="info_img">
<img :src="data.mainPicRealPath" alt="">
</div>
</el-card>
<div class="info_list">
<p>标题:<span>{{data.title}}</span></p>
<p>日期:<span>{{data.publishDate}}</span></p>
@@ -126,7 +126,7 @@ export default {
}
.info_list{
float: left;
margin-left: 30px;
margin-left: 40px;
p{
line-height: 40px;
color: #444;


+ 5
- 4
src/page/home/home.vue Ver fichero

@@ -162,13 +162,13 @@ export default {
})
},
/* 新闻列表 */
getNewsList() {
getData() {
let data = {
// type: 1,
pageNum: 1,
pageSize: 90
pageSize: 100
}
homeService.getNewsList(data).then(res => {
homeService.getData(data).then(res => {
res.list.forEach(ele => {
if (ele.type == 4) { // 生活服务
this.lifeList.push(ele)
@@ -203,7 +203,7 @@ export default {
},
created() {
this.getSlideList()
this.getNewsList()
this.getData()
}
};
</script>
@@ -236,6 +236,7 @@ export default {
line-height: 22px;
padding: 4px 0;
height: 22px;
white-space: nowrap;
a{
color: #333;
}


Cargando…
Cancelar
Guardar