<template>
	<view class="content">
		<view class="top-status">
			待支付
		</view>
		<view class="good-info">
			<view class="good-img-tit flex">
				<image src="" mode="" class="good-img"></image>
				<view class="good-tit ">
					<view class="clamp2">
						竹胎酵素健康饮健康生态竹胎酵素健康饮健康生态竹胎酵素健康饮健康生态竹胎酵素健康饮健康生态
					</view>
					<view class="good-time">
						下单时间：2019-06-09
					</view>
				</view>
			</view>
			<view class="flex good-price">
				<view class="">
					订单总价
				</view>
				<view class="">
					￥699
				</view>
			</view>
		</view>
		<view class="user-info">
			<view class="top-tit">
				<view class="tit-t"></view>
				<view class="" style="display: inline-block;">
					订单信息
				</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					订单编号:
				</view>
				<view class="info-val">45875487854</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					收款银行:
				</view>
				<view class="info-val">45875487854</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					开户行:
				</view>
				<view class="info-val">45875487854</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					开户名:
				</view>
				<view class="info-val">45875487854</view>
				<view class="fz" @click="fz()">
					复制
				</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					银行卡号:
				</view>
				<view class="info-val">45875487854</view>
				<view class="fz" @click="fz()">
					复制
				</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					支付宝账号:
				</view>
				<view class="info-val">45875487854</view>
				<view class="fz" @click="fz()">
					复制
				</view>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					微信收款码:
				</view>
				<image src="" mode="" class="info-img"></image>
			</view>
			<view class="info-wrap">
				<view class="info-tit">
					卖家电话:
				</view>
				<view class="info-val">45875487854</view>
				<view class="fz" @click="fz()">
					复制
				</view>
			</view>
		</view>
		<view class="up-wrap">
			<view class="up-tit">
				上传凭证
			</view>
			<image src="../../static/img/upimg.png" mode="" class="upimg" v-if="upimg == ''" @click="imgsub()"></image>
			<image src="" mode="" class="upimg" v-else @click="imgsub()"></image>
		</view>
		<view class="apply-wrap">
			<view class="apply-btn">
				立即支付
			</view>
		</view>
	</view>
</template>

<script>
	import { upload} from '@/api/order.js';
	export default {
		data() {
			return {
				upimg: '',
			}
		},
		methods: {
			imgsub() {
				console.log('imgsub');
				upload({
					filename: ''
				}).then(data => {
					this.upimg = data[0].url;
					// this.$set(this, text, data[0].url)
				});
			},
		}
	}
</script>

<style lang='scss' scoped>
	.top-status {
		width: 750rpx;
		height: 89rpx;
		line-height: 89rpx;
		padding-left: 20rpx;
		background: #FFFFFF;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FF4C4C;
		line-height: 56rpx;
	}

	.good-info {
		width: 750rpx;
		height: 253rpx;
		padding: 30rpx;
		background: #FFFFFF;
		margin: 20rpx 0;
		.good-price {
			font-size: 26rpx;
			font-family: PingFangSC;
			font-weight: 500;
			color: #333333;
			padding-top: 10rpx;
		}
		.good-img-tit {
			justify-content: flex-start;
			.good-img {
				width: 160rpx;
				height: 160rpx;
				flex-shrink: 0;
				background-color: #eee;
			}
			.good-tit {
				height: 160rpx;
				padding: 20rpx 0 0;
				flex-shrink: 0;
				padding-left: 20rpx;
				width: 450rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #1D2023;
				line-height: 40rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.good-time {
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #999999;
				}
			}
		}
	}

	.user-info {
		padding: 20rpx 30rpx;
		background-color: #fff;
		margin: 20rpx 0;

		.top-tit {
			padding-bottom: 20rpx;

			.tit-t {

				margin-right: 8rpx;
				display: inline-block;
				width: 3rpx;
				height: 25rpx;
				background: linear-gradient(0deg, #FA2740, #FE5544);
				border-radius: 2rpx;
				font-size: 30rpx;
				font-family: PingFangSC;
				font-weight: 500;
				color: #333333;
			}

		}
	}

	.info-wrap {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
		/* text-align: 80rpx; */
		font-size: 26rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #666666;
		line-height: 56rpx;

		.info-img {
			width: 144rpx;
			height: 147rpx;
			background-color: #eee;
		}

		.info-tit {
			flex-shrink: 0;
			margin-right: 10rpx;
		}

		.fz {
			margin-left: 10rpx;
			text-align: center;
			width: 88rpx;
			height: 45rpx;
			line-height: 45rpx;
			background: #FFFFFF;
			border: 1px solid #DDDDDD;
			border-radius: 23rpx;
		}
	}

	.up-wrap {
		width: 750rpx;
		/* height: 229rpx; */
		background: #FFFFFF;
		padding: 20rpx 30rpx;

		.up-tit {
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #666666;
			line-height: 56rpx;
		}

		.upimg {
			display: block;
			width: 150rpx;
			height: 150rpx;
			margin: auto;
		}

	}

	.apply-wrap {
		height: 200rpx;
		padding-top: 62rpx;

		.apply-btn {
			text-align: center;
			width: 560rpx;
			height: 80rpx;
			line-height: 80rpx;
			background: #E62129;
			border-radius: 40rpx;
			margin: auto;
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
		}

	}
</style>
