Browse Source

个人修改模块

luyanan 7 years ago
parent
commit
51ffac0c01

+ 4 - 1
app/html/updataIndustry.html

@ -11,6 +11,9 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			#title{
15
				width:82%;border-top-right-radius: 0px;border-bottom-right-radius: 0px;
16
			}
14 17
		</style>
15 18
	</head>
16 19

@ -24,7 +27,7 @@
24 27
				<div class="maincon">
25 28
					<div class="labelbox">
26 29
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title" maxlength="15"/>
30
							<input type="text" class="mui-pull-left frmtype" placeholder="请填写您的行业领域" id="title" maxlength="15"/>
28 31
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 32
						</div>
30 33
	                    <div class="labelarea">

+ 4 - 1
app/html/updateAcad.html

@ -11,6 +11,9 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			#title{
15
				width:82%;border-top-right-radius: 0px;border-bottom-right-radius: 0px;
16
			}
14 17
		</style>
15 18
	</head>
16 19
@ -24,7 +27,7 @@
24 27
				<div class="maincon">
25 28
					<div class="labelbox">
26 29
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" id="title" maxlength="15"/>
30
							<input type="text" class="mui-pull-left frmtype" placeholder="请填写您的学术领域" id="title" maxlength="15"/>
28 31
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 32
						</div>
30 33
	                    <div class="labelarea">

+ 1 - 1
app/html/updateBasic-email.html

@ -35,7 +35,7 @@
35 35
		<div class="mui-content">
36 36
			<div class="mui-input-group mainbox">
37 37
				<div class="infocon">
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="20" placeholder="请填写电子邮箱"></textarea>
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="50" placeholder="请填写电子邮箱"></textarea>
39 39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
40 40
				</div>
41 41
		    </div>

+ 7 - 2
app/html/updateBasic.html

@ -13,6 +13,11 @@
13 13
			.mui-content{height:100%;overflow: auto;}
14 14
			.mui-table-view-cell.mui-active{background: none;}
15 15
			.mui-table-view-cell>a:not(.mui-btn).mui-active{background: none;}
16
			.dangle{
17
				overflow:hidden;
18
				text-overflow: ellipsis;
19
				white-space:nowrap;
20
			}
16 21
		</style>
17 22
	</head>
18 23
@ -43,7 +48,7 @@
43 48
				    <li class="mui-table-view-cell">
44 49
				        <a class="mui-navigate-right">
45 50
				        	<span class="mui-pull-left">所在机构</span>
46
				        	<div class="rightword" id="orgName">请填写当前就职的机构</div>
51
				        	<div class="rightword dangle" id="orgName">请填写当前就职的机构</div>
47 52
				        </a>
48 53
				    </li>
49 54
				    <li class="mui-table-view-cell">
@ -67,7 +72,7 @@
67 72
				    <li class="mui-table-view-cell">
68 73
				        <a class="mui-navigate-right">
69 74
				        	<span class="mui-pull-left">联系电话</span>
70
				        	<div class="rightword" id="phone">请填写手机/办公电话</div>
75
				        	<div class="rightword dangle" id="phone">请填写手机/办公电话</div>
71 76
				        </a>
72 77
				    </li>
73 78
				    <li class="mui-table-view-cell">

+ 1 - 1
app/html/updateProfile.html

@ -35,7 +35,7 @@
35 35
		<div class="mui-content">
36 36
			<div class="mui-input-group mainbox">
37 37
				<div class="infocon">
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="500" placeholder="个人简介"></textarea>
38
					<textarea class="textareabox simulation" id="title" oninput="autoGrow(this)" maxlength="500" placeholder="请填写一个简单的介绍,让大家更好的了解您"></textarea>
39 39
					<textarea class="textareabox simulation" id="tt" style="position:absolute;top:0;left:-999px;"></textarea>
40 40
				</div>
41 41
		    </div>

+ 2 - 1
app/html/updateProject.html

@ -23,7 +23,8 @@
23 23
			<div class="mui-input-group mainbox">
24 24
		       <div class="infocon">
25 25
			       <ul class="mui-table-view noactiveTab listitembox" id="projectExperience">
26
			           
26
			         <!--<li class="mui-table-view-cell listitem"><div class="h4Tit listtit2">将国家机关解放军 放假放假放假姐姐房间解放军解放军 解放军解放军分即将放假放假 <span class="updatebox mui-clearfix"><em></em>修改</span></div></li>  
27
			       <li class="mui-table-view-cell listitem"><div class="h4Tit listtit2">将国家 <span class="updatebox mui-clearfix"><em></em>修改</span></div></li> -->
27 28
			       </ul>	
28 29
		       </div>
29 30
		    </div>

+ 4 - 1
app/html/updateResearch.html

@ -11,6 +11,9 @@
11 11
		<style>
12 12
			html,body{height: 100%;margin:0;padding:0px;overflow: hidden;}
13 13
			.mui-content{height:100%;overflow: auto;}
14
			#title{
15
				width:82%;border-top-right-radius: 0px;border-bottom-right-radius: 0px;
16
			}
14 17
		</style>
15 18
	</head>
16 19
@ -24,7 +27,7 @@
24 27
				<div class="maincon">
25 28
					<div class="labelbox">
26 29
						<div class="addlabel mui-clearfix">
27
							<input type="text" class="mui-pull-left frmtype" placeholder=" 如:腐蚀防护、石墨烯、纳米材料" maxlength="30"/>
30
							<input type="text" class="mui-pull-left frmtype" placeholder="请填写您的研究方向" maxlength="30" id="title"/>
28 31
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
29 32
						</div>
30 33
	                    <div class="labelarea">

+ 0 - 2
app/js/updateBasic-depart.js

@ -12,8 +12,6 @@ mui.ready(function() {
12 12
				document.getElementById("login").removeAttribute("disabled");
13 13
			}
14 14
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17 15
					document.getElementById("fontAdd").innerHTML = this.value.length;
18 16
			})
19 17
		}

+ 0 - 2
app/js/updateBasic-email.js

@ -12,8 +12,6 @@ mui.ready(function() {
12 12
				
13 13
			}
14 14
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17 15
					document.getElementById("fontAdd").innerHTML = this.value.length;
18 16
			})
19 17
		}

+ 2 - 0
app/js/updateBasic-org.js

@ -25,6 +25,8 @@ mui.ready(function() {
25 25
			plus.nativeUI.closeWaiting();
26 26
			var title = document.getElementById("title");
27 27
			title.value = web.orgName;
28
			document.getElementById("tt").value=web.orgName;
29
				title.style.height=document.getElementById("tt").scrollHeight+"px";
28 30
			if(web.orgName.length) {
29 31
				document.getElementById("fontAdd").innerHTML = web.orgName.length;
30 32
				document.getElementById("login").removeAttribute("disabled");

+ 0 - 2
app/js/updateBasic-post.js

@ -13,8 +13,6 @@ mui.ready(function() {
13 13
				document.getElementById("login").removeAttribute("disabled");
14 14
			}
15 15
			document.getElementById("title").addEventListener("input", function() {
16
				
17
					//this.value = this.value.substring(0, 20);
18 16
					document.getElementById("fontAdd").innerHTML = this.value.length;
19 17
			})
20 18
		}

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

@ -7,13 +7,14 @@ mui.ready(function() {
7 7
			plus.nativeUI.closeWaiting();
8 8
			var title = document.getElementById("title");
9 9
			title.value = web.phone;
10
			document.getElementById("tt").style.width=title.scrollWidth+"px";
11
			document.getElementById("tt").value=web.phone;
12
				title.style.height=document.getElementById("tt").scrollHeight+"px";
10 13
			if(web.phone.length) {
11 14
				document.getElementById("fontAdd").innerHTML = web.phone.length;
12 15
				document.getElementById("login").removeAttribute("disabled");
13 16
			}
14 17
			document.getElementById("title").addEventListener("input", function() {
15
				
16
					//this.value = this.value.substring(0, 20);
17 18
					document.getElementById("fontAdd").innerHTML = this.value.length;
18 19
			})
19 20
		}

+ 2 - 4
app/js/updateBasic-title.js

@ -11,8 +11,6 @@ mui.ready(function() {
11 11
				document.getElementById("fontAdd").innerHTML = web.title.length;
12 12
			}
13 13
			document.getElementById("title").addEventListener("input", function() {
14
				
15
					//this.value = this.value.substring(0, 20);
16 14
					document.getElementById("fontAdd").innerHTML = this.value.length;
17 15
			})
18 16
		}
@ -22,8 +20,8 @@ mui.ready(function() {
22 20
		})
23 21
		function savePro() {
24 22
			var mess = {};
25
			if(document.getElementById("title").innerHTML.length) {
26
				if(document.getElementById("title").innerHTML.length>20) {
23
			if(document.getElementById("title").value.length) {
24
				if(document.getElementById("title").value.length>20) {
27 25
					plus.nativeUI.toast("职称不得超过20个字", toastStyle);
28 26
					return;
29 27
				}

+ 7 - 0
app/js/updateBasic.js

@ -4,6 +4,13 @@ mui.ready(function() {
4 4
		var ws = plus.webview.currentWebview();
5 5
		var person={};
6 6
		var f1;
7
		function autoWidth(oField) {
8
				document.getElementById("orgName").style.maxWidth=oField.scrollWidth-113+"px";
9
				document.getElementById("phone").style.maxWidth=oField.scrollWidth-113+"px";
10
				document.getElementById("mail").style.maxWidth=oField.scrollWidth-113+"px";
11
			}
12
		autoWidth(document.getElementsByClassName('mui-navigate-right')[0])
13
		document.getElementsByClassName("mui-navigate-right")[0]
7 14
		function personalMessage() {
8 15
			mui.ajax(baseUrl + "/ajax/professor/baseInfo/" + userid, {
9 16
				dataType: 'json', //数据格式类型

+ 1 - 1
app/js/updateEdu.js

@ -56,7 +56,7 @@ mui.ready(function() {
56 56
						if(arrq.length) {
57 57
							odescp=arrq.join(",")
58 58
						}
59
					var os = '<div class="listtit2">' + name + '<span class="updatebox mui-clearfix"><em></em>修改</span></div>' +
59
					var os = '<div class="listtit2" style="margin-right:40px;">' + name + '<span class="updatebox mui-clearfix" style="top:5px;"><em></em>修改</span></div>' +
60 60
						' <p class="listtit3 mutlinebox">'+odescp+'</p><p class="listtit3">' + year + '</p></li>'
61 61
					arr.push(str + os);
62 62
				}

+ 1 - 1
app/js/updateHonor.js

@ -39,7 +39,7 @@ mui.ready(function() {
39 39
						if(obj.data[i].descp) {
40 40
							odescp=obj.data[i].descp;
41 41
						}
42
					var os = '<div class="listtit2">' + name + '<span class="updatebox mui-clearfix"><em></em>修改</span></div>' +
42
					var os = '<div class="listtit2" style="margin-right:40px;">' + name + '<span class="updatebox mui-clearfix" style="top:5px;"><em></em>修改</span></div>' +
43 43
						' <p class="listtit3">' + year + '</p><p class="listtit3 mutlinebox">'+odescp+'</p></li>'
44 44
					arr.push(str + os);
45 45
				}

+ 1 - 1
app/js/updateJob.js

@ -23,7 +23,7 @@ mui.ready(function() {
23 23
					}else{
24 24
						odescp = obj.data[i].title
25 25
					}
26
					var os = '<div class="h4Tit listtit2">' + name + '<span class="updatebox mui-clearfix"><em></em>修改</span></div>' +
26
					var os = '<div class="h4Tit listtit2" style="margin-right:40px;">' + name + '<span class="updatebox mui-clearfix" style="top:0;margin-right:-40px;"><em></em>修改</span></div>' +
27 27
						 ' <p class="listtit3">'+odescp+'</p>'+
28 28
						' <p class="listtit3">' + timeT({
29 29
							startMonth: obj.data[i].startMonth,

+ 4 - 2
app/js/updateProject-edit.js

@ -19,7 +19,7 @@ mui.ready(function() {
19 19
				project.style.height=document.getElementById("tt").scrollHeight+"px";
20 20
			startMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(0, timeT(ws.data).indexOf("-")) : "请选择开始时间";
21 21
			stopMonth.innerHTML = (timeT(ws.data)) ? timeT(ws.data).substring(timeT(ws.data).indexOf("-") + 1, timeT(ws.data).length) : "请选择结束时间";
22
			descp.value = ws.data.descp;
22
			descp.value = (ws.data.descp)?ws.data.descp:"";
23 23
			if(ws.data.descp) {
24 24
				document.getElementById("tt").style.width=document.getElementById("descp").scrollWidth+"px";
25 25
				document.getElementById("tt").value=ws.data.descp;
@ -118,7 +118,9 @@ mui.ready(function() {
118 118

119 119
				}
120 120
			}
121
			$data.descp = descp.value;
121
			if(descp.value) {
122
				$data.descp = descp.value;
123
			}
122 124
			if(ws.data) {
123 125
				$data.id = ws.data.id;
124 126
			}

+ 2 - 2
app/js/updateProject.js

@ -14,7 +14,7 @@ mui.ready(function() {
14 14
						var str = '<li class="mui-table-view-cell listitem" data-o="'+i+'">'
15 15
						var name = obj.data[i].name;
16 16
					} else {
17
						var str = '<li class="mui-table-view-cell listitem" data-o="'+i+'">'
17
						var str = '<li class="mui-table-view-cell listitem" style="margin-right:40px;"data-o="'+i+'">'
18 18
						var name = obj.data[i].company;
19 19
					}
20 20
					oarr[i]=obj.data[i];
@ -22,7 +22,7 @@ mui.ready(function() {
22 22
					if(obj.data[i].descp) {
23 23
						odescp = obj.data[i].descp
24 24
					}
25
					var os = '<div class="h4Tit listtit2">' + name + '<span class="updatebox mui-clearfix"><em></em>修改</span></div>' +
25
					var os = '<div class="h4Tit listtit2" style="margin-right:40px;">' + name + '<span class="updatebox mui-clearfix" style="top:0;margin-right:-40px;"><em></em>修改</span></div>' +
26 26
						' <p class="listtit3">' + timeT({
27 27
							startMonth: obj.data[i].startMonth,
28 28
							stopMonth: obj.data[i].stopMonth