<template>
	<view class="page">
		<view class="stylebookbox">
			<view class="apply">投稿</view>
			<view class="stylebook">
				感谢您的信任，选择向我们投稿！（带*号的项为必填项，其他为非必填项）
			</view>
			<view class="dotted">
				<image src="/static/images/dotted.png" style="width: 654rpx;height: 4rpx;" mode=""></image>
			</view>
			<!-- 姓名 -->
			<view class="item">
				<view class="name">
					<text>*</text>
					<text style="color: rgba(34, 34, 34, 1);">您的姓名</text>
				</view>
				<view class="box u-flex">
					<input type="text" style="width: 100%;" />
				</view>
			</view>
			<!-- 电话 -->
			<view class="item">
				<view class="name">
					<text>*</text>
					<text style="color: rgba(34, 34, 34, 1);">您的电话</text>
				</view>
				<view class="box u-flex">
					<input type="text" style="width: 100%;" />
				</view>
			</view>
			<!-- 邮箱 -->
			<view class="item">
				<view class="name">
					<text>*</text>
					<text style="color: rgba(34, 34, 34, 1);">您的邮箱</text>
				</view>
				<view class="box u-flex">
					<input type="text" style="width: 100%;" />
				</view>
			</view>
			<!-- 学校 -->
			<view class="item">
				<view class="name">
					<text>*</text>
					<text style="color: rgba(34, 34, 34, 1);">您所在的学校名称</text>
				</view>
				<view class="box u-flex">
					<input type="text" style="width: 100%;" />
				</view>
			</view>
			<!-- 选题名称 -->
			<view class="item">
				<view class="name">
					<text>*</text>
					<text style="color: rgba(34, 34, 34, 1);">选题名称</text>
				</view>
				<view class="box u-flex">
					<input type="text" style="width: 100%;" />
				</view>
			</view>
			<!-- 稿件状态 -->
			<view class="item">
				<view class="name">
					<text style="color: rgba(34, 34, 34, 1);">稿件状态</text>
				</view>
				<view class="box u-flex" style="padding-right: 28rpx;">
					<input placeholder-style="font-size: 26rpx;" class="input" type="text"
						style="width: 100%;padding: 28rpx;" placeholder="请选择" :disabled="true" />
					<u-icon name="arrow-down-fill" size='12' color='rgba(150, 150, 150, 1)'></u-icon>
				</view>
			</view>
			<view class="item">
				<view class="name">
					<text style="color: rgba(34, 34, 34, 1);">最迟出版时间</text>
				</view>
				<view class="box u-flex" style="padding: 0 28rpx;" @click="show=true">
					<image src="/static/images/calendar.png" style="width: 44rpx;height: 44rpx;" mode=""></image>
					<u-calendar v-model="show" mode="date" @click="change"></u-calendar>
				</view>
			</view>
			<!-- 经费情况 -->
			<view class="item">
				<view class="name">
					<text style="color: rgba(34, 34, 34, 1);">经费情况</text>
				</view>
				<view class="box u-flex" style="padding-right: 28rpx;">
					<input placeholder-style="font-size: 26rpx;" class="input" type="text"
						style="width: 100%;padding: 28rpx;" placeholder="请选择" :disabled="true" />
					<u-icon name="arrow-down-fill" size='12' color='rgba(150, 150, 150, 1)'></u-icon>
				</view>
			</view>
			<!-- 上传 -->
			<view class="item">
				<view class="name">
					<text style="color: rgba(34, 34, 34, 1);">作者简介及目录上传</text>
				</view>
				<view class="uploading">
					<image src="../../static/images/uploading.png" style="width: 64rpx;height: 64rpx;" mode=""></image>
					<view class="up" style="margin-top: 16rpx;">选择文件</view>
					<view class="up">（不超过10M）</view>
				</view>
			</view>
			<view class="btn">
				提交
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '教材用书',
						disabled: false
					},
					{
						name: '学习参考',
						disabled: false
					},
					{
						name: '其他',
						disabled: false
					}
				],
				show: false,
			};
		},
		methods: {
			change(e) {
				console.log(e);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.uploading {
		width: 184rpx;
		height: 184rpx;
		border: 2rpx solid rgba(151, 151, 151, 0.3);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 22rpx;

		.up {
			font-size: 20rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #222222;
		}
	}

	.btn {
		// width: 614rpx;
		height: 82rpx;
		background: #06A971;
		border-radius: 8rpx;
		font-size: 32rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		margin-top: 48rpx;
		line-height: 82rpx;
		text-align: center;
	}

	.address {
		font-size: 26rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #222222;
	}

	.item {
		margin-top: 44rpx;

		.name {
			font-size: 26rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			color: #CF1534;
		}

		.box {
			margin-top: 24rpx;
			height: 72rpx;
			border: 2rpx solid rgba(151, 151, 151, 0.3);
		}
	}

	.page {
		background-color: rgba(246, 246, 246, 1);
		width: 750rpx;
		min-height: 100vh;
		padding: 20rpx 28rpx 68rpx;
	}

	.stylebookbox {
		background: #FFFFFF;
		border-radius: 12rpx;
		padding: 38rpx 20rpx 44rpx;

		.apply {
			font-size: 32rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			color: #222222;
			text-align: center;
		}

		.stylebook {
			font-size: 26rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #222222;
			margin-top: 50rpx;
		}

		.dotted {
			// margin-top: 30rpx;
		}
	}
</style>