Authored by Tao

add channel

... ... @@ -16,6 +16,9 @@
<div class="body" ref="body">
<div class="channel-top"></div>
<div class="marginTop">
<div class="channel-html">
<img src="../../../statics/image/channel/server.png" alt="" />
</div>
<div v-for="(item, index) in channelList.list" :key="index" class="space-between">
<Swiper :list="item.data" v-if="item.template_name == 'threePicture'"/>
<Hot :list="item.data" v-if="item.template_name == 'image_list'"/>
... ... @@ -146,7 +149,7 @@ export default {
}
.marginTop {
margin-top: -150px;
margin-top: -260px;
}
.scroll-app {
... ... @@ -199,7 +202,14 @@ export default {
left: 0;
z-index: 999;
}
.marginTop {
// margin-top: 64px;
.channel-html {
padding: 0 80px;
margin-bottom: 20px;
img {
width: 100%;
display: block;
}
}
</style>
... ...
... ... @@ -52,8 +52,6 @@ export default function() {
async fetchChannelList({ commit }) {
const result = await this.$api.get('/api/ufo/channel/channelList', {
content_code: 'f788335b57b67c1711f255648c744dab',
// uid: '64668089',
uid: '500031170',
});
if (result.code === 200) {
commit(Types.FETCH_CHANNEL, { list: result.data });
... ...
... ... @@ -57,7 +57,7 @@ export default function() {
}
const result = await this.$api.post('/api/ufo/home/newsList', {
page, uid, type, limit
page, type, limit
});
if (result.code === 200) {
... ... @@ -71,8 +71,7 @@ export default function() {
}
},
async fetchNewsTabList({ commit }) {
let uid = '500031170';
const result = await this.$api.post('/api/ufo/home/newsListTab', { uid });
const result = await this.$api.post('/api/ufo/home/newsListTab', {});
if (result.code === 200) {
commit(Types.FETCH_NEWS_TAB_LIST, {list: result.data});
}
... ...
... ... @@ -90,22 +90,20 @@ module.exports = {
api: 'ufo.resource.get',
params: {
content_code: { type: String },
uid: { type: Number, require: true },
},
auth: true,
},
'/api/ufo/home/newsList': {
ufo: true,
api: 'ufo.users.listInboxs',
params: {
uid: { type: Number },
},
params: {},
auth: true,
},
'/api/ufo/home/newsListTab': {
ufo: true,
api: 'ufo.users.listInboxTypeInfo',
params: {
uid: { type: Number },
},
params: {},
auth: true,
},
'/api/ufo/coupon/list': {
ufo: true,
... ...