Bladeren bron

消息bug更正

jack 7 jaren geleden
bovenliggende
commit
17d305837a
3 gewijzigde bestanden met toevoegingen van 4 en 28 verwijderingen
  1. 1 0
      app/js/needSearch.js
  2. 1 27
      app/js/needShow.js
  3. 2 1
      app/js/userInforShow.js

+ 1 - 0
app/js/needSearch.js

@ -117,6 +117,7 @@ function demandOnePase() {
117 117
							var liStr=document.createElement("li");
118 118
							liStr.className="mui-table-view-cell";
119 119
							liStr.setAttribute( "data-id",$info[i].id);
120
							liStr.setAttribute( "data-creator",$info[i].creator);
120 121
							document.getElementById("demandList").appendChild(liStr);
121 122
							demandHtml($info[i],liStr);
122 123
						}

+ 1 - 27
app/js/needShow.js

@ -330,33 +330,7 @@ mui.ready(function() {
330 330
									flag:1
331 331
								}
332 332
							})
333
				return;
334
				mui.ajax(baseUrl+"/ajax/consult/byDemand",{
335
					"type": "GET",
336
					"async": false,
337
					"data":{
338
						"demandId":demandId,
339
						"professorId":userid
340
					},
341
					"success": function(data) {
342
						if(data.success) {
343
							console.log(JSON.stringify(data))
344
							if(data.data == null) {
345
								var btn = ["确定", "取消"];
346
								mui.confirm("确认回复该需求?", "提示", btn, function(e) {
347
									if(e.index == 0) {
348
										createConsult()
349
									}
350
								})
351
							}else{
352
								webviewShow = plus.webview.create("../html/chats.html", 'chats.html', {}, {
353
									'consultId': data.data,
354
									'consultantId': userid
355
								});
356
							}
357
						}
358
					}
359
				});
333
				
360 334
			}else{
361 335
				isLogin();
362 336
			}

+ 2 - 1
app/js/userInforShow.js

@ -233,7 +233,8 @@ mui.plusReady(function() {
233 233
		var dId=this.getAttribute("id");
234 234
		plus.nativeUI.showWaiting();
235 235
		plus.webview.create("../html/needShow.html", 'needShow.html', {}, {
236
			demanid: dId
236
			demanid: dId,
237
			professorId:proId
237 238
		});
238 239
	})
239 240
	function getResource() {