浏览代码

点赞页面进入专家浏览页面在点击研究方向功能失效解决

jack 8 年之前
父节点
当前提交
74e5efd392
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 1
      app/js/proinfobrow.js
  2. 2 2
      app/js/researchArea.js

+ 3 - 1
app/js/proinfobrow.js

430
	mui("#professorReserachMess").on('tap', '.listbrowse,.likenum', function() {
430
	mui("#professorReserachMess").on('tap', '.listbrowse,.likenum', function() {
431
		
431
		
432
		var dataCap = this.getAttribute("dataCaption");
432
		var dataCap = this.getAttribute("dataCaption");
433
		plus.nativeUI.showWaiting();
433
		plus.nativeUI.showWaiting();
434
		plus.webview.close("researchAreaHead.html");
434
		plus.webview.create("../html/researchAreaHead.html", 'researchAreaHead.html', {}, {
435
		plus.webview.create("../html/researchAreaHead.html", 'researchAreaHead.html', {}, {
435
			dataCaption: dataCap,
436
			dataCaption: dataCap,
436
			professorId:proId
437
			professorId:proId
437
		});
438
		});
439
		
438
	});
440
	});
439
	/*咨询成功,返回专家信息*/
441
	/*咨询成功,返回专家信息*/
440
	window.addEventListener('backproinfo', function(event) {
442
	window.addEventListener('backproinfo', function(event) {

+ 2 - 2
app/js/researchArea.js

20
	document.getElementById("researchArea").innerText = wd.dataCaption;
20
	document.getElementById("researchArea").innerText = wd.dataCaption;
21
	personalMessage();
21
	personalMessage();
22
	/*进入为学术领域点赞人的浏览页面*/
22
	/*进入为学术领域点赞人的浏览页面*/
23
	/*mui("#table").on('tap', 'li', function() {
23
	mui("#table").on('tap', 'li', function() {
24
		var professId = this.getAttribute("professorId");
24
		var professId = this.getAttribute("professorId");
25
		var authentication = this.getAttribute("authentication");
25
		var authentication = this.getAttribute("authentication");
26
		var authType = this.getAttribute("authType");
26
		var authType = this.getAttribute("authType");
27
		console.log(authentication)
27
		console.log(authentication)
28
		plus.nativeUI.showWaiting();
28
		plus.nativeUI.showWaiting();
29
		if(authType == 1) {
29
		if(authType == 1) {
30
			//plus.webview.close("proinforbrow.html");
30
			plus.webview.create("../html/proinforbrow.html", 'proinforbrow.html', {}, {
31
			plus.webview.create("../html/proinforbrow.html", 'proinforbrow.html', {}, {
31
				proid: professId
32
				proid: professId
32
			});
33
			});
47
		}
48
		}
48

49

49
	});
50
	});
50
*/
51
});
51
});
52

52

53
function personalMessage(a) {
53
function personalMessage(a) {