<template>
	<view class="center">
		<view class="box">
			<view class="textBox flex">
				<view class="font">交易前</view>
				<view class="number">{{ before }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import {moneyLog} from '@/api/finance.js';
export default {
	data(){
		return {
			id:'',
			before: '2000',
			jy: '2000',
			after: '2000',
			text: '1111',
			code: '',
			type: '',
		}
	},
	onLoad(option){
		console.log(option)
		this.id = option.id;
		this.code = option.code;
		this.type = option.type;
		this.loadData();
	},
	methods:{
		async loadData() {
			let obj = this;
			moneyLog({
				page: 1,
				limit: 10000,
				type: obj.type,
			}, obj.code,obj.id).then(({
				data
			}) => {
				console.log(data);
				obj.list = data.list;
			});
		},
	}
}
</script>

<style lang="scss">
	.box {
		
		height: 618rpx;
		background: #FFFFFF;
		box-shadow: 3px 3px 6px 0px rgba(31, 31, 31, 0.17);
		border-radius: 40px;
	}
</style>
