Bladeren bron

绑定留言头像跳转事件

luyanan 7 jaren geleden
bovenliggende
commit
1b741c2fda
4 gewijzigde bestanden met toevoegingen van 9 en 30 verwijderingen
  1. 1 16
      app/js/articleShow.js
  2. 7 0
      app/js/leaveWords.js
  3. 0 7
      app/js/paperShow.js
  4. 1 7
      app/js/patentShow.js

+ 1 - 16
app/js/articleShow.js

@ -26,14 +26,6 @@ mui.plusReady(function() {
26 26
			});
27 27
		}
28 28
	}
29
	var leaveWord = {
30
		getLeaveWord: function($data) {
31
			console.log(JSON.stringify($data));
32
		},
33
		sendLeaveWord: function($data) {
34
			console.log(JSON.stringify($data));
35
		}
36
	}
37 29
	
38 30
	var oArticleModule = {
39 31
		articleId: oCurren.self.articleId,
@ -505,14 +497,7 @@ mui.plusReady(function() {
505 497
			cmpId: id
506 498
		});
507 499
	})
508
	/*留言*/
509
	mui('.commentBlock').on('tap', '.useHead', function() {
510
		var id = this.getAttribute("data-id");
511
		plus.nativeUI.showWaiting(); //显示原生等待框
512
		plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {
513
			proid: id
514
		});
515
	})
500
	
516 501
	/*资源浏览*/
517 502
	mui('#resourceList').on('tap', 'li', function() {
518 503
		var resouId = this.getAttribute("data-id");

+ 7 - 0
app/js/leaveWords.js

@ -192,6 +192,13 @@
192 192
		mui(".commentBlock").on("tap", ".dele", function() {
193 193
			self.LwordDel(this, this.getAttribute("data-id"));
194 194
		});
195
		mui('.commentBlock').on('tap', '.useHead', function() {
196
			var id = this.getAttribute("data-id");
197
			plus.nativeUI.showWaiting();
198
			plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {
199
				proid: id
200
			});
201
		})
195 202
		mui(".artfoot").on("tap", ".inputShow", function() {
196 203
			if(!lgin()) {
197 204
				return;

+ 0 - 7
app/js/paperShow.js

@ -690,13 +690,6 @@ function addAgree() {
690 690
	});
691 691
}
692 692
693
mui('.commentBlock').on('tap', '.useHead', function() {
694
		var id = this.getAttribute("data-id");
695
		plus.nativeUI.showWaiting(); //显示原生等待框
696
		plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {
697
			proid: id
698
		});
699
	})
700 693
//您可能感兴趣的论文
701 694
	paperInterestingList()
702 695
	function paperInterestingList(){

+ 1 - 7
app/js/patentShow.js

@ -664,13 +664,7 @@ function addAgree() {
664 664
		}
665 665
	});
666 666
}
667
mui('.commentBlock').on('tap', '.useHead', function() {
668
		var id = this.getAttribute("data-id");
669
		plus.nativeUI.showWaiting(); //显示原生等待框
670
		plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {
671
			proid: id
672
		});
673
	})
667
674 668
//您可能感兴趣的专利
675 669
	patentInterestingList()
676 670
	function patentInterestingList(){