<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="form.name" 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="form.manufacturerName" 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="form.brandName" 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="form.manufacturerName" 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="form.isMainProduct" :localdata="range" @change="change"></uni-data-checkbox>
				</view>
			</view>
		</view>
		<uGap></uGap>
		<view class="">
			<view class="">
				<text>纸品售价</text>
				<text>(不设置最低起送量则不限制其送量要求)</text>
			</view>
		</view>
	</view>
</template>s

<script>
	import { back, go2 } from '@/utils/hook.js'
	import uGap from '@/components/u-gap/u-gap.vue'
	export default {
		components:{
			uGap
		},
		data() {
			return {
				title:'添加纸品',
				value:'',
				radio:0,
				form:{
					isMainProduct:true
				},
				range: [{"value": true,"text": "是"    },{"value": false,"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>
