Browse Source

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

luyanan 7 years ago
parent
commit
4fe653c0c9
5 changed files with 16 additions and 6 deletions
  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,6 +146,10 @@ if(mui.os.ios) {
146 146
	mui('.mui-bar-tab').on('tap', 'a', function(e) {
147 147
		var targetTab = this.getAttribute('href');
148 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 153
		if(num==3){
150 154
			var myPage = plus.webview.getWebviewById('html/myaccount.html');
151 155
				mui.fire(myPage,'mPage', {});	

+ 1 - 1
app/js/consultlistNew.js

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

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

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

+ 6 - 3
app/js/updateBasic.js

@ -31,7 +31,9 @@ mui.ready(function() {
31 31
							document.getElementById("userimg").style.backgroundImage = "url(" + baseUrl + "/images/head/" + $data.id + "_l.jpg?" + mun + ")";
32 32
						}
33 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 37
							onp[0].style.display="none";
36 38
							onp[1].style.display="none";
37 39
							onp[2].style.display="block";
@ -40,8 +42,7 @@ mui.ready(function() {
40 42
						
41 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 47
						person.name=$data.name;
47 48
						if($data.orgName) {
@ -80,8 +81,10 @@ mui.ready(function() {
80 81
							person.address="";
81 82
						}
82 83
						if($data.province) {
84
							console.log("111" +$data.province)
83 85
							person.province=$data.province;
84 86
						}else{
87
							console.log("222" +$data.province)
85 88
							person.province="";
86 89
						}
87 90
						if($data.email) {

+ 3 - 2
app/js/userInforShow.js

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