浏览代码

个人修改

luyanan 7 年之前
父节点
当前提交
40d5eeb928

+ 2 - 2
app/html/updataIndustry.html

@ -24,7 +24,7 @@
24 24
				<div class="maincon">
25 25
					<div class="labelbox">
26 26
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title"/>
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title" maxlength="15"/>
28 28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 29
						</div>
30 30
	                    <div class="labelarea">
@ -37,7 +37,7 @@
37 37
			   </div>
38 38
		    </div>
39 39
			<div class="mui-content-padded frmboxNew">
40
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
40
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
41 41
			</div>
42 42
		</div>
43 43
		<script src="../js/public/mui.min.js"></script>

+ 2 - 2
app/html/updateAcad.html

@ -24,7 +24,7 @@
24 24
				<div class="maincon">
25 25
					<div class="labelbox">
26 26
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title"/>
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title" maxlength="15"/>
28 28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 29
						</div>
30 30
	                    <div class="labelarea">
@ -37,7 +37,7 @@
37 37
			   </div>
38 38
		    </div>
39 39
			<div class="mui-content-padded frmboxNew">
40
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
40
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" >保存</button>
41 41
			</div>
42 42
		</div>
43 43
		<script src="../js/public/mui.min.js"></script>

+ 2 - 1
app/html/updateBasic-city.html

@ -7,6 +7,7 @@
7 7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8 8
		<link href="../css/mui.min.css" rel="stylesheet" />
9 9
		<link href="../css/mui.picker.min.css" rel="stylesheet" />
10
		<link href="../css/iconfont.css" rel="stylesheet" />
10 11
		<link href="../css/app.css" rel="stylesheet" />
11 12
		<style>
12 13
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
@ -21,7 +22,7 @@
21 22
		</header>
22 23
		<div class="mui-content">
23 24
			<div class="mui-input-group mainbox" id='currentLocation'>
24
    			<div class="infocontit infocontitM OnetitM">使用当前位置 </div>
25
    			<div class="infocontit infocontitM OnetitM">使用当前位置 <span class="mui-icon iconfont icon-location" style="color:#666;font-size:18px;position:relative;top:2px;"></span></div>
25 26
 		    </div>
26 27
 		    <div class="mui-input-group mainbox">
27 28
	 		    <div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix" id="showCityPicker">

+ 16 - 2
app/html/updateBasic-depart.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
			</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写当前就职的部门"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea> 
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 16 - 2
app/html/updateBasic-email.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写电子邮箱"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" >保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 16 - 2
app/html/updateBasic-org.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="50" placeholder="请填写当前就职的机构"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 16 - 2
app/html/updateBasic-post.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写当前担任的职位"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea> 
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 16 - 2
app/html/updateBasic-tel.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="50" placeholder="请填写手机/办公电话"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 16 - 2
app/html/updateBasic-title.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写最高职称"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span >/20</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" >保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 21 - 3
app/html/updateEdu-edit.html

@ -11,7 +11,21 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
				font-size:14px;
20
			}
14 21
		</style>
22
		<script>
23
			function autoGrow(oField) {
24
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
25
				document.getElementById("tt").value=oField.value;
26
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
28
		</script>
15 29
	</head>
16 30
17 31
	<body>
@ -23,19 +37,23 @@
23 37
			<div class="mui-input-group mainbox">
24 38
				<div class="infocontit infocontitM">学校名称<span class="requiredThis"> *</span></div>
25 39
				<div class="infocon">
26
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的学校(50个字以内)" id="project"></div>  
40
					<textarea class="textareabox simulation textareaboxEmp" id="project" oninput="autoGrow(this)" maxlength="50" placeholder="请填写就读的学校(50个字以内)"></textarea>
41
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
42
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的学校(50个字以内)" id="project"></div>-->  
27 43
				</div>
28 44
		    </div>
29 45
		    <div class="mui-input-group mainbox">
30 46
				<div class="infocontit infocontitM">院系名称</div>
31 47
				<div class="infocon">
32
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的院系(20个字以内)" id="college"></div>   
48
					<textarea class="textareabox simulation textareaboxEmp" id="college" oninput="autoGrow(this)" maxlength="20" placeholder="请填写就读的院系(20个字以内)"></textarea>
49
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的院系(20个字以内)" id="college"></div>-->   
33 50
				</div>
34 51
		    </div>
35 52
		    <div class="mui-input-group mainbox">
36 53
				<div class="infocontit infocontitM">专业名称</div>
37 54
				<div class="infocon">
38
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的专业(20个字以内)" id="major"></div>  
55
					<textarea class="textareabox simulation textareaboxEmp" id="major" oninput="autoGrow(this)" maxlength="20" placeholder="请填写就读的专业(20个字以内)"></textarea>
56
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就读的专业(20个字以内)" id="major"></div>-->  
39 57
				</div>
40 58
		    </div>
41 59
		    <div class="mui-input-group mainbox">

+ 19 - 2
app/html/updateHonor-edit.html

@ -11,7 +11,21 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
				font-size:14px;
20
			}
14 21
		</style>
22
		<script>
23
			function autoGrow(oField) {
24
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
25
				document.getElementById("tt").value=oField.value;
26
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
28
		</script>
15 29
	</head>
16 30
17 31
	<body>
@ -23,7 +37,9 @@
23 37
			<div class="mui-input-group mainbox">
24 38
				<div class="infocontit infocontitM">奖项名称<span class="requiredThis"> *</span></div>
25 39
				<div class="infocon">
26
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写奖项名称(50个字以内)"id="project"></div>  
40
					<textarea class="textareabox simulation textareaboxEmp" id="project" oninput="autoGrow(this)" maxlength="50" placeholder="请填写奖项名称(50个字以内)"></textarea>
41
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
42
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写奖项名称(50个字以内)"id="project"></div>-->  
27 43
				</div>
28 44
		    </div>
29 45
		    <div class="mui-input-group mainbox">
@ -35,7 +51,8 @@
35 51
		    <div class="mui-input-group mainbox">
36 52
				<div class="infocontit infocontitM">获奖描述</div>
37 53
				<div class="infocon">
38
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写获奖描述(200个字以内)" id="descp"></div>  
54
					<textarea class="textareabox simulation textareaboxEmp" id="descp" oninput="autoGrow(this)" maxlength="200" placeholder="请填写获奖描述(200个字以内)" id="descp"></textarea>
55
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写获奖描述(200个字以内)" id="descp"></div>-->  
39 56
				</div>
40 57
		    </div>
41 58
		    <div class="mui-content-padded frmboxNew">

+ 21 - 3
app/html/updateJob-edit.html

@ -11,7 +11,21 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
				font-size:14px;
20
			}
