Authored by Tao

upload news styles

@@ -3,8 +3,11 @@ @@ -3,8 +3,11 @@
3 <div class="news-list-title" v-if="isTitle">最新消息</div> 3 <div class="news-list-title" v-if="isTitle">最新消息</div>
4 <ul class="news-list-content"> 4 <ul class="news-list-content">
5 <li v-for="(item, key) in list" :key="key"> 5 <li v-for="(item, key) in list" :key="key">
6 - <div class="news-list-name">{{ item.content }}</div>  
7 - <div class="news-list-time">{{ item.createTime }}</div> 6 + <LayoutLink :href="item.action || ''" class="img-link">
  7 + <div class="news-list-name">{{ item.content }}</div>
  8 + <div class="news-list-time">{{ item.createTime }}</div>
  9 + </LayoutLink>
  10 +
8 </li> 11 </li>
9 </ul> 12 </ul>
10 </div> 13 </div>
@@ -32,7 +35,7 @@ export default { @@ -32,7 +35,7 @@ export default {
32 <style lang="scss" scoped> 35 <style lang="scss" scoped>
33 .news-list { 36 .news-list {
34 .news-list-title { 37 .news-list-title {
35 - margin-top: 80px; 38 + margin-top: 60px;
36 font-size: 40px; 39 font-size: 40px;
37 color: #000000; 40 color: #000000;
38 } 41 }
@@ -37,7 +37,10 @@ export default { @@ -37,7 +37,10 @@ export default {
37 .news-tab { 37 .news-tab {
38 width: 100%; 38 width: 100%;
39 overflow: hidden; 39 overflow: hidden;
40 - margin-top: 90px; 40 + margin-top: 60px;
  41 + background: #F2F2F2;
  42 + border-radius: 16px;
  43 + padding: 40px 0;
41 .tab-item { 44 .tab-item {
42 width: 33%; 45 width: 33%;
43 float: left; 46 float: left;
@@ -49,7 +49,7 @@ export default function() { @@ -49,7 +49,7 @@ export default function() {
49 // 页面跳转重置page页码 49 // 页面跳转重置page页码
50 isPage ? page = 1 : state.newsList.page + 1; 50 isPage ? page = 1 : state.newsList.page + 1;
51 const result = await this.$api.post('/api/ufo/home/newsList', { 51 const result = await this.$api.post('/api/ufo/home/newsList', {
52 - page, type, limit 52 + page, type, limit, uid: 500031928
53 }); 53 });
54 54
55 if (result.code === 200) { 55 if (result.code === 200) {
@@ -97,8 +97,10 @@ module.exports = { @@ -97,8 +97,10 @@ module.exports = {
97 '/api/ufo/home/newsList': { 97 '/api/ufo/home/newsList': {
98 ufo: true, 98 ufo: true,
99 api: 'ufo.users.listInboxs', 99 api: 'ufo.users.listInboxs',
100 - params: {},  
101 - auth: true, 100 + params: {
  101 + uid: {type: Number}
  102 + },
  103 + // auth: true,
102 }, 104 },
103 '/api/ufo/home/newsListTab': { 105 '/api/ufo/home/newsListTab': {
104 ufo: true, 106 ufo: true,