jack 8 年之前
父节点
当前提交
9c97d7292c
共有 2 个文件被更改,包括 11 次插入3 次删除
  1. 5 1
      app/js/articleShow.js
  2. 6 2
      app/js/resourceShow.js

+ 5 - 1
app/js/articleShow.js

@ -505,11 +505,15 @@ mui.plusReady(function() {
505 505
			}, false);
506 506
		} else if(datatype == 2) {
507 507
			plus.nativeUI.showWaiting();
508
			plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
508
			var webviewShow=plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
509 509
				articleId: id,
510 510
				ownerid: ownerid,
511 511
				oFlag: 1
512 512
			});
513
			webviewShow.addEventListener("loaded", function() {
514
				setTimeout(function(){plus.webview.currentWebview().close()},2000)
515
				
516
			}, false);
513 517
		}
514 518
		
515 519
	});

+ 6 - 2
app/js/resourceShow.js

@ -378,11 +378,15 @@ mui.plusReady(function() {
378 378
	});
379 379
	//感兴趣的资源详情
380 380
	mui('#likeResource').on('tap', 'li', function() {
381
		var resouId = this.getAttribute("data-id");
381
		var webviewShow=resouId = this.getAttribute("data-id");
382 382
		plus.nativeUI.showWaiting();
383
		plus.webview.create("../html/resourceShow.html", 'resourceShow.html', {}, {
383
		var plus.webview.create("../html/resourceShow.html", 'resourceShow.html', {}, {
384 384
			resourceId: resouId
385 385
		});
386
		webviewShow.addEventListener("loaded", function() {
387
				setTimeout(function(){plus.webview.currentWebview().close()},2000)
388
				
389
			}, false);
386 390
	});
387 391
	//判断是否登录,登录才可咨询,关注,收藏
388 392
	function isLogin() {