<template>
	<view class="content">
		<view class="title b-b">-{{ info.num }}{{ info.coinname.toUpperCase() }}</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('cb.lx') }}</text>
			<view class="input">{{ $t('cb.ptcb') }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('cb.sj') }}</text>
			<view class="input">{{ info.fee }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('tb.sjdz') }}</text>
			<view class="input">{{ info.mum }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('tb.tbdz') }}</text>
			<view class="input">{{ info.address }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('cb.zt') }}</text>
			<view class="input">{{ info.status == 1 ? $t('cb.dsh') : info.status == 2 ? $t('cb.wc') : $t('cb.sb') }}</view>
		</view>
		<view class="row b-b flex">
			<text class="tit">{{ $t('cb.sj') }}</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) {
		uni.setNavigationBarTitle({ title: this.$t('tb.tbxq') });
		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>
