<template>
	<view class="page">
		<l-input title="学年" placeholder="请填写学年" :value="data.AcademicYearNo" disabled right />
		<l-input title="学期" placeholder="请填写学期" :value="data.Semester" disabled right />
		<l-input title="课程名称" placeholder="请填写课程名称" :value="data.LessonName" disabled right />
		<view class="txt">课程简介：</view>
		<view class="remarks">
		  <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
		   <textarea disabled auto-height='true' :value="data.Introduction" />
		</view>
		<l-input title="上课节次" placeholder="请填写上课节次" :value="data.LessonSection" disabled right />
		<l-input title="上课时间" placeholder="请填写上课时间" :value="data.LessonTime" disabled right />
		<l-input title="学分" placeholder="请填写学分" :value="data.StudyScore" disabled right />
		<l-input title="教师姓名" placeholder="请填写教师姓名" :value="data.EmpName" disabled right />
		<!-- <view class="txt">教师简介：</view>
		<view class="bg-white">
		  <l-textarea :value="data.resume" disabled placeholder="输入点什么..." readonly="readonly" />
		</view> -->
		<view class="txt">教师简介：</view>
		<view class="remarks">
		  <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
		   <textarea disabled auto-height='true' :value="data.resume" />
		</view>
		<l-input title="教室名称" placeholder="请填写教室名称" :value="data.ClassRoomName" disabled right />
		<!-- <l-input title="姓名" placeholder="请填写姓名" :value="data.AcademicYearNo" disabled right /> -->
		<l-input title="人数上限" placeholder="请填写人数上限" :value="data.StuNumMax" disabled right />
		<l-input title="已报名人数" placeholder="请填写已报名人数" :value="data.StuNum" disabled right />
		<!-- <view class="btn" @click="fromBtn">报名</view> -->
	</view>
</template>

<script>
export default{
	data() {
		return {
			weekChina: ["一", "二", "三", "四", "五", "六", "日"],
			keyValue: '',
			data: {}
		}
	},
	methods:{
		init() {
			this.keyValue = this.GET_PARAM(); //获取页面传递参数
			console.log(this.keyValue);
			let _this = this;
			_this.LOADING('加载数据中…');
			_this.HTTP_GET('learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form', _this.keyValue, '加载数据时出错').then(res => {
				this.HIDE_LOADING();
				console.log(res);
				_this.data = res.JournalReceive;
			});
		},
	},
	created() {
		this.init()
	}
}
</script>

<style lang="less" scoped>
.txt{
	line-height: 24px;
	font-size: 15px;
	background-color: #fff;
	padding: 10px 0 10px 15px;
}
.page{
	background-color: #fff;
	padding-bottom: 1px;
}
/deep/ .cu-form-group uni-textarea{
	height: auto;
}
.remarks{
	    border-bottom: 0.5px solid #eee;
		padding-bottom: 10px;
}
.remarks textarea{
	width: 100%;
	padding: 0 15px;
}
</style>

