Ver Código Fonte

留言及跳转

jack 8 anos atrás
pai
commit
3f0e3b586d
3 arquivos alterados com 23 adições e 50 exclusões
  1. 7 12
      app/js/articleShow.js
  2. 5 13
      app/js/resourceShow.js
  3. 11 25
      app/js/searchListNew.js

+ 7 - 12
app/js/articleShow.js

@ -421,9 +421,11 @@ mui.plusReady(function() {
421 421
			}
422 422
		},
423 423
		storePostUp: function($data) {
424
			plus.nativeUI.toast("收藏成功", toastStyle);
424 425
			document.getElementsByClassName("icon-shoucang")[0].classList.add("icon-yishoucang");
425 426
		},
426 427
		storeDeleteUp: function($data) {
428
			plus.nativeUI.toast("已取消收藏", toastStyle);
427 429
			document.getElementsByClassName("icon-shoucang")[0].classList.remove("icon-yishoucang");
428 430
		},
429 431
	}
@ -790,17 +792,10 @@ mui.plusReady(function() {
790 792
	}
791 793

792 794
	mui(".tagList").on("tap", "li", function() {
793
		mui.openWindow({
794
			url: '../html/searchListNew.html',
795
			id: '../html/searchListNew.html',
796
			show: {
797
				autoShow: false,
798
				aniShow: "fade-in",
799
			},
800
			extras: {
801
				key: this.getElementsByTagName("span")[0].innerHTML,
802
				qiFlag: 3
803
			}
804
		});
795
		 plus.nativeUI.showWaiting();
796
		var web = plus.webview.create("../html/searchListNew.html", "../html/searchListNew.html", {}, {
797
			key: this.getElementsByTagName("span")[0].innerHTML,
798
			qiFlag: 3
799
		}); 
805 800
	})
806 801
});

+ 5 - 13
app/js/resourceShow.js

@ -170,19 +170,11 @@ mui.plusReady(function() {
170 170
	//关键词标签点击进去搜索
171 171
	mui(".tagList").on("tap","li",function(){
172 172
		var tagText = this.getElementsByTagName("span")[0].innerText;
173
		mui.openWindow({
174
			url: '../html/searchListNew.html',
175
			id: '../html/searchListNew.html',
176
			show:{
177
		      autoShow:false,
178
		      aniShow:"fade-in",
179
		    },
180
			extras:{
181
		      key: tagText,
182
		      qiFlag: 2
183
		    }
184
		});
185

173
		 plus.nativeUI.showWaiting();
174
		var web = plus.webview.create("../html/searchListNew.html", "../html/searchListNew.html", {}, {
175
			key: tagText,
176
			qiFlag: 2
177
		}); 
186 178
	})
187 179
	/*资源里面相关文章*/
188 180
	function relatedArticles() {

+ 11 - 25
app/js/searchListNew.js

@ -493,32 +493,18 @@ mui.plusReady(function() {
493 493
			var datatype = this.getAttribute("data-type");
494 494
			var ownerid = this.getAttribute("owner-id");
495 495
			if(datatype == 1) {
496
				mui.openWindow({
497
					url: '../html/professorArticle.html',
498
					id: 'html/professorArticle.html',
499
					show: {
500
						autoShow: false,
501
						aniShow: "slide-in-right",
502
					},
503
					extras: {
504
						articleId: id,
505
						ownerid: ownerid,
506
					}
507
				});
496
				plus.nativeUI.showWaiting();
497
			plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
498
				articleId: id,
499
				ownerid: ownerid,
500
			});
508 501
			} else if(datatype == 2) {
509
				mui.openWindow({
510
					url: '../html/professorArticle.html',
511
					id: 'html/professorArticle.html',
512
					show: {
513
						autoShow: false,
514
						aniShow: "slide-in-right",
515
					},
516
					extras: {
517
						articleId: id,
518
						ownerid: ownerid,
519
						oFlag: 1
520
					}
521
				});
502
				plus.nativeUI.showWaiting();
503
			plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
504
				articleId: id,
505
				ownerid: ownerid,
506
				oFlag: 1
507
			});
522 508
			}
523 509
		}
524 510
	})