Browse Source

从咨询列表页进入聊天页加载的完善

xiaoai_123 8 years ago
parent
commit
80c43ec5c1
2 changed files with 15 additions and 4 deletions
  1. 3 2
      app/js/chats.js
  2. 12 2
      app/js/consult.js

+ 3 - 2
app/js/chats.js

@ -93,10 +93,11 @@ mui.ready(function() {
93 93
							
94 94
						}
95 95
					} 
96
					
96
					plus.nativeUI.closeWaiting();
97
					plus.webview.currentWebview().show("slide-in-right",150);
97 98
				},
98 99
				error:function(xhr,type,errorThrown){
99
					
100
					plus.nativeUI.toast("服务器链接超时", toastStyle);
100 101
				}
101 102
			});
102 103
		

+ 12 - 2
app/js/consult.js

@ -143,7 +143,7 @@ function initdata() {
143 143

144 144
//打开子页面
145 145
mui(".mui-table-view").on('tap','.itemBtn',function(){
146
	mui.openWindow({
146
	/*mui.openWindow({
147 147
		id:'chats.html',
148 148
	    url:'chats.html',
149 149
	    extras:{
@ -151,7 +151,17 @@ mui(".mui-table-view").on('tap','.itemBtn',function(){
151 151
	    	'consultId':this.getAttribute("consultId"),//自定义扩展参数,可以用来处理页面间传值
152 152
	    	'consultantId':this.getAttribute("consultantId")//咨询者id
153 153
	    }
154
	});
154
	});*/
155
	
156
	var nwaiting = plus.nativeUI.showWaiting();//显示原生等待框
157
	webviewShow = plus.webview.create("../html/chats.html",'chats.html',{},
158
	{'manFlag':this.getAttribute("manFlag"),'consultId':this.getAttribute("consultId"),'consultantId':this.getAttribute("consultantId")});
159
	
160
    webviewShow.addEventListener("loaded", function() {
161
        
162
    }, false);
163

164
	
155 165
});
156 166

157 167