Explorar el Código

需求联系人

luyanan %!s(int64=6) %!d(string=hace) años
padre
commit
919f9ba2af
Se han modificado 3 ficheros con 15 adiciones y 17 borrados
  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,11 +30,9 @@ function pulldownRefresh() {
30 30
mui.plusReady(function() {
31 31
	mui("#demandList").on("tap", "li", function() {
32 32
		var oDemandId = this.getAttribute("data-id");
33
		var poD=this.getAttribute("data-creator");
34 33
		plus.nativeUI.showWaiting();
35 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,7 +4,7 @@ mui.ready(function() {
4 4
		var userid = plus.storage.getItem('userid');
5 5
		var ws = plus.webview.currentWebview();
6 6
		var demandId = ws.demanid;
7
		var professorId=ws.professorId;
7
		var professorId;
8 8
		var mySelf=document.getElementsByClassName("mySelf")[0];
9 9
		var mySelf2=document.getElementsByClassName("mySelf2")[0];
10 10
		var notSelf=document.getElementsByClassName("notSelf")[0];
@ -144,6 +144,7 @@ mui.ready(function() {
144 144
						ws.show("slide-in-right", 150);
145 145
						
146 146
						var $da=data.data;
147
						professorId=$da.creator;
147 148
						document.getElementById("needTit").innerHTML=$da.title; //名字
148 149
						document.getElementById("demandTit").innerHTML=$da.title; //名字
149 150
						document.getElementById("oTime").innerHTML=commenTime($da.createTime);
@ -332,17 +333,17 @@ mui.ready(function() {
332 333
			
333 334
			if(userid && userid != null && userid != "null") {
334 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 348
			}else{
348 349
				isLogin();

+ 1 - 2
app/js/userInforShow.js

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