<template>
	<view class="container">
		<view class="header">
			<image src="../../static/images/skm_fn_bg.png" mode="aspectFill" class="bg-img"></image>
			<view class="info-block flex-row-between">
				<view class="info">
					<view class="title">收款码{{$test.$test}}</view>
					<view class="desc">{{$test.$desc}}</view>
				</view>
				<view class="btn">浏览</view>
			</view>
		</view>
		<view class="main">
			<view class="cell">
				<view class="name">中转页标题</view>
				<view class="content">
					<input type="text" placeholder="请填写中转页标题" />
				</view>
			</view>
			<view class="cell">
				<view class="name">{{$test.$test}}链接</view>
				<view class="content">
					<input type="text" :placeholder="'请填写'+$test.$test+'链接'" />
				</view>
			</view>
			<view class="cell">
				<view class="name">广告引导页</view>
				<view class="content arr-icon">
					<input type="text" placeholder="默认引导页" />
				</view>
			</view>
			<view class="add-block flex-row-between">
				<view class="item">
					<image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
					<view class="add-def flex-column-center">
						<view class="title">+ 添加</view>
						<view class="desc">添加收款码图片</view>
					</view>

				</view>
				<view class="item">
					<image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
					<view class="add-def flex-column-center">
						<view class="title">+ 添加</view>
						<view class="desc">添加引导页图片</view>
					</view>
				</view>
			</view>
			<block v-if="type == 2">
				<image src="../../static/images/code.png" mode="aspectFit" class="code-img"></image>
				<view class="btm-btn2">生成二维码</view>
			</block>
		</view>
		<view class="btm-btn-block" v-if="type == 1">
			<view class="content flex-column">
				<view class="btn btn1">绑定二维码</view>
				<view class="btn btn2">生成二维码</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {		
				$test:this.$test.$test,
				type: 2
			}
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: `收款码${this.$test.$test}`
			})
		},
		methods: {

		}
	}
</script>

<style>
	.header {
		width: 100%;
		height: 198rpx;
		position: relative;
	}

	.header .bg-img {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		z-index: -1;
		width: 100%;
		height: 198rpx;

	}

	.header .info-block {
		padding: 0 40rpx 0 48rpx;
		height: 198rpx;
	}

	.header .info-block .title {
		font-size: 36rpx;
		color: #fff;
		font-weight: 500;
		line-height: 50rpx;
	}

	.header .info-block .desc {
		font-size: 28rpx;
		font-weight: 500;
		color: #fff;
		line-height: 40rpx;
		margin-top: 8rpx;
	}

	.header .info-block .btn {
		width: 120rpx;
		height: 56rpx;
		border: 2rpx solid #fff;
		border-radius: 28rpx;
		background-color: rgba(255, 255, 255, 0.2);
		text-align: center;
		line-height: 52rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #fff;
	}

	.main {
		background-color: #fff;
		border-radius: 20rpx 20rpx 0 0;
		margin-top: -20rpx;
		padding: 20rpx 40rpx 0;
		min-height: calc(100vh - 198rpx - var(--window-top));
		position: relative;
	}

	.main .cell {
		border-bottom: 2rpx solid #f5f5f5;
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx 0;
	}

	.main .cell .name {
		flex: none;
		padding-right: 40rpx;
		font-size: 32rpx;
		color: #333;
		font-weight: 500;
	}

	.main .cell .content {
		flex: auto;
		display: flex;
		flex-flow: row nowrap;
		justify-content: flex-end;
		align-items: center;
	}

	.main .cell .content.arr-icon::after {
		content: "";
		display: block;
		width: 16rpx;
		height: 16rpx;
		border-top: 2rpx solid #999;
		border-right: 2rpx solid #999;
		transform: rotate(45deg);
	}

	.main .cell .content input {
		height: 40rpx;
		line-height: 40rpx;
		font-size: 28rpx;
		text-align: right;
	}

	.main .add-block {
		width: 670rpx;
		padding: 40rpx 0;
	}

	.main .add-block .item {
		flex: none;
		width: 315rpx;
		height: 210rpx;
		border-radius: 15rpx;
		overflow: hidden;
	}

	.main .add-block .img {
		flex: none;
		display: block;
		width: 100%;
		height: 100%;
	}

	.main .add-block .add-def {
		width: 100%;
		height: 100%;
		background-color: #eaf3ff;
	}

	.main .add-block .add-def .title {
		font-size: 40rpx;
		line-height: 56rpx;
		color: #3387FF;
	}

	.main .add-block .add-def .desc {
		font-size: 28rpx;
		line-height: 40rpx;
		color: #7e7e7e;
		margin-top: 7rpx;
	}

	.main .code-img {
		display: block;
		width: 400rpx;
		height: 400rpx;
		margin: 90rpx auto;
	}

	.btm-btn2 {
		width: 670rpx;
		height: 98rpx;
		background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
		border-radius: 8rpx;
		box-shadow: 0px 0px 8rpx 0px rgba(51, 135, 255, 0.2);
		font-size: 32rpx;
		font-weight: 500;
		text-align: center;
		color: #fff;
		line-height: 98rpx;
		margin-bottom: 90rpx;
	}

	/*  */


	.btm-btn-block .content {
		height: 280rpx;
		width: 100%;
		position: absolute;
		left: 0;
		bottom: 0;
		justify-content: flex-start;
	}

	.btm-btn-block .content .btn {
		width: 670rpx;
		height: 98rpx;
		border-radius: 8rpx;
		text-align: center;
		line-height: 98rpx;
		font-size: 32rpx;
		font-weight: 500;
	}

	.btm-btn-block .content .btn1 {
		background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
		box-shadow: 0 0 8rpx 0 rgba(51, 135, 255, 0.2);
		color: #fff;

	}

	.btm-btn-block .content .btn2 {
		box-shadow: 0px 0px 8px 0px rgba(207, 219, 234, 0.4);
		color: #3387FF;
		margin-top: 32rpx;
		background-color: #fff;
	}
</style>
