Browse Source

1.咨询列表中专家信息逗号Bug
2.咨询申请,已完成咨询Bug

dell 8 years ago
parent
commit
15414d76a1
2 changed files with 11 additions and 44 deletions
  1. 4 39
      app/js/consult.js
  2. 7 5
      app/js/consultapply.js

+ 4 - 39
app/js/consult.js

@ -295,48 +295,13 @@ function eachData(userid,datalist) {
295 295
		}
296 296
		 
297 297
		//专家职称
298
		(!item["professor"]["title"])? zhicehng = '' : zhicehng = item["professor"]["title"];
299
		(!item["professor"]["office"])? zhiwei  = ''  : zhiwei = item["professor"]["office"] + ',';
300
		(!item["professor"]["address"])? address = '' : address = '|'+ item["professor"]["address"];
298
		(item["professor"]["title"])?  zhicehng = item["professor"]["title"]: zhicehng = '';
299
		(item["professor"]["office"])?   zhiwei = ','+item["professor"]["office"]: zhiwei  = '';
300
		(item["professor"]["orgName"])?   orgName = ''+item["professor"]["orgName"]: orgName  = '';
301
		(item["professor"]["address"])?  address = ' | '+ item["professor"]["address"] :address = '' ;
301 302
		(item["professor"]["authentication"] == true)? proModify = 'authicon' : proModify = 'unauthicon';
302 303
		(item["professor"]["hasHeadImage"] == 0) ? photoUrl = "../images/default-photo.jpg":photoUrl = baseUrl + "/images/head/" + item["professor"].id + "_m.jpg";
303 304
		
304
		if(item["professor"]["title"] == null || item["professor"]["title"] == undefined ) {
305
			zhicehng = '';
306
		}else {
307
			if(item["professor"]["office"] == ' ' && item["professor"]["orgName"] == ' '){
308
				zhicehng = item["professor"]["title"];//职称
309
			}
310
			zhicehng = item["professor"]["title"]+',';//职称
311
		};
312
		if(item["professor"]["office"] == null || item["professor"]["office"] == undefined ) {
313
			zhiwei = '';
314
		}else {
315
			zhiwei = item["professor"]["office"];//职位
316
		};
317
		/*if(item["professor"]["department"] == null || item["professor"]["department"] == undefined ) {
318
			oprodepart.innerHTML = '';
319
		}else {
320
			if(item["professor"]["orgName"]){
321
				oprodepart.innerHTML = item["professor"]["department"]+',';//所在部门
322
			}else {
323
				oprodepart.innerHTML = item["professor"]["department"];
324
			}
325
		}*/
326
		if(item["professor"]["orgName"] == null || item["professor"]["orgName"] == undefined ) {
327
			orgName = '';
328
		}else {
329
			orgName = item["professor"]["orgName"];//所在机构
330
		}
331
		if(item["professor"]["address"] == null || item["professor"]["address"] == undefined ) {
332
			address = '';
333
		}else {
334
			address = ' | '+item["professor"]["address"];//所在地
335
		}
336
		
337
		
338
		
339
		
340 305
		//咨询类型,只取两个字
341 306
		if(item["consultType"]) {
342 307
			consultType = item["consultType"].substr(0,2);

+ 7 - 5
app/js/consultapply.js

@ -196,12 +196,14 @@
196 196
		ofinished.addEventListener('tap', function() {
197 197
			
198 198
			mui.openWindow({
199
				url: '../html/coophistory.html',
200
				id: 'html/coophistory.html',
199
				url: '../html/coophistory-other.html',
200
				id: 'html/coophistory-other.html',
201 201
				show: {
202
					autoShow: false,
203
					aniShow: "slide-in-left"
204
				},
202
				autoShow: false,
203
			},
204
			extras: {
205
				professorId: proId
206
			}
205 207
206 208
			});
207 209
		});