14 21
		</style>
22
		<script>
23
			function autoGrow(oField) {
24
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
25
				document.getElementById("tt").value=oField.value;
26
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
28
		</script>
15 29
	</head>
16 30
17 31
	<body>
@ -23,19 +37,23 @@
23 37
			<div class="mui-input-group mainbox">
24 38
				<div class="infocontit infocontitM">机构名称 <span class="requiredThis"> *</span></div>
25 39
				<div class="infocon">
26
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就职的机构(50个字以内)" id="project"></div>  
40
					<textarea class="textareabox simulation textareaboxEmp" id="project" oninput="autoGrow(this)" maxlength="50" placeholder="请填写就职的机构(50个字以内)"></textarea>
41
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
42
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就职的机构(50个字以内)" id="project"></div>-->  
27 43
				</div>
28 44
		    </div>
29 45
		    <div class="mui-input-group mainbox">
30 46
				<div class="infocontit infocontitM">部门名称</div>
31 47
				<div class="infocon">
32
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就职的部门(20个字以内)" id='descp'></div> 
48
					<textarea class="textareabox simulation textareaboxEmp" id="descp" oninput="autoGrow(this)" maxlength="20" placeholder="请填写就职的部门(20个字以内)"></textarea>
49
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写就职的部门(20个字以内)" id='descp'></div>--> 
33 50
				</div>
34 51
		    </div>
35 52
		    <div class="mui-input-group mainbox">
36 53
				<div class="infocontit infocontitM">职位 <span class="requiredThis"> *</span></div>
37 54
				<div class="infocon">
38
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写担任的职位(20个字以内)" id="title"></div>  
55
					<textarea class="textareabox simulation textareaboxEmp" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写担任的职位(20个字以内)"></textarea>
56
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写担任的职位(20个字以内)" id="title"></div>-->  
39 57
				</div>
40 58
		    </div>
41 59
		    <div class="mui-input-group mainbox">

+ 16 - 2
app/html/updateProfile.html

@ -11,7 +11,20 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14 20
		</style>
21
		<script>
22
			function autoGrow(oField) {
23
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
24
				document.getElementById("tt").value=oField.value;
25
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
26
			}
27
		</script>
15 28
	</head>
16 29
17 30
	<body>
@ -22,14 +35,15 @@
22 35
		<div class="mui-content">
23 36
			<div class="mui-input-group mainbox">
24 37
				<div class="infocon">
25
					<div class="textareabox" contenteditable="true" id="title"></div> 
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="500" placeholder="个人简介"></textarea>
39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
26 40
				</div>
27 41
		    </div>
28 42
			<div class="limitBox">
29 43
				<p class="limitNum"><span id="fontAdd">0</span>/500</p>
30 44
			</div>
31 45
			<div class="mui-content-padded frmboxNew">
32
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
46
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
33 47
			</div>
34 48
		</div>
35 49
		<script src="../js/public/mui.min.js"></script>

+ 19 - 2
app/html/updateProject-edit.html

@ -11,7 +11,21 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
				font-size:14px;
20
			}
14 21
		</style>
22
		<script>
23
			function autoGrow(oField) {
24
				document.getElementById("tt").style.width=oField.scrollWidth+"px";
25
				document.getElementById("tt").value=oField.value;
26
				oField.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
28
		</script>
15 29
	</head>
16 30
17 31
	<body>
@ -23,7 +37,9 @@
23 37
			<div class="mui-input-group mainbox">
24 38
				<div class="infocontit infocontitM">项目名称 <span class="requiredThis" > *</span></div>
25 39
				<div class="infocon">
26
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写项目名称(50个字以内)" id="project"></div> 
40
					<textarea class="textareabox simulation textareaboxEmp" id="project" oninput="autoGrow(this)" maxlength="50" placeholder="请填写项目名称(50个字以内)"></textarea>
41
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
42
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写项目名称(50个字以内)" id="project"></div>--> 
27 43
				</div>
28 44
		    </div>
29 45
		    <div class="mui-input-group mainbox">
@ -41,7 +57,8 @@
41 57
		    <div class="mui-input-group mainbox">
42 58
				<div class="infocontit infocontitM">项目描述</div>
43 59
				<div class="infocon">
44
					<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写项目描述(200个字以内)" id="descp"></div> 
60
					<textarea class="textareabox simulation textareaboxEmp" id="descp" oninput="autoGrow(this)" maxlength="200" placeholder="请填写项目描述(200个字以内)" id="descp"></textarea>
61
					<!--<div class="textareabox textareaboxEmp" contenteditable="true" placeholder="请填写项目描述(200个字以内)" id="descp"></div>--> 
45 62
				</div>
46 63
		    </div>
47 64
		    

+ 3 - 5
app/html/updateResearch.html

@ -24,14 +24,12 @@
24 24
				<div class="maincon">
25 25
					<div class="labelbox">
26 26
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料"/>
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" maxlength="30"/>
28 28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 29
						</div>
30 30
	                    <div class="labelarea">
31 31
	                    	<ul class="labelshow labelshowT" style="margin-right: -10px;">
32
					       		<!--<li><span class='numThis mui-pull-left'>245</span><span class='otsave mui-pull-left'>腐蚀防护腐蚀防护石墨烯腐蚀防护纳米材料料</span><span class='closeThis mui-pull-right'>删除</span></li>
33
					       		<li><span class='numThis mui-pull-left'>2</span><span class='otsave mui-pull-left'>腐蚀</span><span class='closeThis mui-pull-right'>删除</span></li>
34
					       		<li><span class='numThis mui-pull-left'>2</span><span class='otsave mui-pull-left'>腐蚀腐蚀腐蚀</span><span class='closeThis mui-pull-right'>删除</span></li>-->
32
					       		
35 33
					       	</ul>
36 34
	                    </div>
37 35
						
@ -39,7 +37,7 @@
39 37
			   </div>
40 38
		    </div>
41 39
			<div class="mui-content-padded frmboxNew">
42
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive" disabled="">保存</button>
40
				<button id="login" class="mui-btn mui-btn-block frmbtn frmactive">保存</button>
43 41
			</div>
44 42
		</div>
45 43
		<script src="../js/public/mui.min.js"></script>

+ 2 - 17
app/js/updataIndustry.js

@ -25,9 +25,6 @@ mui.ready(function() {
25 25
		}
26 26
		if(ws.industry) {
27 27
			subjectShow(ws.industry);
28
			document.getElementById("login").removeAttribute("disabled");
29
		}else{
30
			document.getElementById("login").setAttribute("disabled","true");
31 28
		}
32 29

33 30
		function trim(str) { //删除左右两端的空格
@ -37,12 +34,6 @@ mui.ready(function() {
37 34
		mui(".labelshow").on("tap", "span", function() {
38 35
			var val = this.parentNode;
39 36
			document.getElementsByClassName('labelshow')[0].removeChild(val);
40
			var lilength=document.getElementsByTagName("li").length;
41
				if(lilength>0) {
42
					document.getElementById("login").removeAttribute("disabled");
43
				}else if(lilength==0) {
44
					document.getElementById("login").setAttribute("disabled","true");
45
				}
46 37
		});
47 38
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
48 39
			var addContent = document.getElementsByTagName('input')[0].value;
@ -60,20 +51,14 @@ mui.ready(function() {
60 51
						return;
61 52
					}
62 53
				}
63
				if(content.length > 10) {
64
					plus.nativeUI.toast("行业领域不得超过10个字", toastStyle);
54
				if(content.length > 15) {
55
					plus.nativeUI.toast("行业领域不得超过15个字", toastStyle);
65 56
					return;
66 57
				}
67 58
				var node = document.createElement("li");
68 59
				node.innerHTML = content + '<span class="closeThis">删除</span>';
69 60
				document.getElementsByClassName("labelshow")[0].appendChild(node);
70 61
				document.getElementsByTagName('input')[0].value = "";
71
				var lilength=document.getElementsByTagName("li").length;
72
				if(lilength>0) {
73
					document.getElementById("login").removeAttribute("disabled");
74
				}else if(lilength==0) {
75
					document.getElementById("login").setAttribute("disabled","true");
76
				}
77 62
			} else {
78 63
				plus.nativeUI.toast("请填写您的行业领域", toastStyle);
79 64
			}

+ 1 - 15
app/js/updateAcad.js

@ -24,9 +24,6 @@ mui.ready(function() {
24 24
		}
25 25
		if(ws.subject) {
26 26
			subjectShow(ws.subject);
27
			document.getElementById("login").removeAttribute("disabled");
28
		}else{
29
			document.getElementById("login").setAttribute("disabled","true");
30 27
		}
31 28

32 29
		function trim(str) { //删除左右两端的空格
@ -36,12 +33,6 @@ mui.ready(function() {
36 33
		mui(".labelshow").on("tap", "span", function() {
37 34
			var val = this.parentNode;
38 35
			document.getElementsByClassName('labelshow')[0].removeChild(val);
39
			var lilength=document.getElementsByTagName("li").length;
40
				if(lilength>0) {
41
					document.getElementById("login").removeAttribute("disabled");
42
				}else if(lilength==0) {
43
					document.getElementById("login").setAttribute("disabled","true");
44
				}
45 36
		});
46 37
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
47 38
			var addContent = document.getElementsByTagName('input')[0].value;
@ -67,12 +58,7 @@ mui.ready(function() {
67 58
				node.innerHTML = content + '<span class="closeThis">删除</span>';
68 59
				document.getElementsByClassName("labelshow")[0].appendChild(node);
69 60
				document.getElementsByTagName('input')[0].value = "";
70
				var lilength=document.getElementsByTagName("li").length;
71
				if(lilength>0) {
72
					document.getElementById("login").removeAttribute("disabled");
73
				}else if(lilength==0) {
74
					document.getElementById("login").setAttribute("disabled","true");
75
				}
61
				
76 62
			} else {
77 63
				plus.nativeUI.toast("请填写您的学术领域", toastStyle);
78 64
			}

+ 3 - 2
app/js/updateBasic-city.js

@ -1,7 +1,7 @@
1 1
mui.ready(function() {
2 2
	mui.plusReady(function() {
3 3
		var web = plus.webview.currentWebview();
4
		var city, province;
4
		var city, province,suc=1;
5 5
		
6 6
		var oadd={
7 7
			
@ -14,6 +14,7 @@ mui.ready(function() {
14 14
		}, function(e) {
15 15
			plus.nativeUI.closeWaiting();
16 16
			web.show("slide-in-right", 150);
17
			suc=0;
17 18
		});
18 19
		
19 20
		var userid = plus.storage.getItem('userid');
@ -80,9 +81,9 @@ mui.ready(function() {
80 81
			});
81 82
		}
82 83
		document.getElementById('currentLocation').addEventListener("tap",function(){
84
			if(suc==0) return;
83 85
			cityResult.innerText = oadd.address + "-" + oadd.province;
84 86
			city=oadd.address;
85
			province=oadd.province
86 87
		})
87 88
	})
88 89
})

+ 8 - 13
app/js/updateBasic-depart.js

@ -6,20 +6,15 @@ mui.ready(function() {
6 6
		function person() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9
			title.innerHTML = web.department;
9
			title.value = web.department;
10 10
			if(web.department.length) {
11 11
				document.getElementById("fontAdd").innerHTML = web.department.length;
12 12
				document.getElementById("login").removeAttribute("disabled");
13 13
			}
14
			document.getElementById("title").addEventListener("keyup", function() {
15
				if(this.innerHTML.length > 20) {
16
					this.innerHTML = this.innerHTML.substring(0, 20);
17
				}else if(this.innerHTML.length>0) {
18
					document.getElementById("login").removeAttribute("disabled");
19
				}else if(this.innerHTML.length==0) {
20
					document.getElementById("login").setAttribute("disabled","true");
21
				}
22
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
14
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17
					document.getElementById("fontAdd").innerHTML = this.value.length;
23 18
			})
24 19
		}
25 20
		person();
@ -28,15 +23,15 @@ mui.ready(function() {
28 23
		})
29 24
		function savePro() {
30 25
			var mess = {};
31
			if(document.getElementById("title").innerHTML.length) {
32
				if(document.getElementById("title").innerHTML.length>20) {
26
			if(document.getElementById("title").value.length) {
27
				if(document.getElementById("title").value.length>20) {
33 28
					plus.nativeUI.toast("所属部门不得超过20个字", toastStyle);
34 29
					return;
35 30
				}
36 31
			}
37 32
			mess.name = web.name;
38 33
			mess.orgName = web.orgName;
39
			mess.department = document.getElementById("title").innerHTML;
34
			mess.department = document.getElementById("title").value;
40 35
			mess.title = web.title;
41 36
			mess.office =web.office;	
42 37
			mess.address = web.address;

+ 13 - 16
app/js/updateBasic-email.js

@ -6,27 +6,22 @@ mui.ready(function() {
6 6
		function person() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9
			title.innerHTML = web.email;
9
			title.value = web.email;
10 10
			if(web.email.length) {
11 11
				document.getElementById("fontAdd").innerHTML = web.email.length;
12
				document.getElementById("login").removeAttribute("disabled");
12
				
13 13
			}
14
			document.getElementById("title").addEventListener("keyup", function() {
15
				if(this.innerHTML.length > 50) {
16
					this.innerHTML = this.innerHTML.substring(0, 50);
17
				}else if(this.innerHTML.length>0) {
18
					document.getElementById("login").removeAttribute("disabled");
19
				}else if(this.innerHTML.length==0) {
20
					document.getElementById("login").setAttribute("disabled","true");
21
				}
22
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
14
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17
					document.getElementById("fontAdd").innerHTML = this.value.length;
23 18
			})
24 19
		}
25 20
		person();
26 21
		/*校验用户账号*/
27 22
		function userEmail() {
28 23
			var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
29
			if(!gunf.test(trim(document.getElementById("title").innerHTML))) {
24
			if(!gunf.test(trim(document.getElementById("title").value))) {
30 25
				plus.nativeUI.toast("联系邮箱格式有误,请检查后重新填写", toastStyle);
31 26
				return 0;
32 27
			}
@ -36,15 +31,17 @@ mui.ready(function() {
36 31
			return str.replace(/(^\s*)|(\s*$)/g, "");  
37 32
		}
38 33
		document.getElementById("login").addEventListener("tap",function(){
39
			if(userEmail()==0){
34
			if(document.getElementById("title").value.length) {
35
				if(userEmail()==0){
40 36
				return;
37
			}
41 38
			}
42 39
			 savePro();
43 40
		})
44 41
		function savePro() {
45 42
			var mess = {};
46
			if(document.getElementById("title").innerHTML.length) {
47
				if(document.getElementById("title").innerHTML.length>20) {
43
			if(document.getElementById("title").value.length) {
44
				if(document.getElementById("title").value.length>20) {
48 45
					plus.nativeUI.toast("联系邮箱不得超过50个字", toastStyle);
49 46
					return;
50 47
				}
@ -56,7 +53,7 @@ mui.ready(function() {
56 53
			mess.office =web.office;	
57 54
			mess.address = web.address;
58 55
			mess.province=web.province;
59
			mess.email = document.getElementById("title").innerHTML;
56
			mess.email = document.getElementById("title").value;
60 57
			mess.phone =web.phone;			
61 58
			mess.id = userid;
62 59
			var mess1 = JSON.stringify(mess);

+ 7 - 14
app/js/updateBasic-org.js

@ -24,25 +24,18 @@ mui.ready(function() {
24 24
		function person() {
25 25
			plus.nativeUI.closeWaiting();
26 26
			var title = document.getElementById("title");
27
			title.innerHTML = web.orgName;
27
			title.value = web.orgName;
28 28
			if(web.orgName.length) {
29 29
				document.getElementById("fontAdd").innerHTML = web.orgName.length;
30 30
				document.getElementById("login").removeAttribute("disabled");
31 31
			}
32
			document.getElementById("title").addEventListener("keyup", function() {
33
				if(this.innerHTML.length > 20) {
34
					this.innerHTML = this.innerHTML.substring(0, 20);
35
				}else if(this.innerHTML.length>0) {
36
					document.getElementById("login").removeAttribute("disabled");
37
				}else if(this.innerHTML.length==0) {
38
					document.getElementById("login").setAttribute("disabled","true");
39
				}
40
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
32
			document.getElementById("title").addEventListener("input", function() {
33
					document.getElementById("fontAdd").innerHTML = this.value.length;
41 34
			})
42 35
		}
43 36
		person();
44 37
		document.getElementById("login").addEventListener("tap",function(){
45
			if(web.orgName==document.getElementById("title").innerHTML) {
38
			if(web.orgName==document.getElementById("title").value) {
46 39
				mui.back();
47 40
				return;
48 41
			}
@ -61,8 +54,8 @@ mui.ready(function() {
61 54
		
62 55
		function savePro() {
63 56
			var mess = {};
64
			if(document.getElementById("title").innerHTML.length) {
65
				if(document.getElementById("title").innerHTML.length>20) {
57
			if(document.getElementById("title").value.length) {
58
				if(document.getElementById("title").value.length>50) {
66 59
					plus.nativeUI.toast("所在机构不得超过50个字", toastStyle);
67 60
					return;
68 61
				}
@ -71,7 +64,7 @@ mui.ready(function() {
71 64
				upStatus();
72 65
			}
73 66
			mess.name = web.name;
74
			mess.orgName = document.getElementById("title").innerHTML;
67
			mess.orgName = document.getElementById("title").value;
75 68
			mess.department =web.department;
76 69
			mess.title = web.title;
77 70
			mess.office =web.office;	

+ 8 - 13
app/js/updateBasic-post.js

@ -6,21 +6,16 @@ mui.ready(function() {
6 6
		function person() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9
			title.innerHTML = web.office;
9
			title.value = web.office;
10 10
			console.log(JSON.stringify(web));
11 11
			if(web.office.length) {
12 12
				document.getElementById("fontAdd").innerHTML = web.office.length;
13 13
				document.getElementById("login").removeAttribute("disabled");
14 14
			}
15
			document.getElementById("title").addEventListener("keyup", function() {
16
				if(this.innerHTML.length > 20) {
17
					this.innerHTML = this.innerHTML.substring(0, 20);
18
				}else if(this.innerHTML.length>0) {
19
					document.getElementById("login").removeAttribute("disabled");
20
				}else if(this.innerHTML.length==0) {
21
					document.getElementById("login").setAttribute("disabled","true");
22
				}
23
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
15
			document.getElementById("title").addEventListener("input", function() {
16
				
17
					//this.value = this.value.substring(0, 20);
18
					document.getElementById("fontAdd").innerHTML = this.value.length;
24 19
			})
25 20
		}
26 21
		person();
@ -29,8 +24,8 @@ mui.ready(function() {
29 24
		})
30 25
		function savePro() {
31 26
			var mess = {};
32
			if(document.getElementById("title").innerHTML.length) {
33
				if(document.getElementById("title").innerHTML.length>20) {
27
			if(document.getElementById("title").value.length) {
28
				if(document.getElementById("title").value.length>20) {
34 29
					plus.nativeUI.toast("职位不得超过20个字", toastStyle);
35 30
					return;
36 31
				}
@ -39,7 +34,7 @@ mui.ready(function() {
39 34
			mess.orgName = web.orgName;
40 35
			mess.department = web.department;
41 36
			mess.title = web.title;
42
			mess.office =document.getElementById("title").innerHTML;	
37
			mess.office =document.getElementById("title").value;	
43 38
			mess.address = web.address;
44 39
			mess.province=web.province;
45 40
			mess.email = web.email;

+ 10 - 15
app/js/updateBasic-tel.js

@ -6,20 +6,15 @@ mui.ready(function() {
6 6
		function person() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9
			title.innerHTML = web.phone;
10
			if(web.title.length) {
11
				document.getElementById("fontAdd").innerHTML = web.title.length;
9
			title.value = web.phone;
10
			if(web.phone.length) {
11
				document.getElementById("fontAdd").innerHTML = web.phone.length;
12 12
				document.getElementById("login").removeAttribute("disabled");
13 13
			}
14
			document.getElementById("title").addEventListener("keyup", function() {
15
				if(this.innerHTML.length > 20) {
16
					this.innerHTML = this.innerHTML.substring(0, 20);
17
				}else if(this.innerHTML.length>0) {
18
					document.getElementById("login").removeAttribute("disabled");
19
				}else if(this.innerHTML.length==0) {
20
					document.getElementById("login").setAttribute("disabled","true");
21
				}
22
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
14
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17
					document.getElementById("fontAdd").innerHTML = this.value.length;
23 18
			})
24 19
		}
25 20
		person();
@ -28,8 +23,8 @@ mui.ready(function() {
28 23
		})
29 24
		function savePro() {
30 25
			var mess = {};
31
			if(document.getElementById("title").innerHTML.length) {
32
				if(document.getElementById("title").innerHTML.length>20) {
26
			if(document.getElementById("title").value.length) {
27
				if(document.getElementById("title").value.length>50) {
33 28
					plus.nativeUI.toast("联系方式不得超过50个字", toastStyle);
34 29
					return;
35 30
				}
@ -42,7 +37,7 @@ mui.ready(function() {
42 37
			mess.address = web.address;
43 38
			mess.email = web.email;
44 39
			mess.province=web.province;
45
			mess.phone =document.getElementById("title").innerHTML;			
40
			mess.phone =document.getElementById("title").value;			
46 41
			mess.id = userid;
47 42
			var mess1 = JSON.stringify(mess);
48 43
			console.log(JSON.stringify(mess))

+ 6 - 13
app/js/updateBasic-title.js

@ -6,20 +6,14 @@ mui.ready(function() {
6 6
		function person() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9
			title.innerHTML = web.title;
9
			title.value = web.title;
10 10
			if(web.title.length) {
11 11
				document.getElementById("fontAdd").innerHTML = web.title.length;
12
				document.getElementById("login").removeAttribute("disabled");
13 12
			}
14
			document.getElementById("title").addEventListener("keyup", function() {
15
				if(this.innerHTML.length > 20) {
16
					this.innerHTML = this.innerHTML.substring(0, 20);
17
				}else if(this.innerHTML.length>0) {
18
					document.getElementById("login").removeAttribute("disabled");
19
				}else if(this.innerHTML.length==0) {
20
					document.getElementById("login").setAttribute("disabled","true");
21
				}
22
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
13
			document.getElementById("title").addEventListener("input", function() {
14
				
15
					//this.value = this.value.substring(0, 20);
16
					document.getElementById("fontAdd").innerHTML = this.value.length;
23 17
			})
24 18
		}
25 19
		person();
@ -37,7 +31,7 @@ mui.ready(function() {
37 31
			mess.name = web.name;
38 32
			mess.orgName = web.orgName;
39 33
			mess.department = web.department;
40
			mess.title = document.getElementById("title").innerHTML;
34
			mess.title = document.getElementById("title").value;
41 35
			mess.office =web.office;	
42 36
			mess.address = web.address;
43 37
			mess.province=web.province;
@ -45,7 +39,6 @@ mui.ready(function() {
45 39
			mess.phone =web.phone;			
46 40
			mess.id = userid;
47 41
			var mess1 = JSON.stringify(mess);
48
			console.log(JSON.stringify(mess))
49 42
			$.ajax({
50 43
				"url": baseUrl + '/ajax/professor',
51 44
				"type": "PUT",

+ 7 - 1
app/js/updateBasic.js

@ -30,24 +30,28 @@ mui.ready(function() {
30 30
							person.orgName=$data.orgName;
31 31
						}else{
32 32
							person.orgName="";
33
							document.getElementById('orgName').innerHTML="请填写当前就职的机构";
33 34
						}
34 35
						if($data.department) {
35 36
							document.getElementById("department").innerHTML = $data.department;
36 37
							person.department=$data.department;
37 38
						}else{
39
							document.getElementById("department").innerHTML = "请填写当前就职的部门";
38 40
							person.department='';
39 41
						}
40 42
						if($data.title) {
41 43
							document.getElementById("title").innerHTML= $data.title;
42 44
							person.title=$data.title;
43 45
						}else{
46
							document.getElementById("title").innerHTML= "请填写最高职称";
44 47
							person.title=""
45 48
						}
46 49
						if($data.office) {
47 50
							document.getElementById("office").innerHTML = $data.office;
48 51
							person.office=$data.office;
49 52
						}else{
50
							person.office=""
53
							person.office="";
54
							document.getElementById("office").innerHTML = "请填写当前担任的职位";
51 55
						}
52 56
						
53 57
						if($data.address) {
@ -65,12 +69,14 @@ mui.ready(function() {
65 69
							document.getElementById("mail").innerHTML = $data.email;
66 70
							person.email=$data.email;
67 71
						}else{
72
							document.getElementById("mail").innerHTML = "请填写电子邮箱";
68 73
							person.email="";
69 74
						}
70 75
						if($data.phone) {
71 76
							document.getElementById("phone").innerHTML = $data.phone;
72 77
							person.phone=$data.phone;
73 78
						}else{
79
							document.getElementById("phone").innerHTML = "请填写手机/办公电话";
74 80
							person.phone = "";
75 81
						}
76 82
						person.orgAuth=$data.orgAuth

+ 28 - 19
app/js/updateEdu-edit.js

@ -24,17 +24,26 @@ mui.ready(function() {
24 24
			oDel.classList.add("displayNone");
25 25
		} else {
26 26
			oLogin.removeAttribute("disabled");
27
			project.innerHTML = (ws.data.school) ? ws.data.school : "";
28
			college.innerHTML = (ws.data.college) ? ws.data.college : "请填写就读的院系(20个字以内)";
29
			major.innerHTML = (ws.data.major) ? ws.data.major : "请填写就读的专业(20个字以内)";
27
			document.getElementById("tt").value=ws.data.school;
28
			project.style.height=document.getElementById("tt").scrollHeight+"px";
29
			project.value = (ws.data.school) ? ws.data.school : "";
30
			if(ws.data.college) {
31
				document.getElementById("tt").value=ws.data.college;
32
			college.style.height=document.getElementById("tt").scrollHeight+"px";
33
			}
34
			college.value = (ws.data.college) ? ws.data.college : "";
35
			if(ws.data.major) {
36
				document.getElementById("tt").value=ws.data.major;
37
			major.style.height=document.getElementById("tt").scrollHeight+"px";
38
			}
39
			major.value = (ws.data.major) ? ws.data.major : "";
30 40
			degreeResult.innerHTML = (ws.data.degree) ? oDe[ws.data.degree] : "请选择获得的学位";
31 41
			yearResult.innerHTML =(ws.data.year) ? ((ws.data.year!="至今 ")?(ws.data.year+"年"):"至今") : "请选择毕业时间";
32 42
		}
33
		project.addEventListener("keyup", function() {
34
			console.log(this.innerHTML);
35
			if(this.innerHTML.length > 0) {
43
		project.addEventListener("input", function() {
44
			if(this.value.length > 0) {
36 45
				document.getElementById("login").removeAttribute("disabled");
37
			} else if(this.innerHTML.length == 0) {
46
			} else if(this.value.length == 0) {
38 47
				document.getElementById("login").setAttribute("disabled", "true");
39 48
			}
40 49
		})
@ -43,7 +52,7 @@ mui.ready(function() {
43 52
			return str.replace(/(^\s*)|(\s*$)/g, "");  
44 53
		}
45 54
		oLogin.addEventListener("tap", function() {
46
			var projectL = trim(project.innerHTML);
55
			var projectL = trim(project.value);
47 56
			var startMonthL = yearResult.innerHTML;
48 57
			if(!projectL.length) {
49 58
				if(projectL=="请填写就读的学校(50个字以内)") {
@ -56,15 +65,15 @@ mui.ready(function() {
56 65
				plus.nativeUI.toast("学校名称不得超过50个字");
57 66
				return;
58 67
			}
59
			if(college.innerHTML!="请填写就读的院系(20个字以内)") {
60
				if(college.innerHTML.length>20) {
68
			if(college.value!="请填写就读的院系(20个字以内)") {
69
				if(college.value.length>20) {
61 70
					plus.nativeUI.toast("院系名称不得超过20个字");
62 71
					return;
63 72
				}
64 73
				
65 74
			}
66
			if(major.innerHTML!="请填写就读的专业(20个字以内)") {
67
				if(college.innerHTML.length>20) {
75
			if(major.value!="请填写就读的专业(20个字以内)") {
76
				if(college.value.length>20) {
68 77
					plus.nativeUI.toast("专业名称不得超过20个字");
69 78
					return;
70 79
				}
@ -77,7 +86,7 @@ mui.ready(function() {
77 86
		function savePro() {
78 87
			var $data = {};
79 88
			$data.professorId = userid;
80
			$data.school = project.innerHTML;
89
			$data.school = project.value;
81 90
			if(yearResult.innerHTML.length!=7) {
82 91
				if(yearResult.innerHTML.length==5) {	
83 92
					$data.year = yearResult.innerHTML.substring(0, 4);
@ -96,15 +105,15 @@ mui.ready(function() {
96 105
			}else if(degreeResult.innerHTML=="其他") {
97 106
				$data.degree=5;
98 107
			}
99
			if(college.innerHTML!="请填写就读的院系(20个字以内)") {
100
				if(college.innerHTML.length>0) {
101
					$data.college=college.innerHTML;
108
			if(college.value!="请填写就读的院系(20个字以内)") {
109
				if(college.value.length>0) {
110
					$data.college=college.value;
102 111
				}
103 112
				
104 113
			}
105
			if(major.innerHTML!="请填写就读的专业(20个字以内)") {
106
				if(major.innerHTML.length>0) {
107
					$data.major=major.innerHTML;
114
			if(major.value!="请填写就读的专业(20个字以内)") {
115
				if(major.value.length>0) {
116
					$data.major=major.value;
108 117
				}
109 118
				
110 119
			}

+ 17 - 10
app/js/updateHonor-edit.js

@ -13,14 +13,21 @@ mui.ready(function() {
13 13
			oDel.classList.add("displayNone");
14 14
		} else {
15 15
			oLogin.removeAttribute("disabled");
16
			project.innerHTML = (ws.data.name) ? ws.data.name : "";
16
			document.getElementById("tt").value=ws.data.name;
17
			project.style.height=document.getElementById("tt").scrollHeight+"px";
18
			project.value = (ws.data.name) ? ws.data.name : "";
17 19
			yearResult.innerHTML =(ws.data.year) ? ws.data.year+"年" : "请选择获奖时间";
18
			descp.innerHTML = (ws.data.descp) ? ws.data.descp : "请填写获奖描述(200个字以内)";
20
			if(ws.data.descp) {
21
				document.getElementById("tt").style.width=document.getElementById("descp").scrollWidth+"px";
22
				document.getElementById("tt").value=ws.data.descp;
23
				descp.style.height=document.getElementById("tt").scrollHeight+"px";
24
			}
25
			descp.value = (ws.data.descp) ? ws.data.descp : "";
19 26
		}
20
		project.addEventListener("keyup", function() {
21
			if(this.innerHTML.length > 0) {
27
		project.addEventListener("input", function() {
28
			if(this.value.length > 0) {
22 29
				document.getElementById("login").removeAttribute("disabled");
23
			} else if(this.innerHTML.length == 0) {
30
			} else if(this.value.length == 0) {
24 31
				document.getElementById("login").setAttribute("disabled", "true");
25 32
			}
26 33
		})
@ -29,8 +36,8 @@ mui.ready(function() {
29 36
			return str.replace(/(^\s*)|(\s*$)/g, "");  
30 37
		}
31 38
		oLogin.addEventListener("tap", function() {
32
			var projectL = trim(project.innerHTML);
33
			var descpL = trim(descp.innerHTML);
39
			var projectL = trim(project.value);
40
			var descpL = trim(descp.value);
34 41
			var startMonthL = yearResult.innerHTML;
35 42
			if(!projectL.length) {
36 43
				plus.nativeUI.toast("“请填写奖项名称");
@ -51,12 +58,12 @@ mui.ready(function() {
51 58
		function savePro() {
52 59
			var $data = {};
53 60
			$data.professorId = userid;
54
			$data.name = project.innerHTML;
61
			$data.name = project.value;
55 62
			if(yearResult.innerHTML.length!=7) {
56 63
					$data.year = yearResult.innerHTML.substring(0, 4);
57 64
			}
58
			if(descp.innerHTML!="请填写获奖描述(200个字以内)")
59
			$data.descp = descp.innerHTML;
65
			if(descp.value!="请填写获奖描述(200个字以内)")
66
			$data.descp = descp.value;
60 67
			if(ws.data) {
61 68
				$data.id = ws.data.id;
62 69
			}

+ 28 - 11
app/js/updateJob-edit.js

@ -13,14 +13,24 @@ mui.ready(function() {
13 13
		var descp = document.getElementById("descp");
14 14
		if(!ws.data) {
15 15
			oDel.classList.add("displayNone");
16
			oLogin.removeAttribute("disabled");
16
			
17 17
		} else {
18 18
			oLogin.removeAttribute("disabled");
19
			project.innerHTML = (ws.data.company) ? ws.data.company : "";
19
			document.getElementById("tt").value=ws.data.company;
20
			project.style.height=document.getElementById("tt").scrollHeight+"px";
21
			project.value = ws.data.company;
20 22
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
21 23
			stopMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(timeT(ws.data).indexOf("-") + 1, timeT(ws.data).length) : "请选择结束时间";
22
			descp.innerHTML = (ws.data.department) ? ws.data.department : "";
23
			otitle.innerHTML = (ws.data.title) ? ws.data.title : "";
24
			if(ws.data.department) {
25
				document.getElementById("tt").value=ws.data.department;
26
			descp.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
28
			descp.value = (ws.data.department) ? ws.data.department : "";
29
			if(ws.data.title) {
30
				document.getElementById("tt").value=ws.data.title;
31
			otitle.style.height=document.getElementById("tt").scrollHeight+"px";
32
			}
33
			otitle.value = (ws.data.title) ? ws.data.title : "";
24 34
		}
25 35

26 36
		function timeT(obj) {
@ -57,11 +67,11 @@ mui.ready(function() {
57 67
			return str.replace(/(^\s*)|(\s*$)/g, "");  
58 68
		}
59 69
		oLogin.addEventListener("tap", function() {
60
			var projectL = trim(project.innerHTML);
61
			var descpL = trim(descp.innerHTML);
70
			var projectL = trim(project.value);
71
			var descpL = trim(descp.value);
62 72
			var startMonthL = startMonth.innerHTML;
63 73
			var stopMonthL = stopMonth.innerHTML;
64
			var ti=otitle.innerHTML;
74
			var ti=otitle.value;
65 75
			if(!projectL.length) {
66 76
				plus.nativeUI.toast("请填写机构名称");
67 77
				return;
@ -101,7 +111,7 @@ mui.ready(function() {
101 111
		function savePro() {
102 112
			var $data = {};
103 113
			$data.professorId = userid;
104
			$data.company = project.innerHTML;
114
			$data.company = project.value;
105 115
			if(startMonth.innerHTML) {
106 116
				if(startMonth.innerHTML.length != 7) {
107 117
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
@ -116,8 +126,8 @@ mui.ready(function() {
116 126

117 127
				}
118 128
			}
119
			$data.title=otitle.innerHTML;
120
			$data.department = descp.innerHTML;
129
			$data.title=otitle.value;
130
			$data.department = descp.value;
121 131
			if(ws.data) {
122 132
				$data.id = ws.data.id;
123 133
			}
@ -171,7 +181,7 @@ mui.ready(function() {
171 181
							});
172 182
						mui.back();
173 183
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
174
							mui.fire(Page, 'newId', {
184
							titlemui.fire(Page, 'newId', {
175 185
								rd: 1
176 186
							});
177 187
					}
@ -181,5 +191,12 @@ mui.ready(function() {
181 191
				}
182 192
			});
183 193
		}
194
		mui(document).on("input","#project,#title",function(){
195
			if(project.value!=""&&otitle.value!=""){
196
				oLogin.removeAttribute("disabled");
197
			}else{
198
				oLogin.setAttribute("disabled", "true");
199
			}
200
		})
184 201
	});
185 202
})

+ 11 - 14
app/js/updateProfile.js

@ -7,20 +7,17 @@ mui.ready(function() {
7 7
		function person() {
8 8
			plus.nativeUI.closeWaiting();
9 9
			var title = document.getElementById("title");
10
			title.innerHTML = web.descp;
10
				document.getElementById("tt").style.width=document.getElementById("title").scrollWidth+"px";
11
				document.getElementById("tt").value=web.descp;
12
				document.getElementById("title").style.height=document.getElementById("tt").scrollHeight+"px";
13
			title.value = web.descp;
11 14
			if(web.descp.length) {
12 15
				document.getElementById("fontAdd").innerHTML = web.descp.length;
13
				document.getElementById("login").removeAttribute("disabled");
14 16
			}
15
			document.getElementById("title").addEventListener("keyup", function() {
16
				if(this.innerHTML.length > 500) {
17
					this.innerHTML = this.innerHTML.substring(0, 500);
18
				}else if(this.innerHTML.length>0) {
19
					document.getElementById("login").removeAttribute("disabled");
20
				}else if(this.innerHTML.length==0) {
21
					document.getElementById("login").setAttribute("disabled","true");
22
				}
23
				document.getElementById("fontAdd").innerHTML = this.innerHTML.length;
17
			document.getElementById("title").addEventListener("input", function() {
18
				
19
					//this.value = this.value.substring(0, 20);
20
					document.getElementById("fontAdd").innerHTML = this.value.length;
24 21
			})
25 22
		}
26 23
		person();
@ -28,14 +25,14 @@ mui.ready(function() {
28 25
			 savePro();
29 26
		})
30 27
		function savePro() {
31
			if(document.getElementById("title").innerHTML.length>500) {
28
			if(document.getElementById("title").value.length>500) {
32 29
				plus.nativeUI.toast("个人简介不得超过500个字", toastStyle);
33 30
				return;
34 31
			}
35 32
			mui.ajax(baseUrl + '/ajax/professor/descp', {
36 33
				data: {
37 34
					"id": userid,
38
					"descp": document.getElementById("title").innerHTML
35
					"descp": document.getElementById("title").value
39 36
				},
40 37
				dataType: 'json', //数据格式类型
41 38
				async: false,
@ -46,7 +43,7 @@ mui.ready(function() {
46 43
						mui.back();
47 44
						var web = plus.webview.getWebviewById("userInforUpdate.html");
48 45
							mui.fire(web, "newId",{
49
									obre: document.getElementById("title").innerHTML
46
									obre: document.getElementById("title").value
50 47
								});
51 48
					}
52 49
				},

+ 16 - 10
app/js/updateProject-edit.js

@ -13,17 +13,23 @@ mui.ready(function() {
13 13
		if(!ws.data) {
14 14
			oDel.classList.add("displayNone");
15 15
		} else {
16
			console.log(JSON.stringify(ws.data));
17 16
			oLogin.removeAttribute("disabled");
18
			project.innerHTML = (ws.data.name) ? ws.data.name : "";
17
			project.value = ws.data.name;
18
				document.getElementById("tt").value=ws.data.name;
19
				project.style.height=document.getElementById("tt").scrollHeight+"px";
19 20
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
20 21
			stopMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(timeT(ws.data).indexOf("-") + 1, timeT(ws.data).length) : "请选择结束时间";
21
			descp.innerHTML = (ws.data.descp) ? ws.data.descp : "";
22
			descp.value = ws.data.descp;
23
			if(ws.data.descp) {
24
				document.getElementById("tt").style.width=document.getElementById("descp").scrollWidth+"px";
25
				document.getElementById("tt").value=ws.data.descp;
26
				descp.style.height=document.getElementById("tt").scrollHeight+"px";
27
			}
22 28
		}
23
		project.addEventListener("keyup", function() {
24
			if(this.innerHTML.length > 0) {
29
		project.addEventListener("input", function() {
30
			if(this.value.length > 0) {
25 31
				document.getElementById("login").removeAttribute("disabled");
26
			} else if(this.innerHTML.length == 0) {
32
			} else if(this.value.length == 0) {
27 33
				document.getElementById("login").setAttribute("disabled", "true");
28 34
			}
29 35
		})
@ -62,8 +68,8 @@ mui.ready(function() {
62 68
			return str.replace(/(^\s*)|(\s*$)/g, "");  
63 69
		}
64 70
		oLogin.addEventListener("tap", function() {
65
			var projectL = trim(project.innerHTML);
66
			var descpL = trim(descp.innerHTML);
71
			var projectL = trim(project.value);
72
			var descpL = trim(descp.value);
67 73
			var startMonthL = startMonth.innerHTML;
68 74
			var stopMonthL = stopMonth.innerHTML;
69 75
			if(!projectL.length) {
@ -97,7 +103,7 @@ mui.ready(function() {
97 103
		function savePro() {
98 104
			var $data = {};
99 105
			$data.professorId = userid;
100
			$data.name = project.innerHTML;
106
			$data.name = project.value;
101 107
			if(startMonth.innerHTML) {
102 108
				if(startMonth.innerHTML.length != 7) {
103 109
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
@ -112,7 +118,7 @@ mui.ready(function() {
112 118

113 119
				}
114 120
			}
115
			$data.descp = descp.innerHTML;
121
			$data.descp = descp.value;
116 122
			if(ws.data) {
117 123
				$data.id = ws.data.id;
118 124
			}

+ 1 - 0
app/js/updateProject.js

@ -6,6 +6,7 @@ mui.ready(function() {
6 6
		var oarr=[];
7 7
		//项目经历
8 8
		var projectShow = function(obj) {
9
			console.log(JSON.stringify(obj));
9 10
			if(obj.data.length > 0) {
10 11
				var arr = [];
11 12
				for(var i = 0; i < obj.data.length; i++) {

+ 6 - 18
app/js/updateResearch.js

@ -10,16 +10,13 @@ mui.ready(function() {
10 10
			var html = [];
11 11
			for(var i = 0; i < data.length; i++) {
12 12
				console.log(data[i].caption);
13
				html.push("<li><span class='numThis mui-pull-left'>"+ data[i].count+"</span><span class='otsave mui-pull-left'>" + data[i].caption + "</span><span class='closeThis'>删除</span></li>");
13
				html.push("<li><span class='numThis mui-pull-left'>"+ data[i].count+"</span><span class='otsave mui-pull-left'>" + data[i].caption + "</span><span class='closeThis'>删除</span></li><div></div>");
14 14
			};
15 15
			document.getElementsByClassName("labelshowT")[0].innerHTML = html.join('');
16 16
		}
17 17
		if(ws.researchAreas) {
18 18
			subjectShow(ws.researchAreas);
19
			document.getElementById("login").removeAttribute("disabled");
20
		} else {
21
			document.getElementById("login").setAttribute("disabled", "true");
22
		}
19
		} 
23 20

24 21
		function trim(str) { //删除左右两端的空格
25 22
			  
@ -29,11 +26,7 @@ mui.ready(function() {
29 26
			var val = this.parentNode;
30 27
			document.getElementsByClassName('labelshow')[0].removeChild(val);
31 28
			var lilength = document.getElementsByTagName("li").length;
32
			if(lilength > 0) {
33
				document.getElementById("login").removeAttribute("disabled");
34
			} else if(lilength == 0) {
35
				document.getElementById("login").setAttribute("disabled", "true");
36
			}
29
			
37 30
		});
38 31
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
39 32
			var addContent = document.getElementsByTagName('input')[0].value;
@ -51,20 +44,15 @@ mui.ready(function() {
51 44
						return;
52 45
					}
53 46
				}
54
				if(content.length > 20) {
55
					plus.nativeUI.toast("研究方向不得超过20个字", toastStyle);
47
				if(content.length > 30) {
48
					plus.nativeUI.toast("研究方向不得超过30个字", toastStyle);
56 49
					return;
57 50
				}
58 51
				var node = document.createElement("li");
59 52
				node.innerHTML = '<span class="numThis mui-pull-left">0</span><span class="otsave mui-pull-left">'+content + '</span><span class="closeThis">删除</span>';
60 53
				document.getElementsByClassName("labelshow")[0].appendChild(node);
61 54
				document.getElementsByTagName('input')[0].value = "";
62
				var lilength = document.getElementsByTagName("li").length;
63
				if(lilength > 0) {
64
					document.getElementById("login").removeAttribute("disabled");
65
				} else if(lilength == 0) {
66
					document.getElementById("login").setAttribute("disabled", "true");
67
				}
55
				
68 56
			} else {
69 57
				plus.nativeUI.toast("请填写您的研究方向", toastStyle);
70 58
			}

+ 5 - 0
app/js/userInforUpdate.js

@ -140,6 +140,8 @@ mui.ready(function() {
140 140
						});
141 141
						if($data.subject) {
142 142
							prose.subject=$data.subject;
143
						}else{
144
							prose.subject="";
143 145
						}
144 146
						//研究方向
145 147
						//学术领域
@ -148,6 +150,7 @@ mui.ready(function() {
148 150
							prose.researchAreas=$data.researchAreas;
149 151
						}else{
150 152
							document.getElementById("researchAreaNum").innerHTML =0;
153
							prose.researchAreas=""
151 154
						}
152 155
						
153 156
						//应用行业
@ -157,6 +160,8 @@ mui.ready(function() {
157 160
						});
158 161
						if($data.industry) {
159 162
							prose.industry=$data.industry;
163
						}else{
164
							prose.industry="";
160 165
						}
161 166
						//项目经历
162 167
						if($data.projects.length) {