accountDetails.vue 3.4 KB
<template>
	<view class="page">
		<view class="nodata" v-if="account.length==0">暂无数据</view>
		<view class="box" v-else>
			
			<view class="item" v-for="(item,index) in account" :key="index">
				<view class="title">{{item.year_month}}
					<image src="../../static/more.png" mode="widthFix" class="more" />
				</view>
				<view class="xitem" v-for="(itemk,indexk) in item.list" :key="indexk">
					<view class="top">
						<text v-if="itemk.type==1">充值</text>
						<text v-if="itemk.type==2">余额购买</text>
						<text v-if="itemk.type==3">提现审核</text>
						<text v-if="itemk.type==4">提现审核通过</text>
						<text v-if="itemk.type==5">提现审核未通过</text>
						<text v-if="itemk.type==6">转出</text>
						<text v-if="itemk.type==7">转入</text>
						<text v-if="itemk.type==8">赊吧消费</text>
						<text v-if="itemk.type==9">赊吧还款</text>
						<text v-if="itemk.type==10">提现已打款</text>
						<text v-if="itemk.type==11">佣金提现</text>
						<text v-if="itemk.type==1">+{{itemk.money}}</text>
						<text v-if="itemk.type==2">-{{itemk.money}}</text>
						<text v-if="itemk.type==3">-{{itemk.money}}</text>
						<text v-if="itemk.type==4">-{{itemk.money}}</text>
						<text v-if="itemk.type==5">+{{itemk.money}}</text>
						<text v-if="itemk.type==6">-{{itemk.money}}</text>
						<text v-if="itemk.type==7">+{{itemk.money}}</text>
						<text v-if="itemk.type==8">-{{itemk.money}}</text>
						<text v-if="itemk.type==9">-{{itemk.money}}</text>
						<text v-if="itemk.type==10">+{{itemk.money}}</text>
						<text v-if="itemk.type==11">+{{itemk.money}}</text>
					</view>
					<view class="num">
						<text>{{item.createtime}}</text>
						<text>余额 {{itemk.after_money}}</text>
					</view>
				</view>
				
			
			</view>
		</view>
	</view>
</template>

<script>
	import app from "../../App.vue";
	export default {
		
		data() {
			return {
				page:1,
				accountlist:[],
				account:[]
			}
		},
		onLoad() {
			this.getaccount()
		},
		methods: {
			getaccount(){
				let that = this;
				var url = 'money/money_log';
				var params = {
					
				}
				console.log('7766554', params)
				app.post(url, params).then((res) => {
					console.log(res);
					that.account=that.account.concat(res.data.data);
					 // that.accountlist = that.accountlist.concat(res.data.data);
					// that.accountlist.forEach(function(value, index, array) {
					// 	value.card_number = value.card_number.substr(-4)
					// })
					// that.accountlist = that.accountlist;
						
				}).catch((err) => {
					console.log(err)
						
				})
			}
		},
		onReachBottom() {
			
		}
	}
</script>

<style>
	page {
		background: #F7F7F7;
	}

	.box {
		padding: 0 32rpx;
		box-sizing: border-box;
		background: #fff;
		margin-top: 16rpx;
	}

	.title {
		height: 92rpx;
		display: flex;
		align-items: center;
		border-bottom: 1px solid #EEEEEE;
	}

	.more {
		width: 32rpx;
		margin-left: 12rpx;
	}

	.xitem {
		height: 128rpx;
		border-bottom: 1px solid #EEEEEE;
		overflow: hidden;
	}

	.top,
	.num {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.top {
		margin-top: 20rpx;
		font-size: 32rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: rgba(35, 35, 35, 1);
	}

	.top text:last-child {
		color: #FF9417;
	}

	.num {
		margin-top: 10rpx;
		font-size: 24rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: rgba(187, 194, 203, 1);
	}
</style>