<template>
	<view>
		<view class="cmain">
			<view class="box order_detail" style="margin-top: 0px">
				<u-divider text="服务点充值信息"></u-divider>
				<view class="item" style="padding-top: 0px">
					<text class="label">支付方式</text>
					<text class="desc">微信支付</text>
				</view>
				<view class="item">
					<text class="label">商户号</text>
					<text class="desc omit">{{ item.mchid }}</text>
				</view>
				<view class="item">
					<text class="label">商户系统内部订单号</text>
					<text class="desc omit">{{ item.outTradeNo }}</text>
				</view>
				<view class="item">
					<text class="label">微信支付系统生成的订单号</text>
					<text class="desc omit">{{ item.transactionId }}</text>
				</view>
				<view class="item">
					<text class="label">服务点数量(金额)</text>
					<text class="desc">+{{ item.amount }}</text>
				</view>
				<view class="item">
					<text class="label">充值时间</text>
					<text class="desc">{{ item.topupTime }}</text>
				</view>	
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {},
			param: {},
		};
	},
	onLoad(e) {
		if (e.id) {
			this.param.id = e.id
			this.http.request({
				url: '/level-one-server/app/WalletManage/getTopUpById',
				data: this.param,
				success: res => {
					this.item = res.data.data;
				}
			});
		}
		if (e.transactionId) {
			this.param.transactionId = e.transactionId
			this.http.request({
				url: '/level-one-server/app/WalletManage/getTopUpByTransactionId',
				data: this.param,
				success: res => {
					this.item = res.data.data;
				}
			});
		}
	},
	methods: {
		
	}
};
</script>

<style lang="scss">
page {
	background-color: $pg;
}
</style>
