ソースを参照

消息bug更正

jack 7 年 前
コミット
17d305837a
共有3 個のファイルを変更した4 個の追加28 個の削除を含む
  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
							var liStr=document.createElement("li");
117
							var liStr=document.createElement("li");
118
							liStr.className="mui-table-view-cell";
118
							liStr.className="mui-table-view-cell";
119
							liStr.setAttribute( "data-id",$info[i].id);
119
							liStr.setAttribute( "data-id",$info[i].id);
120
							liStr.setAttribute( "data-creator",$info[i].creator);
120
							document.getElementById("demandList").appendChild(liStr);
121
							document.getElementById("demandList").appendChild(liStr);
121
							demandHtml($info[i],liStr);
122
							demandHtml($info[i],liStr);
122
						}
123
						}

+ 1 - 27
app/js/needShow.js

330
									flag:1
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
			}else{
334
			}else{
361
				isLogin();
335
				isLogin();
362
			}
336
			}

+ 2 - 1
app/js/userInforShow.js

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