li 7 years ago
parent
commit
7571b83f6e
2 changed files with 18 additions and 1 deletions
  1. 4 0
      app/js/needShow.js
  2. 14 1
      app/js/resourceShow.js

+ 4 - 0
app/js/needShow.js

325
			if(jubao) {
325
			if(jubao) {
326
				jubao.close();
326
				jubao.close();
327
			}
327
			}
328
			setTimeout(function(){
329
				
330
			
328
			if(userid && userid != null && userid != "null") {
331
			if(userid && userid != null && userid != "null") {
329
				mui.openWindow({
332
				mui.openWindow({
330
								url: '../html/weChat.html',
333
								url: '../html/weChat.html',
342
			}else{
345
			}else{
343
				isLogin();
346
				isLogin();
344
			}
347
			}
348
			},100)
345
		}
349
		}
346
		//立即回复新建跳转咨询
350
		//立即回复新建跳转咨询
347
		function createConsult() {
351
		function createConsult() {

+ 14 - 1
app/js/resourceShow.js

451
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
451
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
452
			var flag = 'ziyuan';
452
			var flag = 'ziyuan';
453
			var consulttitle = oresourceName.innerHTML;
453
			var consulttitle = oresourceName.innerHTML;
454
			var nwaiting = plus.nativeUI.showWaiting(); //显示原生等待框
454
			//var nwaiting = plus.nativeUI.showWaiting(); //显示原生等待框
455
			var wechat=plus.webview.getWebviewById('weChat.html');
456
			var jubao=plus.webview.getWebviewById('jubao.html');
457
			
458
			if(wechat) {
459
				wechat.close();
460
			}
461
			if(jubao) {
462
				jubao.close()
463
			}
464
			setTimeout(function(){
465
				
466
			
455
			if(reType=="1"){
467
			if(reType=="1"){
456
				mui.openWindow({
468
				mui.openWindow({
457
				url: '../html/weChat.html',
469
				url: '../html/weChat.html',
496
					}
508
					}
497
				});
509
				});
498
			}
510
			}
511
			},100);
499
		}
512
		}
500
	});
513
	});
501
514