<template>
	<view class="content">
		<view class="title b-b">-{{ info.num }}{{ info.coinname.toUpperCase() }}</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.fee }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">實際到賬</text>
			<view class="input">{{ info.mum }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">提幣地址</text>
			<view class="input">{{ info.address }}</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>
</template>

<script>
import { txinfo } from '@/api/wallet.js';
export default {
	data() {
		return {
			id: '',
			info: ''
		};
	},
	onLoad(opt) {
		this.id = opt.id;
		this.loadData();
	},
	onShow() {},
	methods: {
		loadData() {
			txinfo({ 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>
