|
|
@ -52,14 +52,15 @@ |
|
|
|
<view class="se-b-b se-m-20 se-py-20 se-px-20 se-flex-h-sb" v-for="(items,indexs) in records" :key="indexs" @click="onMasterDetail(items)"> |
|
|
|
<view class="se-flex se-flex-v"> |
|
|
|
<view class="se-flex"> |
|
|
|
<text class="se-fw-6 se-c-33 se-fs-30">{{items.desc}}</text> |
|
|
|
<text class="se-fw-6 se-c-33 se-fs-30">{{items.title}}</text> |
|
|
|
</view> |
|
|
|
<view class="se-c-text-third se-fs-22 se-mt-20"> |
|
|
|
<text >{{items.createTime}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="se-c-33 se-fs-30 se-fw-5"> |
|
|
|
{{items.money}} |
|
|
|
<view class="se-c-33 se-fs-30 se-fw-5" :class="items.type==0?'se-c-red':'se-c-green'"> |
|
|
|
{{items.type==0?'-':'+'}} |
|
|
|
¥{{items.money}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -100,27 +101,35 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.startTime = this.$dayjs().valueOf(); |
|
|
|
this.startDate = this.$dayjs().format('YYYY-MM-DD') |
|
|
|
this.startTime = this.$dayjs().subtract(1, 'day').valueOf(); |
|
|
|
this.startDate = this.$dayjs().subtract(1, 'day').format('YYYY-MM-DD') |
|
|
|
this.endTime = this.$dayjs().valueOf(); |
|
|
|
this.endDate = this.$dayjs().format('YYYY-MM-DD') |
|
|
|
console.info(this.$dayjs().format('YYYY-MM-DD')) |
|
|
|
this.onPayLog(); |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
let that = this |
|
|
|
that.pageNo = that.pageNo + 1 |
|
|
|
that.onPayLog() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
onPayLog(){ |
|
|
|
let that = this |
|
|
|
let params = { |
|
|
|
pageNo:that.pageNo, |
|
|
|
pageSize:that.pageSize, |
|
|
|
startTime:that.startTime, |
|
|
|
endTime:that.endTime |
|
|
|
startTime:that.startDate+" 00:00:00", |
|
|
|
endTime:that.endDate+" 23:59:59" |
|
|
|
} |
|
|
|
payLog(params).then(response=>{ |
|
|
|
console.info("payLog",response) |
|
|
|
that.money = response.result.money?response.result.money:0 |
|
|
|
that.moneyLog = response.result.moneyLog?response.result.moneyLog:0 |
|
|
|
that.records = response.result.log.records |
|
|
|
if(that.pageNo==1){ |
|
|
|
that.records = response.result.log.records |
|
|
|
}else{ |
|
|
|
that.records = that.records.concat(response.result.log.records) |
|
|
|
} |
|
|
|
}).catch(error=>{ |
|
|
|
|
|
|
|
}) |
|
|
|