<template>
	<view class="add-paper">
		<view>
			<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="">
				<view class="add-paper-title">{{title}}</view>
				<view slot="left"></view>
				<view slot="right"></view>
			</uni-nav-bar>
		</view>
		<view class="">
			<view class="add-paper-list">
				<view >
					<text class="add-paper-start">*</text>
					<text class="add-paper-text">纸品名称</text>
				</view>
				<view class="add-paper-input">
						<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品名称"></uni-easyinput>
				</view>
			</view>
			<view class="add-paper-border"></view>
			<view class="add-paper-list">
				<view >
					<text class="add-paper-start">*</text>
					<text class="add-paper-text">纸厂信息</text>
				</view>
				<view class="add-paper-input">
						<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸厂信息"></uni-easyinput>
				</view>
			</view>
			<view class="add-paper-border"></view>
			<view class="add-paper-list">
				<view >
					<text class="add-paper-start">*</text>
					<text class="add-paper-text">品牌信息</text>
				</view>
				<view class="add-paper-input">
						<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品品牌名称"></uni-easyinput>
				</view>
			</view>
			<view class="add-paper-border"></view>
			<view class="add-paper-list">
				<view >
					<text class="add-paper-start">*</text>
					<text class="add-paper-text">纸种信息</text>
				</view>
				<view class="add-paper-input">
						<uni-easyinput :placeholderStyle='placeholderStyle' :inputBorder="false" v-model="value" placeholder="请输入纸品名称"></uni-easyinput>
				</view>
			</view>
			<view class="add-paper-border"></view>
			<view class="add-paper-list">
				<view >
					<text class="add-paper-start">*</text>
					<text class="add-paper-text">是否主营</text>
				</view>
				<view>
						<uni-data-checkbox v-model="radio" :localdata="range" @change="change"></uni-data-checkbox>
				</view>
			</view>
		</view>
	</view>
</template>s

<script>
	import { back, go2 } from '@/utils/hook.js'
	export default {
		data() {
			return {
				title:'添加纸品',
				value:'',
				radio:0,
				range: [{"value": 0,"text": "是"    },{"value": 1,"text": "否"}],
				placeholderStyle:'text-align: right;'
			}
		},
		methods: {
			back,
		}
	}
</script>

<style lang="scss">
.add-paper{
	.add-paper-title {
		width: 100%;
		font-size: 36rpx;
		color: #000000;
		letter-spacing: 0;
		text-align: center;
		font-weight: 500;
	}
	.add-paper-list{
		height: 88rpx;
		background: #FFFFFF;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-left: 32rpx;
		padding-right: 32rpx;
	}
	.add-paper-text{
		font-size: 28rpx;
		color: #000000;
		letter-spacing: 0;
		font-weight: 400;
	}
	.add-paper-start{
		font-size: 28rpx;
		color: #F5222D;
		letter-spacing: 0;
		font-weight: 400;
	}
	.add-paper-input{
		width: 40%;
	}
	.add-paper-border{
		border-bottom: 2rpx solid #D8D8D8;
		margin-left: 16px;
	}
}
</style>
