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
baoss
5 years ago
Commit
c58cde4a2b23e16896b4e5cc3e542da8ee4bf38a
1 parent
fea84882
增加页面title 明细页添加空白状态
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
12 deletions
apps/pages/home/income/components/filter.vue
apps/pages/home/income/components/incomeItem.vue
apps/pages/home/income/income.vue
apps/pages/home/income/incomeDetail.vue
apps/pages/home/mine/mine.vue
apps/pages/home/income/components/filter.vue
View file @
c58cde4
...
...
@@ -78,7 +78,7 @@ export default {
<style lang="scss" scoped>
.income-filter {
background-color: #F
5F7F9
;
background-color: #F
0F0F0
;
padding: 0 40px;
height: 90px;
line-height: 90px;
...
...
apps/pages/home/income/components/incomeItem.vue
View file @
c58cde4
...
...
@@ -48,8 +48,7 @@ export default {
margin: 0 40px;
justify-content: space-between;
align-items: center;
padding-top: 30px;
padding-bottom: 30px;
height: 140px;
border-bottom: solid 1px #E0E0E0;
}
...
...
@@ -105,7 +104,7 @@ export default {
color: #D0021B;
}
.assets-record-income-desc {
color: #
999
;
color: #
444
;
margin-top: 5px;
}
</style>
...
...
apps/pages/home/income/income.vue
View file @
c58cde4
<template>
<LayoutApp :show-back="true">
<LayoutApp :show-back="true"
title="我的收入"
>
<div class="body" ref="body">
<incomeHeader></incomeHeader>
</div>
...
...
apps/pages/home/income/incomeDetail.vue
View file @
c58cde4
<template>
<LayoutApp :show-back="true">
<LayoutApp :show-back="true"
title="收入明细"
>
<div class="body" ref="body">
<Scroll
...
...
@@ -9,9 +9,12 @@
@pulling-down="onPullingDown"
@pulling-up="onPullingUp">
<incomeFilter></incomeFilter>
<template v-for="(item,index) in walletData.list">
<incomeItem :data="item" :key="index"></incomeItem>
</template>
<div v-if="walletData.list.length > 0">
<template v-for="(item,index) in walletData.list">
<incomeItem :data="item" :key="index"></incomeItem>
</template>
</div>
<UfoNoItem class="noData" :tip="`暂无明细数据`" v-else></UfoNoItem>
<template v-if="customPullDown" slot="pulldown" slot-scope="props">
<pullDown :propsData="props" :pullDownRefreshThreshold="pullDownRefreshThreshold"></pullDown>
</template>
...
...
@@ -27,7 +30,7 @@ import pullDown from './components/pullDown';
import { createNamespacedHelpers } from 'vuex';
import {Style, Scroll} from 'cube-ui';
import scrollMixin from '../../../mixins/scroll';
import UfoNoItem from '../../../components/ufo-no-item'
const {mapState, mapActions} = createNamespacedHelpers('home/mine');
export default {
mixins: [scrollMixin],
...
...
@@ -47,6 +50,15 @@ export default {
}),
},
watch: {
"walletData.list": function(val) {
if(val.length === 0) {
this.$refs.scroll.disable()
} else {
this.$refs.scroll.enable()
}
}
},
created() {
this.fetchWallet({isRefresh:true})
},
...
...
@@ -68,7 +80,8 @@ export default {
incomeFilter,
pullDown,
Style,
Scroll
Scroll,
UfoNoItem
}
};
</script>
...
...
@@ -80,4 +93,7 @@ export default {
background-color: white;
color: #999;
}
.noData {
margin: 90px 0;
}
</style>
...
...
apps/pages/home/mine/mine.vue
View file @
c58cde4
<template>
<LayoutApp :show-back="true">
<LayoutApp :show-back="true"
title="我的"
>
<div class="body" ref="body">
<div v-for="(value, key) in getMineList" :key="key">
<tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey>
...
...
Please
register
or
login
to post a comment