...
|
...
|
@@ -54,12 +54,11 @@ export default function() { |
|
|
Vue.set(state.channelList, 'page', productlist.page);
|
|
|
},
|
|
|
[Types.FETCH_NEWSACTIVE](state, { list }) {
|
|
|
state.showMsg = false;
|
|
|
list && list.map((item) => {
|
|
|
if (item.id === 6 && item.unReadCount > 0) {
|
|
|
if (item.unReadCount > 0) {
|
|
|
state.showMsg = true;
|
|
|
} else {
|
|
|
state.showMsg = false;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
},
|
...
|
...
|
@@ -88,10 +87,10 @@ export default function() { |
|
|
}
|
|
|
},
|
|
|
async getAllInboxCatInfo({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/home/getAllInboxCatInfo', {});
|
|
|
const result = await this.$api.get('/api/ufo/home/listInboxTypeInfo', {});
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit(Types.FETCH_NEWSACTIVE, { list: result.data.list });
|
|
|
commit(Types.FETCH_NEWSACTIVE, { list: result.data || [] });
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
|