Commit b3cd6f36 authored by 高铭波's avatar 高铭波

Merge branch 'dev-bills-1.4.4' into test

parents fc2748a4 cd66f36d
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
return { return {
loading: true, loading: true,
info: baseinfo, info: baseinfo,
date: '2021-05', date: '',
params: { params: {
payableRecordStatus: null, payableRecordStatus: null,
starDate: null, starDate: null,
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
}, },
onLoad() { onLoad() {
getApp().trackPage('结算账单列表页') getApp().trackPage('结算账单列表页')
this.date = this.moment().format('YYYY-MM')
this.loadPayRecord() this.loadPayRecord()
}, },
methods: { methods: {
......
<template> <template>
<view class="statement-view"> <view class="statement-view">
<u-navbar back-icon-color="#333333" background="#F4F5F7" title="收入流水" titleColor="#333333" <u-navbar back-icon-color="#333333" background="#F4F5F7" title="收入流水" titleColor="#333333"
:border-bottom="false" title-bold></u-navbar> :border-bottom="false" title-bold></u-navbar>
<view class="statement-conten"> <view class="statement-conten">
<view class="statement-content-view"> <view class="statement-content-view">
<view class="head-view"> <view class="head-view">
<view class="head-top-view"> <view class="head-top-view">
<picker mode="date" :value="date" fields="month" @change="bindDateChange" :end="endTime"> <picker mode="date" :value="date" fields="month" @change="bindDateChange" :end="endTime">
<view class="date-input"> <view class="date-input">
<text class="date-text">{{date}}</text> <text class="date-text">{{date}}</text>
<u-icon name="arrow-down"></u-icon> <u-icon name="arrow-down"></u-icon>
</view> </view>
</picker> </picker>
</view> </view>
<view class="head-bottom-view"> <view class="head-bottom-view">
...@@ -19,16 +19,16 @@ ...@@ -19,16 +19,16 @@
<view class="head-amount-text"><text>{{info[key]}}</text></view> <view class="head-amount-text"><text>{{info[key]}}</text></view>
</view> </view>
</view> </view>
</view> </view>
<image :src="qnFile('liushuibeijing.png')" class="head-back-image" mode="widthFix"></image> <image :src="qnFile('liushuibeijing.png')" class="head-back-image" mode="widthFix"></image>
<view class="list-view" v-if="hasInfo"> <view class="list-view" v-if="hasInfo">
<view class="u-flex u-row-center" v-if="loading"> <view class="u-flex u-row-center" v-if="loading">
<u-gap height="20"></u-gap> <u-gap height="20"></u-gap>
<u-loading color="#2272FF" :show="loading"></u-loading> <u-loading color="#2272FF" :show="loading"></u-loading>
</view> </view>
<view v-else v-for="(item, index) in data.statementList" :key="index"> <view v-else v-for="(item, index) in data.statementList" :key="index">
<Statement :data="item" @click="handleClickCell"></Statement> <Statement :data="item" @click="handleClickCell"></Statement>
</view> </view>
</view> </view>
<view class="list-view-empty" v-else> <view class="list-view-empty" v-else>
<u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="false"> <u-image class="empty-image" :src="banner" width="374" height="246" mode="widthFix" :fade="false">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</u-image> </u-image>
<text class="desc">本月没有流水信息</text> <text class="desc">本月没有流水信息</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
...@@ -53,12 +53,12 @@ ...@@ -53,12 +53,12 @@
}, },
data() { data() {
return { return {
data: { data: {
expectedAmount: 0, expectedAmount: 0,
settledAmount: 0, settledAmount: 0,
statementList: [] statementList: []
}, },
date: '2021-05', date: '',
params: { params: {
starDate: null, starDate: null,
endDate: null, endDate: null,
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
...this.data, ...this.data,
number: this.data.statementList.length number: this.data.statementList.length
} }
}, },
endTime() { endTime() {
this.moment().format('YYYY-MM-DD') this.moment().format('YYYY-MM-DD')
}, },
items() { items() {
return { return {
...@@ -96,21 +96,22 @@ ...@@ -96,21 +96,22 @@
}, },
onLoad() { onLoad() {
getApp().trackPage('收入流水列表页') getApp().trackPage('收入流水列表页')
this.date = this.moment().format('YYYY-MM')
this.loadStatement() this.loadStatement()
}, },
methods: { methods: {
qnFile(src) { qnFile(src) {
return process.uniEnv.qn_base_url + src return process.uniEnv.qn_base_url + src
}, },
bindDateChange: function(e) { bindDateChange: function(e) {
this.date = e.target.value this.date = e.target.value
this.loadStatement() this.loadStatement()
}, },
handleClickCell(orderId) { handleClickCell(orderId) {
uni.navigateTo({ uni.navigateTo({
url: 'pages/order/detail?isFromMine=1&id=' + orderId + '&type=other' url: 'pages/order/detail?isFromMine=1&id=' + orderId + '&type=other'
}) })
}, },
async loadStatement() { async loadStatement() {
let self = this let self = this
...@@ -127,7 +128,7 @@ ...@@ -127,7 +128,7 @@
self.data.expectedAmount = data && data.expectedAmount || 0 self.data.expectedAmount = data && data.expectedAmount || 0
self.data.statementList = data && data.orderList || [] self.data.statementList = data && data.orderList || []
} }
}, },
} }
} }
</script> </script>
...@@ -137,24 +138,24 @@ ...@@ -137,24 +138,24 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
background-color: #F4F5F7; background-color: #F4F5F7;
.statement-conten { .statement-conten {
overflow: auto; overflow: auto;
.statement-content-view { .statement-content-view {
margin: 10rpx 30rpx 30rpx 30rpx; margin: 10rpx 30rpx 30rpx 30rpx;
border-radius: 12rpx; border-radius: 12rpx;
position: relative; position: relative;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
.head-back-image { .head-back-image {
position: relative; position: relative;
width: 100%; width: 100%;
z-index: 0; z-index: 0;
} }
.head-view { .head-view {
z-index: 1; z-index: 1;
padding: 30rpx; padding: 30rpx;
color: #FFFFFF; color: #FFFFFF;
...@@ -163,14 +164,14 @@ ...@@ -163,14 +164,14 @@
width: 100%; width: 100%;
.head-top-view { .head-top-view {
margin-top: 10rpx; margin-top: 10rpx;
margin-bottom: 50rpx; margin-bottom: 50rpx;
.date-input { .date-input {
.date-text { .date-text {
padding-right: 10rpx; padding-right: 10rpx;
font-size: 28rpx; font-size: 28rpx;
} }
} }
} }
.head-bottom-view { .head-bottom-view {
...@@ -188,11 +189,11 @@ ...@@ -188,11 +189,11 @@
} }
} }
} }
} }
.list-view { .list-view {
position: relative; position: relative;
z-index: 1; z-index: 1;
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
.list-view-empty { .list-view-empty {
position: relative; position: relative;
...@@ -213,7 +214,7 @@ ...@@ -213,7 +214,7 @@
line-height: 40px; line-height: 40px;
} }
} }
} }
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment