Browse Source

个人修改

luyanan 7 years ago
parent
commit
40d5eeb928

+ 2 - 2
app/html/updataIndustry.html

24
				<div class="maincon">
24
				<div class="maincon">
25
					<div class="labelbox">
25
					<div class="labelbox">
26
						<div class="addlabel mui-clearfix">
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
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29
						</div>
29
						</div>
30
	                    <div class="labelarea">
30
	                    <div class="labelarea">
37
			   </div>
37
			   </div>
38
		    </div>
38
		    </div>
39
			<div class="mui-content-padded frmboxNew">
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
			</div>
41
			</div>
42
		</div>
42
		</div>
43
		<script src="../js/public/mui.min.js"></script>
43
		<script src="../js/public/mui.min.js"></script>

+ 2 - 2
app/html/updateAcad.html

24
				<div class="maincon">
24
				<div class="maincon">
25
					<div class="labelbox">
25
					<div class="labelbox">
26
						<div class="addlabel mui-clearfix">
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
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29
						</div>
29
						</div>
30
	                    <div class="labelarea">
30
	                    <div class="labelarea">
37
			   </div>
37
			   </div>
38
		    </div>
38
		    </div>
39
			<div class="mui-content-padded frmboxNew">
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
			</div>
41
			</div>
42
		</div>
42
		</div>
43
		<script src="../js/public/mui.min.js"></script>
43
		<script src="../js/public/mui.min.js"></script>

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

7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
7
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/mui.picker.min.css" rel="stylesheet" />
9
		<link href="../css/mui.picker.min.css" rel="stylesheet" />
10
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
11
		<link href="../css/app.css" rel="stylesheet" />
11
		<style>
12
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
21
		</header>
22
		</header>
22
		<div class="mui-content">
23
		<div class="mui-content">
23
			<div class="mui-input-group mainbox" id='currentLocation'>
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
 		    </div>
26
 		    </div>
26
 		    <div class="mui-input-group mainbox">
27
 		    <div class="mui-input-group mainbox">
27
	 		    <div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix" id="showCityPicker">
28
	 		    <div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix" id="showCityPicker">

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/20</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/50</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span >/20</p>
43
				<p class="limitNum"><span id="fontAdd">0</span >/20</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
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
		</style>
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
	</head>
29
	</head>
16
30
17
	<body>
31
	<body>
23
			<div class="mui-input-group mainbox">
37
			<div class="mui-input-group mainbox">
24
				<div class="infocontit infocontitM">学校名称<span class="requiredThis"> *</span></div>
38
				<div class="infocontit infocontitM">学校名称<span class="requiredThis"> *</span></div>
25
				<div class="infocon">
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
				</div>
43
				</div>
28
		    </div>
44
		    </div>
29
		    <div class="mui-input-group mainbox">
45
		    <div class="mui-input-group mainbox">
30
				<div class="infocontit infocontitM">院系名称</div>
46
				<div class="infocontit infocontitM">院系名称</div>
31
				<div class="infocon">
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
				</div>
50
				</div>
34
		    </div>
51
		    </div>
35
		    <div class="mui-input-group mainbox">
52
		    <div class="mui-input-group mainbox">
36
				<div class="infocontit infocontitM">专业名称</div>
53
				<div class="infocontit infocontitM">专业名称</div>
37
				<div class="infocon">
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
				</div>
57
				</div>
40
		    </div>
58
		    </div>
41
		    <div class="mui-input-group mainbox">
59
		    <div class="mui-input-group mainbox">

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
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
		</style>
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
	</head>
29
	</head>
16
30
17
	<body>
31
	<body>
23
			<div class="mui-input-group mainbox">
37
			<div class="mui-input-group mainbox">
24
				<div class="infocontit infocontitM">奖项名称<span class="requiredThis"> *</span></div>
38
				<div class="infocontit infocontitM">奖项名称<span class="requiredThis"> *</span></div>
25
				<div class="infocon">
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
				</div>
43
				</div>
28
		    </div>
44
		    </div>
29
		    <div class="mui-input-group mainbox">
45
		    <div class="mui-input-group mainbox">
35
		    <div class="mui-input-group mainbox">
51
		    <div class="mui-input-group mainbox">
36
				<div class="infocontit infocontitM">获奖描述</div>
52
				<div class="infocontit infocontitM">获奖描述</div>
37
				<div class="infocon">
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
				</div>
56
				</div>
40
		    </div>
57
		    </div>
41
		    <div class="mui-content-padded frmboxNew">
58
		    <div class="mui-content-padded frmboxNew">

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
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
		</style>
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
	</head>
29
	</head>
16
30
17
	<body>
31
	<body>
23
			<div class="mui-input-group mainbox">
37
			<div class="mui-input-group mainbox">
24
				<div class="infocontit infocontitM">机构名称 <span class="requiredThis"> *</span></div>
38
				<div class="infocontit infocontitM">机构名称 <span class="requiredThis"> *</span></div>
25
				<div class="infocon">
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
				</div>
43
				</div>
28
		    </div>
44
		    </div>
29
		    <div class="mui-input-group mainbox">
45
		    <div class="mui-input-group mainbox">
30
				<div class="infocontit infocontitM">部门名称</div>
46
				<div class="infocontit infocontitM">部门名称</div>
31
				<div class="infocon">
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
				</div>
50
				</div>
34
		    </div>
51
		    </div>
35
		    <div class="mui-input-group mainbox">
52
		    <div class="mui-input-group mainbox">
36
				<div class="infocontit infocontitM">职位 <span class="requiredThis"> *</span></div>
53
				<div class="infocontit infocontitM">职位 <span class="requiredThis"> *</span></div>
37
				<div class="infocon">
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
				</div>
57
				</div>
40
		    </div>
58
		    </div>
41
		    <div class="mui-input-group mainbox">
59
		    <div class="mui-input-group mainbox">

+ 16 - 2
app/html/updateProfile.html

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
13
			.mui-content{height:100%;overflow: auto;}
14
			.simulation{
15
				padding:2px;
16
				height:24px;
17
				overflow:hidden;
18
				width:100%;
19
			}
14
		</style>
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
	</head>
28
	</head>
16
29
17
	<body>
30
	<body>
22
		<div class="mui-content">
35
		<div class="mui-content">
23
			<div class="mui-input-group mainbox">
36
			<div class="mui-input-group mainbox">
24
				<div class="infocon">
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
				</div>
40
				</div>
27
		    </div>
41
		    </div>
28
			<div class="limitBox">
42
			<div class="limitBox">
29
				<p class="limitNum"><span id="fontAdd">0</span>/500</p>
43
				<p class="limitNum"><span id="fontAdd">0</span>/500</p>
30
			</div>
44
			</div>
31
			<div class="mui-content-padded frmboxNew">
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
			</div>
47
			</div>
34
		</div>
48
		</div>
35
		<script src="../js/public/mui.min.js"></script>
49
		<script src="../js/public/mui.min.js"></script>

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

11
		<style>
11
		<style>
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13
			.mui-content{height:100%;overflow: auto;}
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
		</style>
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
	</head>
29
	</head>
16
30
17
	<body>
31
	<body>
23
			<div class="mui-input-group mainbox">
37
			<div class="mui-input-group mainbox">
24
				<div class="infocontit infocontitM">项目名称 <span class="requiredThis" > *</span></div>
38
				<div class="infocontit infocontitM">项目名称 <span class="requiredThis" > *</span></div>
25
				<div class="infocon">
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
				</div>
43
				</div>
28
		    </div>
44
		    </div>
29
		    <div class="mui-input-group mainbox">
45
		    <div class="mui-input-group mainbox">
41
		    <div class="mui-input-group mainbox">
57
		    <div class="mui-input-group mainbox">
42
				<div class="infocontit infocontitM">项目描述</div>
58
				<div class="infocontit infocontitM">项目描述</div>
43
				<div class="infocon">
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
				</div>
62
				</div>
46
		    </div>
63
		    </div>
47
		    
64
		    

+ 3 - 5
app/html/updateResearch.html

24
				<div class="maincon">
24
				<div class="maincon">
25
					<div class="labelbox">
25
					<div class="labelbox">
26
						<div class="addlabel mui-clearfix">
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
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
28
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29
						</div>
29
						</div>
30
	                    <div class="labelarea">
30
	                    <div class="labelarea">
31
	                    	<ul class="labelshow labelshowT" style="margin-right: -10px;">
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
					       	</ul>
33
					       	</ul>
36
	                    </div>
34
	                    </div>
37
						
35
						
39
			   </div>
37
			   </div>
40
		    </div>
38
		    </div>
41
			<div class="mui-content-padded frmboxNew">
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
			</div>
41
			</div>
44
		</div>
42
		</div>
45
		<script src="../js/public/mui.min.js"></script>
43
		<script src="../js/public/mui.min.js"></script>

+ 2 - 17
app/js/updataIndustry.js

25
		}
25
		}
26
		if(ws.industry) {
26
		if(ws.industry) {
27
			subjectShow(ws.industry);
27
			subjectShow(ws.industry);
28
			document.getElementById("login").removeAttribute("disabled");
29
		}else{
30
			document.getElementById("login").setAttribute("disabled","true");
31
		}
28
		}
32

29

33
		function trim(str) { //删除左右两端的空格
30
		function trim(str) { //删除左右两端的空格
37
		mui(".labelshow").on("tap", "span", function() {
34
		mui(".labelshow").on("tap", "span", function() {
38
			var val = this.parentNode;
35
			var val = this.parentNode;
39
			document.getElementsByClassName('labelshow')[0].removeChild(val);
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
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
38
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
48
			var addContent = document.getElementsByTagName('input')[0].value;
39
			var addContent = document.getElementsByTagName('input')[0].value;
60
						return;
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
					return;
56
					return;
66
				}
57
				}
67
				var node = document.createElement("li");
58
				var node = document.createElement("li");
68
				node.innerHTML = content + '<span class="closeThis">删除</span>';
59
				node.innerHTML = content + '<span class="closeThis">删除</span>';
69
				document.getElementsByClassName("labelshow")[0].appendChild(node);
60
				document.getElementsByClassName("labelshow")[0].appendChild(node);
70
				document.getElementsByTagName('input')[0].value = "";
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
			} else {
62
			} else {
78
				plus.nativeUI.toast("请填写您的行业领域", toastStyle);
63
				plus.nativeUI.toast("请填写您的行业领域", toastStyle);
79
			}
64
			}

+ 1 - 15
app/js/updateAcad.js

24
		}
24
		}
25
		if(ws.subject) {
25
		if(ws.subject) {
26
			subjectShow(ws.subject);
26
			subjectShow(ws.subject);
27
			document.getElementById("login").removeAttribute("disabled");
28
		}else{
29
			document.getElementById("login").setAttribute("disabled","true");
30
		}
27
		}
31

28

32
		function trim(str) { //删除左右两端的空格
29
		function trim(str) { //删除左右两端的空格
36
		mui(".labelshow").on("tap", "span", function() {
33
		mui(".labelshow").on("tap", "span", function() {
37
			var val = this.parentNode;
34
			var val = this.parentNode;
38
			document.getElementsByClassName('labelshow')[0].removeChild(val);
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
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
37
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
47
			var addContent = document.getElementsByTagName('input')[0].value;
38
			var addContent = document.getElementsByTagName('input')[0].value;
67
				node.innerHTML = content + '<span class="closeThis">删除</span>';
58
				node.innerHTML = content + '<span class="closeThis">删除</span>';
68
				document.getElementsByClassName("labelshow")[0].appendChild(node);
59
				document.getElementsByClassName("labelshow")[0].appendChild(node);
69
				document.getElementsByTagName('input')[0].value = "";
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
			} else {
62
			} else {
77
				plus.nativeUI.toast("请填写您的学术领域", toastStyle);
63
				plus.nativeUI.toast("请填写您的学术领域", toastStyle);
78
			}
64
			}

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

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

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

6
		function person() {
6
		function person() {
7
			plus.nativeUI.closeWaiting();
7
			plus.nativeUI.closeWaiting();
8
			var title = document.getElementById("title");
8
			var title = document.getElementById("title");
9
			title.innerHTML = web.department;
9
			title.value = web.department;
10
			if(web.department.length) {
10
			if(web.department.length) {
11
				document.getElementById("fontAdd").innerHTML = web.department.length;
11
				document.getElementById("fontAdd").innerHTML = web.department.length;
12
				document.getElementById("login").removeAttribute("disabled");
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
		person();
20
		person();
28
		})
23
		})
29
		function savePro() {
24
		function savePro() {
30
			var mess = {};
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
					plus.nativeUI.toast("所属部门不得超过20个字", toastStyle);
28
					plus.nativeUI.toast("所属部门不得超过20个字", toastStyle);
34
					return;
29
					return;
35
				}
30
				}
36
			}
31
			}
37
			mess.name = web.name;
32
			mess.name = web.name;
38
			mess.orgName = web.orgName;
33
			mess.orgName = web.orgName;
39
			mess.department = document.getElementById("title").innerHTML;
34
			mess.department = document.getElementById("title").value;
40
			mess.title = web.title;
35
			mess.title = web.title;
41
			mess.office =web.office;	
36
			mess.office =web.office;	
42
			mess.address = web.address;
37
			mess.address = web.address;

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

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

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

24
		function person() {
24
		function person() {
25
			plus.nativeUI.closeWaiting();
25
			plus.nativeUI.closeWaiting();
26
			var title = document.getElementById("title");
26
			var title = document.getElementById("title");
27
			title.innerHTML = web.orgName;
27
			title.value = web.orgName;
28
			if(web.orgName.length) {
28
			if(web.orgName.length) {
29
				document.getElementById("fontAdd").innerHTML = web.orgName.length;
29
				document.getElementById("fontAdd").innerHTML = web.orgName.length;
30
				document.getElementById("login").removeAttribute("disabled");
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
		person();
36
		person();
44
		document.getElementById("login").addEventListener("tap",function(){
37
		document.getElementById("login").addEventListener("tap",function(){
45
			if(web.orgName==document.getElementById("title").innerHTML) {
38
			if(web.orgName==document.getElementById("title").value) {
46
				mui.back();
39
				mui.back();
47
				return;
40
				return;
48
			}
41
			}
61
		
54
		
62
		function savePro() {
55
		function savePro() {
63
			var mess = {};
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
					plus.nativeUI.toast("所在机构不得超过50个字", toastStyle);
59
					plus.nativeUI.toast("所在机构不得超过50个字", toastStyle);
67
					return;
60
					return;
68
				}
61
				}
71
				upStatus();
64
				upStatus();
72
			}
65
			}
73
			mess.name = web.name;
66
			mess.name = web.name;
74
			mess.orgName = document.getElementById("title").innerHTML;
67
			mess.orgName = document.getElementById("title").value;
75
			mess.department =web.department;
68
			mess.department =web.department;
76
			mess.title = web.title;
69
			mess.title = web.title;
77
			mess.office =web.office;	
70
			mess.office =web.office;	

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

6
		function person() {
6
		function person() {
7
			plus.nativeUI.closeWaiting();
7
			plus.nativeUI.closeWaiting();
8
			var title = document.getElementById("title");
8
			var title = document.getElementById("title");
9
			title.innerHTML = web.office;
9
			title.value = web.office;
10
			console.log(JSON.stringify(web));
10
			console.log(JSON.stringify(web));
11
			if(web.office.length) {
11
			if(web.office.length) {
12
				document.getElementById("fontAdd").innerHTML = web.office.length;
12
				document.getElementById("fontAdd").innerHTML = web.office.length;
13
				document.getElementById("login").removeAttribute("disabled");
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
		person();
21
		person();
29
		})
24
		})
30
		function savePro() {
25
		function savePro() {
31
			var mess = {};
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
					plus.nativeUI.toast("职位不得超过20个字", toastStyle);
29
					plus.nativeUI.toast("职位不得超过20个字", toastStyle);
35
					return;
30
					return;
36
				}
31
				}
39
			mess.orgName = web.orgName;
34
			mess.orgName = web.orgName;
40
			mess.department = web.department;
35
			mess.department = web.department;
41
			mess.title = web.title;
36
			mess.title = web.title;
42
			mess.office =document.getElementById("title").innerHTML;	
37
			mess.office =document.getElementById("title").value;	
43
			mess.address = web.address;
38
			mess.address = web.address;
44
			mess.province=web.province;
39
			mess.province=web.province;
45
			mess.email = web.email;
40
			mess.email = web.email;

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

6
		function person() {
6
		function person() {
7
			plus.nativeUI.closeWaiting();
7
			plus.nativeUI.closeWaiting();
8
			var title = document.getElementById("title");
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
				document.getElementById("login").removeAttribute("disabled");
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
		person();
20
		person();
28
		})
23
		})
29
		function savePro() {
24
		function savePro() {
30
			var mess = {};
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
					plus.nativeUI.toast("联系方式不得超过50个字", toastStyle);
28
					plus.nativeUI.toast("联系方式不得超过50个字", toastStyle);
34
					return;
29
					return;
35
				}
30
				}
42
			mess.address = web.address;
37
			mess.address = web.address;
43
			mess.email = web.email;
38
			mess.email = web.email;
44
			mess.province=web.province;
39
			mess.province=web.province;
45
			mess.phone =document.getElementById("title").innerHTML;			
40
			mess.phone =document.getElementById("title").value;			
46
			mess.id = userid;
41
			mess.id = userid;
47
			var mess1 = JSON.stringify(mess);
42
			var mess1 = JSON.stringify(mess);
48
			console.log(JSON.stringify(mess))
43
			console.log(JSON.stringify(mess))

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

6
		function person() {
6
		function person() {
7
			plus.nativeUI.closeWaiting();
7
			plus.nativeUI.closeWaiting();
8
			var title = document.getElementById("title");
8
			var title = document.getElementById("title");
9
			title.innerHTML = web.title;
9
			title.value = web.title;
10
			if(web.title.length) {
10
			if(web.title.length) {
11
				document.getElementById("fontAdd").innerHTML = web.title.length;
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
		person();
19
		person();
37
			mess.name = web.name;
31
			mess.name = web.name;
38
			mess.orgName = web.orgName;
32
			mess.orgName = web.orgName;
39
			mess.department = web.department;
33
			mess.department = web.department;
40
			mess.title = document.getElementById("title").innerHTML;
34
			mess.title = document.getElementById("title").value;
41
			mess.office =web.office;	
35
			mess.office =web.office;	
42
			mess.address = web.address;
36
			mess.address = web.address;
43
			mess.province=web.province;
37
			mess.province=web.province;
45
			mess.phone =web.phone;			
39
			mess.phone =web.phone;			
46
			mess.id = userid;
40
			mess.id = userid;
47
			var mess1 = JSON.stringify(mess);
41
			var mess1 = JSON.stringify(mess);
48
			console.log(JSON.stringify(mess))
49
			$.ajax({
42
			$.ajax({
50
				"url": baseUrl + '/ajax/professor',
43
				"url": baseUrl + '/ajax/professor',
51
				"type": "PUT",
44
				"type": "PUT",

+ 7 - 1
app/js/updateBasic.js

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

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

24
			oDel.classList.add("displayNone");
24
			oDel.classList.add("displayNone");
25
		} else {
25
		} else {
26
			oLogin.removeAttribute("disabled");
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
			degreeResult.innerHTML = (ws.data.degree) ? oDe[ws.data.degree] : "请选择获得的学位";
40
			degreeResult.innerHTML = (ws.data.degree) ? oDe[ws.data.degree] : "请选择获得的学位";
31
			yearResult.innerHTML =(ws.data.year) ? ((ws.data.year!="至今 ")?(ws.data.year+"年"):"至今") : "请选择毕业时间";
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
				document.getElementById("login").removeAttribute("disabled");
45
				document.getElementById("login").removeAttribute("disabled");
37
			} else if(this.innerHTML.length == 0) {
46
			} else if(this.value.length == 0) {
38
				document.getElementById("login").setAttribute("disabled", "true");
47
				document.getElementById("login").setAttribute("disabled", "true");
39
			}
48
			}
40
		})
49
		})
43
			return str.replace(/(^\s*)|(\s*$)/g, "");  
52
			return str.replace(/(^\s*)|(\s*$)/g, "");  
44
		}
53
		}
45
		oLogin.addEventListener("tap", function() {
54
		oLogin.addEventListener("tap", function() {
46
			var projectL = trim(project.innerHTML);
55
			var projectL = trim(project.value);
47
			var startMonthL = yearResult.innerHTML;
56
			var startMonthL = yearResult.innerHTML;
48
			if(!projectL.length) {
57
			if(!projectL.length) {
49
				if(projectL=="请填写就读的学校(50个字以内)") {
58
				if(projectL=="请填写就读的学校(50个字以内)") {
56
				plus.nativeUI.toast("学校名称不得超过50个字");
65
				plus.nativeUI.toast("学校名称不得超过50个字");
57
				return;
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
					plus.nativeUI.toast("院系名称不得超过20个字");
70
					plus.nativeUI.toast("院系名称不得超过20个字");
62
					return;
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
					plus.nativeUI.toast("专业名称不得超过20个字");
77
					plus.nativeUI.toast("专业名称不得超过20个字");
69
					return;
78
					return;
70
				}
79
				}
77
		function savePro() {
86
		function savePro() {
78
			var $data = {};
87
			var $data = {};
79
			$data.professorId = userid;
88
			$data.professorId = userid;
80
			$data.school = project.innerHTML;
89
			$data.school = project.value;
81
			if(yearResult.innerHTML.length!=7) {
90
			if(yearResult.innerHTML.length!=7) {
82
				if(yearResult.innerHTML.length==5) {	
91
				if(yearResult.innerHTML.length==5) {	
83
					$data.year = yearResult.innerHTML.substring(0, 4);
92
					$data.year = yearResult.innerHTML.substring(0, 4);
96
			}else if(degreeResult.innerHTML=="其他") {
105
			}else if(degreeResult.innerHTML=="其他") {
97
				$data.degree=5;
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
			oDel.classList.add("displayNone");
13
			oDel.classList.add("displayNone");
14
		} else {
14
		} else {
15
			oLogin.removeAttribute("disabled");
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
			yearResult.innerHTML =(ws.data.year) ? ws.data.year+"年" : "请选择获奖时间";
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
				document.getElementById("login").removeAttribute("disabled");
29
				document.getElementById("login").removeAttribute("disabled");
23
			} else if(this.innerHTML.length == 0) {
30
			} else if(this.value.length == 0) {
24
				document.getElementById("login").setAttribute("disabled", "true");
31
				document.getElementById("login").setAttribute("disabled", "true");
25
			}
32
			}
26
		})
33
		})
29
			return str.replace(/(^\s*)|(\s*$)/g, "");  
36
			return str.replace(/(^\s*)|(\s*$)/g, "");  
30
		}
37
		}
31
		oLogin.addEventListener("tap", function() {
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
			var startMonthL = yearResult.innerHTML;
41
			var startMonthL = yearResult.innerHTML;
35
			if(!projectL.length) {
42
			if(!projectL.length) {
36
				plus.nativeUI.toast("“请填写奖项名称");
43
				plus.nativeUI.toast("“请填写奖项名称");
51
		function savePro() {
58
		function savePro() {
52
			var $data = {};
59
			var $data = {};
53
			$data.professorId = userid;
60
			$data.professorId = userid;
54
			$data.name = project.innerHTML;
61
			$data.name = project.value;
55
			if(yearResult.innerHTML.length!=7) {
62
			if(yearResult.innerHTML.length!=7) {
56
					$data.year = yearResult.innerHTML.substring(0, 4);
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
			if(ws.data) {
67
			if(ws.data) {
61
				$data.id = ws.data.id;
68
				$data.id = ws.data.id;
62
			}
69
			}

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

13
		var descp = document.getElementById("descp");
13
		var descp = document.getElementById("descp");
14
		if(!ws.data) {
14
		if(!ws.data) {
15
			oDel.classList.add("displayNone");
15
			oDel.classList.add("displayNone");
16
			oLogin.removeAttribute("disabled");
16
			
17
		} else {
17
		} else {
18
			oLogin.removeAttribute("disabled");
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
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
22
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
21
			stopMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(timeT(ws.data).indexOf("-") + 1, timeT(ws.data).length) : "请选择结束时间";
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
		function timeT(obj) {
36
		function timeT(obj) {
57
			return str.replace(/(^\s*)|(\s*$)/g, "");  
67
			return str.replace(/(^\s*)|(\s*$)/g, "");  
58
		}
68
		}
59
		oLogin.addEventListener("tap", function() {
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
			var startMonthL = startMonth.innerHTML;
72
			var startMonthL = startMonth.innerHTML;
63
			var stopMonthL = stopMonth.innerHTML;
73
			var stopMonthL = stopMonth.innerHTML;
64
			var ti=otitle.innerHTML;
74
			var ti=otitle.value;
65
			if(!projectL.length) {
75
			if(!projectL.length) {
66
				plus.nativeUI.toast("请填写机构名称");
76
				plus.nativeUI.toast("请填写机构名称");
67
				return;
77
				return;
101
		function savePro() {
111
		function savePro() {
102
			var $data = {};
112
			var $data = {};
103
			$data.professorId = userid;
113
			$data.professorId = userid;
104
			$data.company = project.innerHTML;
114
			$data.company = project.value;
105
			if(startMonth.innerHTML) {
115
			if(startMonth.innerHTML) {
106
				if(startMonth.innerHTML.length != 7) {
116
				if(startMonth.innerHTML.length != 7) {
107
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
117
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
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
			if(ws.data) {
131
			if(ws.data) {
122
				$data.id = ws.data.id;
132
				$data.id = ws.data.id;
123
			}
133
			}
171
							});
181
							});
172
						mui.back();
182
						mui.back();
173
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
183
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
174
							mui.fire(Page, 'newId', {
184
							titlemui.fire(Page, 'newId', {
175
								rd: 1
185
								rd: 1
176
							});
186
							});
177
					}
187
					}
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
		function person() {
7
		function person() {
8
			plus.nativeUI.closeWaiting();
8
			plus.nativeUI.closeWaiting();
9
			var title = document.getElementById("title");
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
			if(web.descp.length) {
14
			if(web.descp.length) {
12
				document.getElementById("fontAdd").innerHTML = web.descp.length;
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
		person();
23
		person();
28
			 savePro();
25
			 savePro();
29
		})
26
		})
30
		function savePro() {
27
		function savePro() {
31
			if(document.getElementById("title").innerHTML.length>500) {
28
			if(document.getElementById("title").value.length>500) {
32
				plus.nativeUI.toast("个人简介不得超过500个字", toastStyle);
29
				plus.nativeUI.toast("个人简介不得超过500个字", toastStyle);
33
				return;
30
				return;
34
			}
31
			}
35
			mui.ajax(baseUrl + '/ajax/professor/descp', {
32
			mui.ajax(baseUrl + '/ajax/professor/descp', {
36
				data: {
33
				data: {
37
					"id": userid,
34
					"id": userid,
38
					"descp": document.getElementById("title").innerHTML
35
					"descp": document.getElementById("title").value
39
				},
36
				},
40
				dataType: 'json', //数据格式类型
37
				dataType: 'json', //数据格式类型
41
				async: false,
38
				async: false,
46
						mui.back();
43
						mui.back();
47
						var web = plus.webview.getWebviewById("userInforUpdate.html");
44
						var web = plus.webview.getWebviewById("userInforUpdate.html");
48
							mui.fire(web, "newId",{
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
		if(!ws.data) {
13
		if(!ws.data) {
14
			oDel.classList.add("displayNone");
14
			oDel.classList.add("displayNone");
15
		} else {
15
		} else {
16
			console.log(JSON.stringify(ws.data));
17
			oLogin.removeAttribute("disabled");
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
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
20
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
20
			stopMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(timeT(ws.data).indexOf("-") + 1, timeT(ws.data).length) : "请选择结束时间";
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
				document.getElementById("login").removeAttribute("disabled");
31
				document.getElementById("login").removeAttribute("disabled");
26
			} else if(this.innerHTML.length == 0) {
32
			} else if(this.value.length == 0) {
27
				document.getElementById("login").setAttribute("disabled", "true");
33
				document.getElementById("login").setAttribute("disabled", "true");
28
			}
34
			}
29
		})
35
		})
62
			return str.replace(/(^\s*)|(\s*$)/g, "");  
68
			return str.replace(/(^\s*)|(\s*$)/g, "");  
63
		}
69
		}
64
		oLogin.addEventListener("tap", function() {
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
			var startMonthL = startMonth.innerHTML;
73
			var startMonthL = startMonth.innerHTML;
68
			var stopMonthL = stopMonth.innerHTML;
74
			var stopMonthL = stopMonth.innerHTML;
69
			if(!projectL.length) {
75
			if(!projectL.length) {
97
		function savePro() {
103
		function savePro() {
98
			var $data = {};
104
			var $data = {};
99
			$data.professorId = userid;
105
			$data.professorId = userid;
100
			$data.name = project.innerHTML;
106
			$data.name = project.value;
101
			if(startMonth.innerHTML) {
107
			if(startMonth.innerHTML) {
102
				if(startMonth.innerHTML.length != 7) {
108
				if(startMonth.innerHTML.length != 7) {
103
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
109
					$data.startMonth = startMonth.innerHTML.substring(0, 4) + startMonth.innerHTML.substring(5, 7);
112

118

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

+ 1 - 0
app/js/updateProject.js

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

+ 6 - 18
app/js/updateResearch.js

10
			var html = [];
10
			var html = [];
11
			for(var i = 0; i < data.length; i++) {
11
			for(var i = 0; i < data.length; i++) {
12
				console.log(data[i].caption);
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
			document.getElementsByClassName("labelshowT")[0].innerHTML = html.join('');
15
			document.getElementsByClassName("labelshowT")[0].innerHTML = html.join('');
16
		}
16
		}
17
		if(ws.researchAreas) {
17
		if(ws.researchAreas) {
18
			subjectShow(ws.researchAreas);
18
			subjectShow(ws.researchAreas);
19
			document.getElementById("login").removeAttribute("disabled");
20
		} else {
21
			document.getElementById("login").setAttribute("disabled", "true");
22
		}
19
		} 
23

20

24
		function trim(str) { //删除左右两端的空格
21
		function trim(str) { //删除左右两端的空格
25
			  
22
			  
29
			var val = this.parentNode;
26
			var val = this.parentNode;
30
			document.getElementsByClassName('labelshow')[0].removeChild(val);
27
			document.getElementsByClassName('labelshow')[0].removeChild(val);
31
			var lilength = document.getElementsByTagName("li").length;
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
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
31
		document.getElementsByClassName("addlabelbtn")[0].addEventListener("tap", function() {
39
			var addContent = document.getElementsByTagName('input')[0].value;
32
			var addContent = document.getElementsByTagName('input')[0].value;
51
						return;
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
					return;
49
					return;
57
				}
50
				}
58
				var node = document.createElement("li");
51
				var node = document.createElement("li");
59
				node.innerHTML = '<span class="numThis mui-pull-left">0</span><span class="otsave mui-pull-left">'+content + '</span><span class="closeThis">删除</span>';
52
				node.innerHTML = '<span class="numThis mui-pull-left">0</span><span class="otsave mui-pull-left">'+content + '</span><span class="closeThis">删除</span>';
60
				document.getElementsByClassName("labelshow")[0].appendChild(node);
53
				document.getElementsByClassName("labelshow")[0].appendChild(node);
61
				document.getElementsByTagName('input')[0].value = "";
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
			} else {
56
			} else {
69
				plus.nativeUI.toast("请填写您的研究方向", toastStyle);
57
				plus.nativeUI.toast("请填写您的研究方向", toastStyle);
70
			}
58
			}

+ 5 - 0
app/js/userInforUpdate.js

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