<template>
	<view class="goods">
		<view class="goods-bd">
			<view class="l">
				<view class="a">
					<u-icon name="arrow-left"></u-icon>
				</view>
				<view class="b">
					<u-upload :action="action" width="160" height="160" :custom-btn="true" max-count="1">
						<template v-slot:addBtn>
							<view class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
								<image src="/static/news/icon-upload.png"></image>
								<view class="1">上传图片</view>
							</view>
						</template>
					</u-upload>
				</view>
				<view class="a">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="t">公主1，黑色</view>
		</view>
		<view class="goods-hd">
			<view class="item">
				<view class="a">商品价格<text>*</text></view>
				<view class="b">
					<input type="text" placeholder="请输入商品价格，最低0.1元" />元
				</view>
			</view>
			<view class="item">
				<view class="a">商品原价</view>
				<view class="b">
					<input type="text" placeholder="请输入商品划线价格" />元
				</view>
			</view>
			<view class="item">
				<view class="a">商品库存<text>*</text></view>
				<view class="b">
					<input type="number" placeholder="请输入商品库存" />件
				</view>
			</view>
			<view class="item">
				<view class="a">商品重量<text>*</text></view>
				<view class="b">
					<input type="text" placeholder="请输入商品重量" />kg
				</view>
			</view>
		</view>
		<view class="goods-fd">
			<view class="btn">确认</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fileList: [
					{
						url: 'http://pics.sc.chinaz.com/files/pic/pic9/201912/hpic1886.jpg',
					}
				],
				checked: false,
				value: ""
			};
		}
	}
</script>

<style lang="scss" scoped>
.goods{
	padding: 0 0 20rpx;
	overflow: hidden;
	&-hd{
		background-color: #fff;
		padding: 0 25rpx 0;
		overflow: hidden;
		.item{
			padding: 20rpx 30rpx;
			line-height: 50rpx;
			font-size: 28rpx;
			color: #212121;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1px solid #F7F7F7;
			.a{
				text{
					color: #F34A40;
					margin-left: 5rpx;
				}
			}
			.b{	
				font-size: 28rpx;
				color: #212121;
				flex: 1;
				display: flex;
				align-items: center;
				input{
					font-size: 28rpx;
					color: #212121;
					flex: 1;
					line-height: 50rpx;
					font-size: 28rpx;
					color: #212121;
					text-align: right;
					margin-right: 10rpx;
				}
				.select{
					color: #C7C7C7;
					&-on{
						color: #212121;
					}
				}
			}
		}
	}
	&-bd{
		background-color: #fff;
		padding: 60rpx;
		overflow: hidden;
		.l{
			height: 260rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			.a{
				height: 100%;
				width: 100rpx;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			.b{
				width: 260rpx;
				height: 260rpx;
				.slot-btn{
					width: 260rpx;
					height: 260rpx;
					background: #F6F6F6;
					border-radius: 10rpx;
					border: 1px solid #C0C0C0;
					text-align: center;
					font-size: 28rpx;
					font-weight: 500;
					color: #6D6D6D;
					image{
						width: 50rpx;
						height: 50rpx;
						margin-top: 80rpx;
						margin-bottom: 20rpx;
					}
				}
			}
		}
		.t{
			text-align: center;
			margin-top: 20rpx;
			font-size: 32rpx;
			font-weight: 400;
			color: #2D2D2D;
		}
	}
	&-fd{
		width: 100%;
		position: fixed;
		left: 0;
		bottom: 0;
		padding: 30rpx;
		background-color: #fafafa;
		box-sizing: border-box;
		.btn{
			width: 630rpx;
			line-height: 88rpx;
			background: #F34A40;
			border-radius: 88rpx;
			text-align: center;
			font-size: 28rpx;
			font-weight: 500;
			color: #FFFFFF;
		}
	}
}
</style>
