Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Tao
5 years ago
Commit
7f3e41b9314b8021b86776bfbb339e7dbd3d1ed6
1 parent
4cbde4b0
add news && newsDetail none Data
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
apps/pages/home/news/components/list.vue
apps/pages/home/news/news.vue
apps/pages/home/news/newsDetail.vue
apps/pages/home/news/components/list.vue
View file @
7f3e41b
...
...
@@ -7,7 +7,6 @@
<div class="news-list-name">{{ item.content }}</div>
<div class="news-list-time">{{ item.createTime }}</div>
</LayoutLink>
</li>
</ul>
</div>
...
...
apps/pages/home/news/news.vue
View file @
7f3e41b
...
...
@@ -7,8 +7,9 @@
@pulling-up="onPullingUp"
:data="newsList.list">
<div class="news-content">
<Tab :list="newsList.tabList"></Tab>
<List :list="newsList && newsList.list || []"></List>
<Tab v-if="newsList.tabList.length > 0" :list="newsList.tabList"></Tab>
<List v-if="newsList.list.length > 0" :list="newsList && newsList.list || []"></List>
<UfoNoItem v-else :tip="`暂无数据`"></UfoNoItem>
</div>
</Scroll>
</div>
...
...
@@ -18,6 +19,7 @@
<script>
import { Style, Scroll } from 'cube-ui';
import { createNamespacedHelpers } from 'vuex';
import UfoNoItem from '../../../components/ufo-no-item';
import List from './components/list';
import Tab from './components/tab';
...
...
@@ -28,9 +30,9 @@ export default {
data() {
return {
options: {
bounce: {
top: false
},
// bounce: {
// top: false
// },
pullUpLoad: true
},
msg: '消息',
...
...
@@ -66,7 +68,8 @@ export default {
Style,
Scroll,
List,
Tab
Tab,
UfoNoItem
}
};
</script>
...
...
apps/pages/home/news/newsDetail.vue
View file @
7f3e41b
...
...
@@ -8,7 +8,8 @@
:data="newsDeatilList.list">
<div class="news-content">
<Title :title="title"></Title>
<List :list="newsDeatilList && newsDeatilList.list || []" :isTitle="false"></List>
<List v-if="newsDeatilList.list.length > 0" :list="newsDeatilList && newsDeatilList.list || []" :isTitle="false"></List>
<UfoNoItem v-else :tip="`暂无数据`"></UfoNoItem>
</div>
</Scroll>
</div>
...
...
@@ -18,6 +19,7 @@
<script>
import { Style, Scroll } from 'cube-ui'
import { createNamespacedHelpers } from 'vuex';
import UfoNoItem from '../../../components/ufo-no-item';
import Title from './components/title';
import List from './components/list';
const { mapState, mapActions } = createNamespacedHelpers('home/news');
...
...
@@ -26,9 +28,9 @@ export default {
data() {
return {
options: {
bounce: {
top: false
},
// bounce: {
// top: false
// },
pullUpLoad: true
},
title: '',
...
...
@@ -68,6 +70,7 @@ export default {
Scroll,
Title,
List,
UfoNoItem
}
};
</script>
...
...
Please
register
or
login
to post a comment