<template>
	<view class="content">
		<view class="title b-b">+{{ info.num }}{{ info.coin }}</view>
		<view class="row b-b flex">
			<text class="tit">類型</text>
			<view class="input">普通充幣</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">狀態</text>
			<view class="input">{{ info.status == 1 ? '待审核' : info.status == 2 ? '完成' : '失败' }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">時間</text>
			<view class="input">{{ info.addtime }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">轉賬憑證</text>
			<view class="image"><image :src="info.payimg" mode=""></image></view>
		</view>
	</view>
</template>

<script>
import { czinfo } from '@/api/wallet.js';
export default {
	data() {
		return {
			id: '',
			info: ''
		};
	},
	onLoad(opt) {
		this.id = opt.id;
		this.loadData();
	},
	onShow() {},
	methods: {
		loadData() {
			czinfo({ oid: this.id }).then(e => {
				this.info = e.data;
			});
		}
	}
};
</script>

<style lang="scss">
page,
.content {
	min-height: 100%;
	height: auto;
	background: #fff;
}
.row {
	display: flex;
	align-items: center;
	position: relative;
	padding: 40rpx 30rpx;
	background: #fff;
	.tit {
		flex-shrink: 0;
		width: 120rpx;
		font-size: 28rpx;
		color: #707a8a;
	}
	.input {
		text-align: right;
		flex: 1;
		font-size: 28rpx;
		color: #000;
	}
	.image {
		width: 160rpx;
		height: 160rpx;
		image {
			width: 100%;
			height: 100%;
		}
	}
}
.title {
	padding: 50rpx 30rpx;
	font-size: 48rpx;
	font-weight: bold;
	color: #fcd535;
}
</style>
