Browse Source

需求联系人

luyanan 6 years ago
parent
commit
919f9ba2af
3 changed files with 15 additions and 17 deletions
  1. 1 3
      app/js/needSearch.js
  2. 13 12
      app/js/needShow.js
  3. 1 2
      app/js/userInforShow.js

+ 1 - 3
app/js/needSearch.js

30
mui.plusReady(function() {
30
mui.plusReady(function() {
31
	mui("#demandList").on("tap", "li", function() {
31
	mui("#demandList").on("tap", "li", function() {
32
		var oDemandId = this.getAttribute("data-id");
32
		var oDemandId = this.getAttribute("data-id");
33
		var poD=this.getAttribute("data-creator");
34
		plus.nativeUI.showWaiting();
33
		plus.nativeUI.showWaiting();
35
		plus.webview.create("../html/needShow.html", 'needShow.html', {}, {
34
		plus.webview.create("../html/needShow.html", 'needShow.html', {}, {
36
			demanid: oDemandId,
37
			professorId:poD
35
			demanid: oDemandId
38
		});
36
		});
39
	})
37
	})
40
})
38
})

+ 13 - 12
app/js/needShow.js

4
		var userid = plus.storage.getItem('userid');
4
		var userid = plus.storage.getItem('userid');
5
		var ws = plus.webview.currentWebview();
5
		var ws = plus.webview.currentWebview();
6
		var demandId = ws.demanid;
6
		var demandId = ws.demanid;
7
		var professorId=ws.professorId;
7
		var professorId;
8
		var mySelf=document.getElementsByClassName("mySelf")[0];
8
		var mySelf=document.getElementsByClassName("mySelf")[0];
9
		var mySelf2=document.getElementsByClassName("mySelf2")[0];
9
		var mySelf2=document.getElementsByClassName("mySelf2")[0];
10
		var notSelf=document.getElementsByClassName("notSelf")[0];
10
		var notSelf=document.getElementsByClassName("notSelf")[0];
144
						ws.show("slide-in-right", 150);
144
						ws.show("slide-in-right", 150);
145
						
145
						
146
						var $da=data.data;
146
						var $da=data.data;
147
						professorId=$da.creator;
147
						document.getElementById("needTit").innerHTML=$da.title; //名字
148
						document.getElementById("needTit").innerHTML=$da.title; //名字
148
						document.getElementById("demandTit").innerHTML=$da.title; //名字
149
						document.getElementById("demandTit").innerHTML=$da.title; //名字
149
						document.getElementById("oTime").innerHTML=commenTime($da.createTime);
150
						document.getElementById("oTime").innerHTML=commenTime($da.createTime);
332
			
333
			
333
			if(userid && userid != null && userid != "null") {
334
			if(userid && userid != null && userid != "null") {
334
				mui.openWindow({
335
				mui.openWindow({
335
								url: '../html/weChat.html',
336
								id: 'weChat.html',
337
								show: {
338
									autoShow: true,
339
									aniShow: "slide-in-right",
340
								},
341
								extras: {
342
									professorId: professorId,
343
									flag:1
344
								}
345
							})
336
					url: '../html/weChat.html',
337
					id: 'weChat.html',
338
					show: {
339
						autoShow: true,
340
						aniShow: "slide-in-right",
341
					},
342
					extras: {
343
						professorId: professorId,
344
						flag:1
345
					}
346
				})
346
				
347
				
347
			}else{
348
			}else{
348
				isLogin();
349
				isLogin();

+ 1 - 2
app/js/userInforShow.js

693
				var dId=this.getAttribute("data-id");
693
				var dId=this.getAttribute("data-id");
694
				plus.nativeUI.showWaiting();
694
				plus.nativeUI.showWaiting();
695
				plus.webview.create("../html/needShow.html", 'needShow.html', {}, {
695
				plus.webview.create("../html/needShow.html", 'needShow.html', {}, {
696
					demanid: dId,
697
					professorId:proId
696
					demanid: dId
698
				});
697
				});
699
			})
698
			})
700
			mui("#QAShow").on("tap","li",function(){
699
			mui("#QAShow").on("tap","li",function(){