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
huangyCode
5 years ago
Commit
12e9345d56331b9e6a3624d8a396c302eb250a4d
1 parent
79954274
修改样式
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
apps/pages/list/list.vue
apps/pages/list/list.vue
View file @
12e9345
...
...
@@ -18,12 +18,14 @@
<div class="search-img" @click="goSearch()"></div>
</div>
</div>
<Scroll class="product-list"
<Scroll class="product-list"
v-show="!productList.isEmpty"
:options="scrollOptions"
:data="productList.list"
@pulling-up="onPullingUp">
<ProductList :list="productList.list"></ProductList>
</Scroll>
<EmptyList class="empty-wrapper product-list" :tip="`暂无数据`" v-show="productList.isEmpty" >
</EmptyList>
</LayoutApp>
<Filtrate ref="filtrate"></Filtrate>
</div>
...
...
@@ -31,6 +33,7 @@
<script>
import ProductList from './components/productList';
import Filtrate from './filtrate';
import EmptyList from '../../components/ufo-no-item';
import {Scroll} from 'cube-ui';
import {createNamespacedHelpers} from 'vuex';
...
...
@@ -42,7 +45,8 @@ export default {
components: {
ProductList,
Scroll,
Filtrate
Filtrate,
EmptyList
},
data() {
return {
...
...
@@ -157,6 +161,9 @@ export default {
list[key] = data[key];
}
}
list.list && list.list.length ? list.isEmpty = false : list.isEmpty = true;
this.productList = list;
}
},
...
...
@@ -220,6 +227,9 @@ export default {
align-items: center;
padding-left: 42px;
padding-right: 38px;
z-index: 999;
background: #fff;
position: relative;
}
.filter-tab {
...
...
@@ -291,4 +301,11 @@ export default {
background: url(~statics/image/list/search_icon@3x.png) no-repeat;
background-size: cover;
}
.empty-wrapper {
margin: auto 0;
position: absolute;
top: 0;
bottom: 0;
}
</style>
...
...
Please
register
or
login
to post a comment