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

+ 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