Authored by Tao

upload news styles

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