浏览代码

Merge remote-tracking branch 'origin/dev' into test

luyanan 7 年之前
父节点
当前提交
4fe653c0c9
共有 5 个文件被更改,包括 16 次插入6 次删除
  1. 4 0
      app/index.html
  2. 1 1
      app/js/consultlistNew.js
  3. 2 0
      app/js/updateBasic-city.js
  4. 6 3
      app/js/updateBasic.js
  5. 3 2
      app/js/userInforShow.js

+ 4 - 0
app/index.html

146
	mui('.mui-bar-tab').on('tap', 'a', function(e) {
146
	mui('.mui-bar-tab').on('tap', 'a', function(e) {
147
		var targetTab = this.getAttribute('href');
147
		var targetTab = this.getAttribute('href');
148
		var num = this.getAttribute('dataid');
148
		var num = this.getAttribute('dataid');
149
		if(num==2) {
150
			var web3 = plus.webview.getWebviewById("consultlistNew.html");
151
		   mui.fire(web3, "newId");
152
		}
149
		if(num==3){
153
		if(num==3){
150
			var myPage = plus.webview.getWebviewById('html/myaccount.html');
154
			var myPage = plus.webview.getWebviewById('html/myaccount.html');
151
				mui.fire(myPage,'mPage', {});	
155
				mui.fire(myPage,'mPage', {});	

+ 1 - 1
app/js/consultlistNew.js

165
				timeout: 10000, //超时时间设置为10秒;
165
				timeout: 10000, //超时时间设置为10秒;
166
				traditional: true, //传数组必须加这个
166
				traditional: true, //传数组必须加这个
167
				success: function(data) {
167
				success: function(data) {
168
168
					console.log(JSON.stringify(data))
169
					if(data.success) {
169
					if(data.success) {
170
						$("#consultList").html("");
170
						$("#consultList").html("");
171
						var $data = data.data;
171
						var $data = data.data;

+ 2 - 0
app/js/updateBasic-city.js

1
mui.ready(function() {
1
mui.ready(function() {
2
	mui.plusReady(function() {
2
	mui.plusReady(function() {
3
		var web = plus.webview.currentWebview();
3
		var web = plus.webview.currentWebview();
4
		console.log(JSON.stringify(web));
4
		var city, province,suc=1;
5
		var city, province,suc=1;
5
		
6
		
6
		var oadd={
7
		var oadd={
84
			if(suc==0) return;
85
			if(suc==0) return;
85
			cityResult.innerText = oadd.address + "-" + oadd.province;
86
			cityResult.innerText = oadd.address + "-" + oadd.province;
86
			city=oadd.address;
87
			city=oadd.address;
88
			province=oadd.province;
87
		})
89
		})
88
	})
90
	})
89
})
91
})

+ 6 - 3
app/js/updateBasic.js

31
							document.getElementById("userimg").style.backgroundImage = "url(" + baseUrl + "/images/head/" + $data.id + "_l.jpg?" + mun + ")";
31
							document.getElementById("userimg").style.backgroundImage = "url(" + baseUrl + "/images/head/" + $data.id + "_l.jpg?" + mun + ")";
32
						}
32
						}
33
						var onp=document.querySelectorAll(".exName");
33
						var onp=document.querySelectorAll(".exName");
34
						if($data.orgAuth==0) {
34
						if($data.authType==1||$data.orgAuth=='1'||$data.authStatus==3) {
35
							onp[1].innerHTML=$data.name;
36
						}else {
35
							onp[0].style.display="none";
37
							onp[0].style.display="none";
36
							onp[1].style.display="none";
38
							onp[1].style.display="none";
37
							onp[2].style.display="block";
39
							onp[2].style.display="block";
40
						
42
						
41
							bindEvent({selector:"name",txt:"请填写您的姓名",web:{html:'updataName.html',id:"updataName.html"}});
43
							bindEvent({selector:"name",txt:"请填写您的姓名",web:{html:'updataName.html',id:"updataName.html"}});
42
						}
44
						}
43
						}else {
44
							onp[1].innerHTML=$data.name;
45
							
45
						}
46
						}
46
						person.name=$data.name;
47
						person.name=$data.name;
47
						if($data.orgName) {
48
						if($data.orgName) {
80
							person.address="";
81
							person.address="";
81
						}
82
						}
82
						if($data.province) {
83
						if($data.province) {
84
							console.log("111" +$data.province)
83
							person.province=$data.province;
85
							person.province=$data.province;
84
						}else{
86
						}else{
87
							console.log("222" +$data.province)
85
							person.province="";
88
							person.province="";
86
						}
89
						}
87
						if($data.email) {
90
						if($data.email) {

+ 3 - 2
app/js/userInforShow.js

85
			type: 'GET', //http请求类型
85
			type: 'GET', //http请求类型
86
			timeout: 10000, //超时设置
86
			timeout: 10000, //超时设置
87
			success: function(data) {
87
			success: function(data) {
88
				console.log(JSON.stringify(data))
88
				plus.nativeUI.closeWaiting();
89
				plus.nativeUI.closeWaiting();
89
				plus.webview.currentWebview().show("slide-in-right", 150);
90
				plus.webview.currentWebview().show("slide-in-right", 150);
90
				var $data = data.data;
91
				var $data = data.data;
143
					researchAreaShow($data.researchAreas, $data.editResearchAreaLogs);
144
					researchAreaShow($data.researchAreas, $data.editResearchAreaLogs);
144
				} else {
145
				} else {
145
					document.getElementById("professorReserachMess").style.display = "none";
146
					document.getElementById("professorReserachMess").style.display = "none";
146
				}
147
				} 
147
				//应用行业
148
				//应用行业
148
				if($data.industry) {
149
				if($data.industry) {
149
					induSubjectShow({
150
					induSubjectShow({
166
		});
167
		});
167
	}
168
	}
168
	/*进入个人简介页面*/
169
	/*进入个人简介页面*/
169
	document.getElementById("professorBreifinfo").addEventListener("tap", function() {
170
	document.getElementById("detailProfessor").addEventListener("tap", function() {
170
		plus.nativeUI.showWaiting(); //显示原生等待框
171
		plus.nativeUI.showWaiting(); //显示原生等待框
171
		var webviewShow = plus.webview.create("../html/userInforShow-more.html", 'userInforShow-more.html', {}, {
172
		var webviewShow = plus.webview.create("../html/userInforShow-more.html", 'userInforShow-more.html', {}, {
172
			pId: proId
173
			pId: proId