添加收益详情
This commit is contained in:
parent
8922822225
commit
62640100a3
|
@ -0,0 +1,126 @@
|
|||
<template>
|
||||
<view>
|
||||
<view style="text-align: left;padding-bottom: 10rpx;">
|
||||
<view v-for="(item, index) in list" :key="index" class="item">
|
||||
<view>
|
||||
<view style="color: #999999;font-size: 28upx;">
|
||||
<view style="margin-bottom: 8upx;color: #333; font-size: 32rpx;font-weight: bold;">{{item.entryName}}</view>
|
||||
<view style="margin-bottom: 8upx; font-size: 29.6rpx; color: #666; margin-top: 20rpx;">{{item.address}}</view>
|
||||
<view style="margin-bottom: 8upx; font-size: 24rpx; color: #999;margin-top: 20rpx;"> 服务时间:{{item.serveTime}}</view>
|
||||
<view style="margin-bottom: 8upx;text-align: right;">
|
||||
<text class="text-olive" style="font-size: 32upx;font-weight: 600"><text class="text-olive">+</text>{{item.sumArtificerMoney}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 加载更多提示 -->
|
||||
<!-- <view class="s-col is-col-24" v-if="list.length > 0">
|
||||
<load-more :loadingType="loadingType" :contentText="contentText"></load-more>
|
||||
</view> -->
|
||||
<!-- 加载更多提示 -->
|
||||
<!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
|
||||
<empty v-if="list.length == 0" content="暂无明细" ></empty>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import empty from '@/components/empty.vue'
|
||||
export default {
|
||||
components: {
|
||||
empty
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
page: 1,
|
||||
limit: 10,
|
||||
tabIndex: 1,
|
||||
checkReZhiShu: '否',
|
||||
checkReTuanZhang: '否',
|
||||
checkReFeiZhiShu: '否',
|
||||
scrollTop: false,
|
||||
fundType:1,
|
||||
contentText: {
|
||||
contentdown: '上拉显示更多',
|
||||
contentrefresh: '正在加载...',
|
||||
contentnomore: '没有更多数据了'
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.fundType = e.fundType;
|
||||
console.log('mymoneydetail--->',this.fundType);
|
||||
// this.$queue.showLoading("加载中...");
|
||||
this.getList();
|
||||
},
|
||||
onPageScroll: function(e) {
|
||||
this.scrollTop = e.scrollTop > 200;
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
|
||||
let userId = this.$queue.getData('userId');
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
fundType:this.fundType,
|
||||
}
|
||||
this.$Request.getT('/app/userMoney/profitDetailed',data ).then(res => {
|
||||
if (res.code === 0) {
|
||||
if (this.page === 1) {
|
||||
console.log('111----->');
|
||||
this.list = res.data.records;
|
||||
} else {
|
||||
console.log('2222>');
|
||||
this.list = [...this.list, ...res.data.records];
|
||||
}
|
||||
console.log('list--->',this.list);
|
||||
}
|
||||
uni.stopPullDownRefresh();
|
||||
uni.hideLoading();
|
||||
});
|
||||
}
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.page = this.page + 1;
|
||||
this.getList();
|
||||
},
|
||||
onPullDownRefresh: function() {
|
||||
this.page = 1;
|
||||
this.getList();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
page {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.tui-tab-item-title {
|
||||
// color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tui-tab-item-title-active {
|
||||
border-bottom: 1px solid #557EFD;
|
||||
color: #557EFD;
|
||||
font-size: 32upx;
|
||||
font-weight: bold;
|
||||
border-bottom-width: 6upx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.item {
|
||||
background: #FFFFFF;
|
||||
padding: 32rpx;
|
||||
margin: 32rpx;
|
||||
font-size: 28rpx;
|
||||
border-radius: 16upx;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue