Browse Source

我的关注加上身份标示,点赞长度样式,账户页个人信息去掉逗号,未认证位置

lipengtao 8 years ago
parent
commit
91c523019b

+ 2 - 2
app/css/app.css

193
/*.maincon .basicinfo>li:not(.basicfrm){ font-size: 13px; line-height: 42px;}*/
193
/*.maincon .basicinfo>li:not(.basicfrm){ font-size: 13px; line-height: 42px;}*/
194
.maincon ul li.basicfrm{list-style: none; position: relative; overflow: hidden; line-height: 20px;border-bottom:1px #F0F0F0 solid;margin-left: 2%;padding-left:0; }
194
.maincon ul li.basicfrm{list-style: none; position: relative; overflow: hidden; line-height: 20px;border-bottom:1px #F0F0F0 solid;margin-left: 2%;padding-left:0; }
195
.maincon ul li.basicfrm .frmtype{ height: 26px; padding:0; padding-right:2%;line-height:20px;font-size: 14px; }
195
.maincon ul li.basicfrm .frmtype{ height: 26px; padding:0; padding-right:2%;line-height:20px;font-size: 14px; }
196
.maincon ul li.basicfrm .authu{position:absolute;left:60%;color:burlywood}
196
.maincon ul li.basicfrm .authu{position:absolute;left:80%;color:burlywood}
197
.maincon ul li label{ position: relative; color: #888888; line-height:30px;}
197
.maincon ul li label{ position: relative; color: #888888; line-height:30px;}
198
.maincon ul li small{ color:#AAAAAA;}
198
.maincon ul li small{ color:#AAAAAA;}
199
.maincon ul.set2{ display: block;}
199
.maincon ul.set2{ display: block;}
261
.resinfo.mui-table-view .mui-table-view-cell:after{right: 0;bottom: 0;left: -10px;background: none;}
261
.resinfo.mui-table-view .mui-table-view-cell:after{right: 0;bottom: 0;left: -10px;background: none;}
262
262
263
.listbox{ margin:5px 0;max-width:100%; overflow:hidden;}
263
.listbox{ margin:5px 0;max-width:100%; overflow:hidden;}
264
.listbrowse{border: 1px solid #FF9900; border-radius: 0 6px 6px 0; text-align:center;font-size:13px;line-height:26px; float:left;padding-right: 8px; max-width:40%; overflow:hidden;}
264
.listbrowse{border: 1px solid #FF9900; border-radius: 0 6px 6px 0; text-align:center;font-size:13px;line-height:26px; float:left;padding-right: 8px; max-width:60%; overflow:hidden;}
265
/*.plusbtn{ float:left;width:22px; height:22px; background:url(../images/zan.png) no-repeat center center; background-size:100% 100% ; margin-left:4px; margin-top:2px;  }*/
265
/*.plusbtn{ float:left;width:22px; height:22px; background:url(../images/zan.png) no-repeat center center; background-size:100% 100% ; margin-left:4px; margin-top:2px;  }*/
266
.plusbtn{ font-size:20px; line-height: 22px; color:#999999;margin-left:4px; margin-top:2px;  }
266
.plusbtn{ font-size:20px; line-height: 22px; color:#999999;margin-left:4px; margin-top:2px;  }
267
.plusbtn.icon-appreciatefill{color:#FF9900;}
267
.plusbtn.icon-appreciatefill{color:#FF9900;}

+ 2 - 2
app/html/companyUpdata1.html

23
					<ul class="basicinfo">
23
					<ul class="basicinfo">
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
26
						<li><label>所在企业(高校/科研机构/企业名称)<em class="requiredcon"></em></label></li>
26
						<li><label>所在企业<em class="requiredcon"></em></label></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
28
						<li><label>所属部门(院系/科研室/部门名称)</label></li>
28
						<li><label>所属部门(</label></li>
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>
30
						<li><label>职位</label></li>
30
						<li><label>职位</label></li>
31
						<li class="basicfrm"><input type="text" name="position" class="mui-input-clear frmtype"></li>
31
						<li class="basicfrm"><input type="text" name="position" class="mui-input-clear frmtype"></li>

+ 2 - 2
app/html/studentUpdate1.html

23
					<ul class="basicinfo">
23
					<ul class="basicinfo">
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
26
						<li><label>所在高校(高校/科研机构/企业名称)<em class="requiredcon"></em></label></li>
26
						<li><label>所在高校<em class="requiredcon"></em></label></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
28
						<li><label>所属院系(院系/科研室/部门名称)</label></li>
28
						<li><label>所属院系</label></li>
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>						
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>						
30
						<li><label>所在城市</label></li>
30
						<li><label>所在城市</label></li>
31
						<li class="basicfrm">
31
						<li class="basicfrm">

+ 2 - 2
app/html/updateinfo1.html

23
					<ul class="basicinfo">
23
					<ul class="basicinfo">
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
24
						<li><label>姓名<em class="requiredcon"></em></label></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
25
						<li class="basicfrm"><input type="text" name="name" class="mui-input-clear frmtype"></li>
26
						<li><label>所在机构(高校/科研机构/企业名称)<em class="requiredcon"></em></label></li>
26
						<li><label>所在机构<em class="requiredcon"></em></label></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
27
						<li class="basicfrm"><input type="text" name="organization" class="mui-input-clear frmtype"><span class="authu"></span></li>
28
						<li><label>所属部门(院系/科研室/部门名称)</label></li>
28
						<li><label>所属部门</label></li>
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>
29
						<li class="basicfrm"><input type="text" name="department" class="mui-input-clear frmtype"></li>
30
						<li><label>职称</label></li>
30
						<li><label>职称</label></li>
31
						<li class="basicfrm"><input type="text" name="position" class="mui-input-clear frmtype"></li>
31
						<li class="basicfrm"><input type="text" name="position" class="mui-input-clear frmtype"></li>

+ 21 - 5
app/js/attentions.js

231
function datalistEach(datalist) {
231
function datalistEach(datalist) {
232
	mui.each(datalist, function(index, item) {
232
	mui.each(datalist, function(index, item) {
233
		/*获取头像*/
233
		/*获取头像*/
234
		console.log(JSON.stringify(item));
234
		if(item.professor.hasHeadImage == 1) {
235
		if(item.professor.hasHeadImage == 1) {
235
			var img = baseUrl + "/images/head/" + item.professor.id + "_m.jpg";
236
			var img = baseUrl + "/images/head/" + item.professor.id + "_m.jpg";
236
		} else {
237
		} else {
248

249

249
		/*判断用户是否认证*/
250
		/*判断用户是否认证*/
250
		var icon = '';
251
		var icon = '';
251
		if(item.professor.authentication == 1) {
252
			icon = '<em class="mui-icon iconfont icon-vip authicon"></em>';
253
		} else {
254
			icon = '<em class="mui-icon iconfont icon-vip unauthicon"></em>';
255
		}
252
		console.log(item.professor.authType)
253
		if(item.professor.authType) {
254
			icon = '<em class="mui-icon iconfont icon-vip authicon-cu"></em>';
255
							
256
						} else {
257
							if(item.professor.authStatus){
258
								if(item.professor.authentication==1){
259
									icon = '<em class="mui-icon iconfont icon-renzheng authicon-mana"><span>科研</span></em>';																	
260
							   }else if(item.professor.authentication==2){
261
							    	icon = '<em class="mui-icon iconfont icon-renzheng authicon-staff"><span>企业</span></em>';				
262
							    }else{
263
							    		icon = '<em class="mui-icon iconfont icon-renzheng authicon-stu"><span>学生</span></em>';						    	
264
							    }
265
							}
266
						}	
267
//		if(item.professor.authentication == 1) {
268
//			icon = '<em class="mui-icon iconfont icon-vip authicon"></em>';
269
//		} else {
270
//			icon = '<em class="mui-icon iconfont icon-vip unauthicon"></em>';
271
//		}
256

272

257
		/*获取资源信息*/
273
		/*获取资源信息*/
258
		var resources = item.professor.resources;
274
		var resources = item.professor.resources;

+ 3 - 0
app/js/companyUpdata1.js

130
				"contentType": "application/json",
130
				"contentType": "application/json",
131
				"success": function(data) {
131
				"success": function(data) {
132
					if(data.success) {
132
					if(data.success) {
133
						plus.nativeUI.showWaiting();
133
						var web = plus.webview.getWebviewById('html/companyUpdata.html');
134
						var web = plus.webview.getWebviewById('html/companyUpdata.html');
134
						mui.fire(web, "newId");
135
						mui.fire(web, "newId");
135
						mui.back();
136
						mui.back();
137
						var web3 = plus.webview.getWebviewById("html/myaccount.html");
138
						mui.fire(web3, "photoUser");
136
					} else {
139
					} else {
137
						plus.nativeUI.toast("服务器链接超时", toastStyle);
140
						plus.nativeUI.toast("服务器链接超时", toastStyle);
138
						return;
141
						return;

+ 84 - 26
app/js/myaccount.js

12
	var goFollow = document.getElementById("goFollow");
12
	var goFollow = document.getElementById("goFollow");
13
	var userImg = document.getElementById("userImg");
13
	var userImg = document.getElementById("userImg");
14
	var nameli = document.getElementById("nameli");
14
	var nameli = document.getElementById("nameli");
15
	
15
	var infobasic = document.getElementsByClassName("infobasic")[0];
16
	var oFlag;
16
	var oFlag;
17
	mui.plusReady(function() {
17
	mui.plusReady(function() {
18

18

26

26

27
		/*登录按钮*/
27
		/*登录按钮*/
28
		goLogin.addEventListener('tap', function() {
28
		goLogin.addEventListener('tap', function() {
29
			goLoginFun(); 
29
			goLoginFun();
30
		})
30
		})
31

31

32
		/*注册按钮*/
32
		/*注册按钮*/
43
		});
43
		});
44
		//在修改上传图片触发的事件
44
		//在修改上传图片触发的事件
45
		window.addEventListener('photoUser', function(event) {
45
		window.addEventListener('photoUser', function(event) {
46
		console.log(JSON.stringify(nameli.classList));
47
		for(var i=0;i<nameli.classList.length;i++){
48
			if((nameli.classList[i]!="mui-icon")&&(nameli.classList[i]!="iconfont")){
49
				nameli.classList.remove(nameli.classList[i]);
46
			console.log(JSON.stringify(nameli.classList));
47
			for(var i = 0; i < nameli.classList.length; i++) {
48
				if((nameli.classList[i] != "mui-icon") && (nameli.classList[i] != "iconfont")) {
49
					nameli.classList.remove(nameli.classList[i]);
50
				}
50
			}
51
			}
51
		}
52
			nameli.innerHTML="";
52
			nameli.innerHTML = "";
53
			userInformation();
53
			userInformation();
54
		});
54
		});
55

55

83
				})
83
				})
84

84

85
				/*我的修改专家*/
85
				/*我的修改专家*/
86
				infobasic.addEventListener('tap', function() {
87
					if(oFlag == 1) {
88
						mui.openWindow({
89
							url: '../html/proinforupdate.html',
90
							id: 'html/proinforupdate.html',
91
							show: {
92
								autoShow: false,
93
								aniShow: "slide-in-left"
94
							},
95

96
						});
97
					} else if(oFlag == 2) {
98
						/*我的修改企业工作者*/
99
						mui.openWindow({
100
							url: '../html/companyUpdata.html',
101
							id: 'html/companyUpdata.html',
102
							show: {
103
								autoShow: false,
104
								aniShow: "slide-in-left"
105
							},
106

107
						});
108
					} else if(oFlag == 3) {
109
						/*我的修改学生*/
110
						mui.openWindow({
111
							url: '../html/studentUpdata.html',
112
							id: 'html/studentUpdata.html',
113
							show: {
114
								autoShow: false,
115
								aniShow: "slide-in-left"
116
							},
117

118
						});
119
					}
120
				})
86
				oEdit.addEventListener('tap', function() {
121
				oEdit.addEventListener('tap', function() {
87
					if(oFlag == 1) {
122
					if(oFlag == 1) {
88
						mui.openWindow({
123
						mui.openWindow({
147
				type: 'GET', //http请求类型
182
				type: 'GET', //http请求类型
148
				timeout: 10000, //超时设置
183
				timeout: 10000, //超时设置
149
				async: false,
184
				async: false,
150
				success: function(data) {					
185
				success: function(data) {
151
					var $info = data.data || {};
186
					var $info = data.data || {};
152
					oFlag = $info.authentication;					
153
					if(data.success && data.data) { 
187
					oFlag = $info.authentication;
188
					console.log(oFlag)
189
					if(data.success && data.data) {
154
						document.getElementById("userName").innerText = $info.name || '';
190
						document.getElementById("userName").innerText = $info.name || '';
155
						var userTitle = document.getElementById("userTitle");
191
						var userTitle = document.getElementById("userTitle");
156
						var userPosition = document.getElementById("userPosition");
192
						var userPosition = document.getElementById("userPosition");
158
						var userMechanism = document.getElementById("userMechanism");
194
						var userMechanism = document.getElementById("userMechanism");
159
						var userCity = document.getElementById("userCity");
195
						var userCity = document.getElementById("userCity");
160
						var zixunOk = document.getElementById("zixunOk");
196
						var zixunOk = document.getElementById("zixunOk");
197
						if($info.title) {
198
							if($info.office) {
199
								userTitle.innerText = $info.title + ","
200
							} else {
201
								userTitle.innerText = $info.title
202
							}
161

203

162
						($info.title) ? userTitle.innerText = $info.title: userTitle.innerText = '';
163
						($info.office) ? userPosition.innerText = " , " + $info.office: userPosition.innerText = '';
164
						($info.department != '') ? userDepartment.innerText = $info.department: userDepartment.innerText = '';
165
						($info.orgName != '') ? userMechanism.innerText = " , " + $info.orgName: userMechanism.innerText = '';
166
						($info.address != '') ? userCity.innerText = " | " + $info.address: userCity.innerText = '';
204
						}
205
						($info.office) ? userPosition.innerText =$info.office: userPosition.innerText = '';
206
						if($info.department) {
207
							if($info.orgName) {
208
								userDepartment.innerText=$info.department+","
209
							}else{
210
								if($info.address){
211
									userDepartment.innerText=$info.department+"|"
212
								}else{
213
									userDepartment.innerText=$info.department;
214
								}
215
							}
216
						}
217
						if($info.orgName) {
218
							if($info.address){
219
									userMechanism.innerText=$info.orgName+"|"
220
								}else{
221
									userMechanism.innerText=$info.orgName;
222
								}
223
						}
224
						($info.address != '') ? userCity.innerText =$info.address: userCity.innerText = '';
167
						($info.consultCount != '') ? zixunOk.innerText = $info.consultCount: zixunOk.innerText = '0';
225
						($info.consultCount != '') ? zixunOk.innerText = $info.consultCount: zixunOk.innerText = '0';
168

226

169
						var startLeval = parseInt($info.starLevel);
227
						var startLeval = parseInt($info.starLevel);
181
							nameli.classList.add('icon-vip');
239
							nameli.classList.add('icon-vip');
182
							nameli.classList.add('authicon-cu');
240
							nameli.classList.add('authicon-cu');
183
						} else {
241
						} else {
184
							if($info.authStatus){
185
								if($info.authentication==1){
242
							if($info.authStatus) {
243
								if($info.authentication == 1) {
186
									nameli.classList.add('icon-renzheng');
244
									nameli.classList.add('icon-renzheng');
187
									nameli.classList.add('authicon-mana');
245
									nameli.classList.add('authicon-mana');
188
									nameli.innerHTML="<span>科研</span>";
189
							   }else if($info.authentication==2){
190
							    	nameli.classList.add('icon-renzheng');
246
									nameli.innerHTML = "<span>科研</span>";
247
								} else if($info.authentication == 2) {
248
									nameli.classList.add('icon-renzheng');
191
									nameli.classList.add('authicon-staff');
249
									nameli.classList.add('authicon-staff');
192
									nameli.innerHTML="<span>企业</span>";
193
							   }else{
194
							    	nameli.classList.add('icon-renzheng');
250
									nameli.innerHTML = "<span>企业</span>";
251
								} else {
252
									nameli.classList.add('icon-renzheng');
195
									nameli.classList.add('authicon-stu');
253
									nameli.classList.add('authicon-stu');
196
									nameli.innerHTML="<span>学生</span>";
197
							    }
254
									nameli.innerHTML = "<span>学生</span>";
255
								}
198
							}
256
							}
199
						}
257
						}
200

258


+ 4 - 4
app/js/studentUpdate1.js

125
				"data": mess1,
125
				"data": mess1,
126
				"contentType": "application/json",
126
				"contentType": "application/json",
127
				"success": function(data) {
127
				"success": function(data) {
128
					if(data.success) {
129
						
128
					if(data.success) {	
129
						plus.nativeUI.showWaiting();
130
						var web = plus.webview.getWebviewById("html/studentUpdata.html");
130
						var web = plus.webview.getWebviewById("html/studentUpdata.html");
131
						mui.fire(web, "newId");
131
						mui.fire(web, "newId");
132
//						var web3 = plus.webview.getWebviewById("html/myaccount.html");
133
//						mui.fire(web3, "photoUser");
134
						mui.back();
132
						mui.back();
133
						var web3 = plus.webview.getWebviewById("html/myaccount.html");
134
						mui.fire(web3, "photoUser");						
135
					} else {
135
					} else {
136
						plus.nativeUI.toast("服务器链接超时", toastStyle);
136
						plus.nativeUI.toast("服务器链接超时", toastStyle);
137
						return;
137
						return;

+ 1 - 0
app/js/updateinfo-res01.js

58
					"success": function(data) {
58
					"success": function(data) {
59
						var y = JSON.stringify(data)
59
						var y = JSON.stringify(data)
60
						if(data.success) {
60
						if(data.success) {
61
							plus.nativeUI.showWaiting();
61
							var web = plus.webview.getWebviewById("resinforupdate.html");
62
							var web = plus.webview.getWebviewById("resinforupdate.html");
62
							mui.fire(web, "resourceMess");
63
							mui.fire(web, "resourceMess");
63
							mui.back();
64
							mui.back();

+ 1 - 0
app/js/updateinfo-res02.js

84
				timeout: 10000, //超时设置
84
				timeout: 10000, //超时设置
85
				success: function(data) {
85
				success: function(data) {
86
					if(data.success) {
86
					if(data.success) {
87
						plus.nativeUI.showWaiting();
87
						var web = plus.webview.getWebviewById("resinforupdate.html");
88
						var web = plus.webview.getWebviewById("resinforupdate.html");
88
						mui.fire(web, "resourceMess");
89
						mui.fire(web, "resourceMess");
89
						mui.back();
90
						mui.back();

+ 1 - 1
app/js/updateinfo-res03.js

84
				success: function(data) {
84
				success: function(data) {
85
					console.log(JSON.stringify(data));
85
					console.log(JSON.stringify(data));
86
					if(data.success) {
86
					if(data.success) {
87

87
							plus.nativeUI.showWaiting();
88
						var web = plus.webview.getWebviewById("resinforupdate.html");
88
						var web = plus.webview.getWebviewById("resinforupdate.html");
89
						mui.fire(web, "resourceMess");
89
						mui.fire(web, "resourceMess");
90
						mui.back();
90
						mui.back();

+ 1 - 0
app/js/updateinfo-res04.js

35
				success: function(data) {
35
				success: function(data) {
36
					console.log(data.success);
36
					console.log(data.success);
37
					if(data.success) {
37
					if(data.success) {
38
						plus.nativeUI.showWaiting();
38
						var web = plus.webview.getWebviewById("resinforupdate.html");
39
						var web = plus.webview.getWebviewById("resinforupdate.html");
39
						mui.fire(web, "resourceMess");
40
						mui.fire(web, "resourceMess");
40
						mui.back();
41
						mui.back();

+ 1 - 0
app/js/updateinfo-res05.js

36
				timeout: 10000, //超时设置
36
				timeout: 10000, //超时设置
37
				success: function(data) {
37
				success: function(data) {
38
					if(data.success) {
38
					if(data.success) {
39
						plus.nativeUI.showWaiting();
39
						var web = plus.webview.getWebviewById("resinforupdate.html");
40
						var web = plus.webview.getWebviewById("resinforupdate.html");
40
						mui.fire(web, "resourceMess");
41
						mui.fire(web, "resourceMess");
41
						mui.back();
42
						mui.back();

+ 3 - 2
app/js/updateinfo1.js

133
				"contentType": "application/json",
133
				"contentType": "application/json",
134
				"success": function(data) {
134
				"success": function(data) {
135
					if(data.success) {
135
					if(data.success) {
136
						plus.nativeUI.showWaiting();
136
						var web = plus.webview.getWebviewById("html/proinforupdate.html");
137
						var web = plus.webview.getWebviewById("html/proinforupdate.html");
137
						mui.fire(web, "newId");
138
						mui.fire(web, "newId");
138
						var web3 = plus.webview.getWebviewById("html/myaccount.html");
139
						mui.fire(web3, "photoUser");
140
						mui.back();
139
						mui.back();
140
						var web3 = plus.webview.getWebviewById("html/myaccount.html");
141
						mui.fire(web3, "photoUser");						
141
					} else {
142
					} else {
142
						plus.nativeUI.toast("服务器链接超时", toastStyle);
143
						plus.nativeUI.toast("服务器链接超时", toastStyle);
143
						return;
144
						return;

+ 2 - 0
app/js/updateinfo10.js

75
					var y=JSON.stringify(data)					
75
					var y=JSON.stringify(data)					
76
					if (data.success) 
76
					if (data.success) 
77
					{
77
					{
78
						plus.nativeUI.showWaiting();
78
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
79
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
79
						mui.fire(web,"newId");						
80
						mui.fire(web,"newId");						
80
						mui.back();
81
						mui.back();
103
					"type" : "DELETE",
104
					"type" : "DELETE",
104
					"success" : function($data) {
105
					"success" : function($data) {
105
						if ($data.success) {
106
						if ($data.success) {
107
							plus.nativeUI.showWaiting();
106
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
108
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
107
							mui.fire(web,"newId");						
109
							mui.fire(web,"newId");						
108
							mui.back();
110
							mui.back();

+ 2 - 0
app/js/updateinfo11.js

69
					var y=JSON.stringify(data)					
69
					var y=JSON.stringify(data)					
70
					if (data.success) 
70
					if (data.success) 
71
					{
71
					{
72
						plus.nativeUI.showWaiting();
72
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
73
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
73
						mui.fire(web,"newId");						
74
						mui.fire(web,"newId");						
74
						mui.back();
75
						mui.back();
97
					"type" : "DELETE",
98
					"type" : "DELETE",
98
					"success" : function($data) {
99
					"success" : function($data) {
99
						if ($data.success) {
100
						if ($data.success) {
101
							plus.nativeUI.showWaiting();
100
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
102
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
101
							mui.fire(web,"newId");						
103
							mui.fire(web,"newId");						
102
							mui.back();
104
							mui.back();

+ 6 - 3
app/js/updateinfo2.js

19
					console.log(ws.flag);
19
					console.log(ws.flag);
20
					if(data.success) {
20
					if(data.success) {
21
						if(ws.flag == 1) {
21
						if(ws.flag == 1) {
22
							ws.close();
22
							plus.nativeUI.showWaiting();
23
							var web = plus.webview.getWebviewById("html/companyUpdata.html");
23
							var web = plus.webview.getWebviewById("html/companyUpdata.html");
24
							mui.fire(web, "newId");
24
							mui.fire(web, "newId");
25
							mui.back();
25
						} else if(ws.flag == 2) {
26
						} else if(ws.flag == 2) {
26
							ws.close();
27
							plus.nativeUI.showWaiting();
27
							var web = plus.webview.getWebviewById("html/proinforupdate.html");
28
							var web = plus.webview.getWebviewById("html/proinforupdate.html");
28
							mui.fire(web, "newId");
29
							mui.fire(web, "newId");
30
							mui.back();
29
						} else if(ws.flag == 0) {
31
						} else if(ws.flag == 0) {
30
							ws.close();
32
							plus.nativeUI.showWaiting();
31
							var web = plus.webview.getWebviewById("html/studentUpdata.html");
33
							var web = plus.webview.getWebviewById("html/studentUpdata.html");
32
							mui.fire(web, "newId");
34
							mui.fire(web, "newId");
35
							mui.back();
33
						}
36
						}
34

37

35
					}
38
					}

+ 2 - 1
app/js/updateinfo3.js

77
				type: 'POST', //http请求类型
77
				type: 'POST', //http请求类型
78
				timeout: 10000, //超时设置
78
				timeout: 10000, //超时设置
79
				success: function(data) {				
79
				success: function(data) {				
80
					if(data.success) {						
80
					if(data.success) {	
81
						plus.nativeUI.showWaiting();
81
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
82
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
82
						mui.fire(web,"newId");
83
						mui.fire(web,"newId");
83
						mui.back();					
84
						mui.back();					

+ 1 - 0
app/js/updateinfo4.js

69
				"success" : function(data) {					
69
				"success" : function(data) {					
70
					if (data.success) 
70
					if (data.success) 
71
					{
71
					{
72
						plus.nativeUI.showWaiting();
72
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
73
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
73
						mui.fire(web,"newId");						
74
						mui.fire(web,"newId");						
74
						mui.back();
75
						mui.back();

+ 1 - 1
app/js/updateinfo5.js

79
				success: function(data) {
79
				success: function(data) {
80
					console.log(data.success);
80
					console.log(data.success);
81
					if(data.success) {
81
					if(data.success) {
82
						
82
						plus.nativeUI.showWaiting();
83
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
83
						var web=plus.webview.getWebviewById("html/proinforupdate.html");
84
						mui.fire(web,"newId");						
84
						mui.fire(web,"newId");						
85
						mui.back();						
85
						mui.back();						

+ 3 - 2
app/js/updateinfo6.js

81
				"data" :ws.edu?JSON.stringify($data):$data,
81
				"data" :ws.edu?JSON.stringify($data):$data,
82
				"contentType" : ws.edu ? "application/json"
82
				"contentType" : ws.edu ? "application/json"
83
						: "application/x-www-form-urlencoded",
83
						: "application/x-www-form-urlencoded",
84
				"success" : function(data) {	
84
				"success" : function(data) {
85
					if (data.success) 
85
					if (data.success) 
86
					{
86
					{  plus.nativeUI.showWaiting();
87
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
87
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
88
						mui.fire(web,"newId");						
88
						mui.fire(web,"newId");						
89
						mui.back();
89
						mui.back();
117
					"type" : "DELETE",
117
					"type" : "DELETE",
118
					"success" : function($data) {
118
					"success" : function($data) {
119
						if ($data.success) {
119
						if ($data.success) {
120
							 plus.nativeUI.showWaiting();
120
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
121
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
121
							mui.fire(web,"newId");						
122
							mui.fire(web,"newId");						
122
							mui.back();
123
							mui.back();

+ 2 - 0
app/js/updateinfo7.js

97
					var y=JSON.stringify(data)					
97
					var y=JSON.stringify(data)					
98
					if (data.success) 
98
					if (data.success) 
99
					{
99
					{
100
						 plus.nativeUI.showWaiting();
100
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
101
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
101
						mui.fire(web,"newId");						
102
						mui.fire(web,"newId");						
102
						mui.back();
103
						mui.back();
130
					"type" : "DELETE",
131
					"type" : "DELETE",
131
					"success" : function($data) {
132
					"success" : function($data) {
132
						if ($data.success) {
133
						if ($data.success) {
134
							 plus.nativeUI.showWaiting();
133
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
135
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
134
							mui.fire(web,"newId");						
136
							mui.fire(web,"newId");						
135
							mui.back();
137
							mui.back();

+ 2 - 1
app/js/updateinfo8.js

88
				"success" : function(data) {
88
				"success" : function(data) {
89
					var y=JSON.stringify(data)					
89
					var y=JSON.stringify(data)					
90
					if (data.success) 
90
					if (data.success) 
91
					{
91
					{	plus.nativeUI.showWaiting();
92
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
92
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
93
						mui.fire(web,"newId");						
93
						mui.fire(web,"newId");						
94
						mui.back();
94
						mui.back();
118
					"type" : "DELETE",
118
					"type" : "DELETE",
119
					"success" : function($data) {
119
					"success" : function($data) {
120
						if ($data.success) {
120
						if ($data.success) {
121
							plus.nativeUI.showWaiting();
121
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
122
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
122
							mui.fire(web,"newId");						
123
							mui.fire(web,"newId");						
123
							mui.back();
124
							mui.back();

+ 2 - 0
app/js/updateinfo9.js

73
					console.log(data);
73
					console.log(data);
74
					if (data.success) 
74
					if (data.success) 
75
					{
75
					{
76
						plus.nativeUI.showWaiting();
76
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
77
						var web=plus.webview.getWebviewById("proinforupdate-more.html");
77
						mui.fire(web,"newId");						
78
						mui.fire(web,"newId");						
78
						mui.back();
79
						mui.back();
101
					"type" : "DELETE",
102
					"type" : "DELETE",
102
					"success" : function($data) {
103
					"success" : function($data) {
103
						if ($data.success) {
104
						if ($data.success) {
105
							plus.nativeUI.showWaiting();
104
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
106
							var web=plus.webview.getWebviewById("proinforupdate-more.html");
105
							mui.fire(web,"newId");						
107
							mui.fire(web,"newId");						
106
							mui.back();
108
							mui.back();