jack 7 年 前
コミット
da1054e024
共有8 個のファイルを変更した45 個の追加20 個の削除を含む
  1. 7 3
      app/js/updateEdu-edit.js
  2. 5 2
      app/js/updateEdu.js
  3. 6 4
      app/js/updateHonor-edit.js
  4. 5 2
      app/js/updateHonor.js
  5. 6 3
      app/js/updateJob-edit.js
  6. 5 2
      app/js/updateJob.js
  7. 6 2
      app/js/updateProject-edit.js
  8. 5 2
      app/js/updateProject.js

+ 7 - 3
app/js/updateEdu-edit.js

@ -123,7 +123,9 @@ mui.ready(function() {
123 123
					if(data.success) {
124 124
						plus.nativeUI.showWaiting();
125 125
						var web = plus.webview.getWebviewById("updateEdu.html");
126
						mui.fire(web, "newId");
126
						mui.fire(web, "newId",{
127
								rd: 1
128
							});
127 129
						mui.back();
128 130
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
129 131
							mui.fire(Page, 'newId', {
@ -155,7 +157,9 @@ mui.ready(function() {
155 157
					if($data.success) {
156 158
						plus.nativeUI.showWaiting();
157 159
						var web = plus.webview.getWebviewById("updateEdu.html");
158
						mui.fire(web, "newId");
160
						mui.fire(web, "newId",{
161
								rd: 1
162
							});
159 163
						mui.back();
160 164
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
161 165
							mui.fire(Page, 'newId', {
@ -164,7 +168,7 @@ mui.ready(function() {
164 168
					}
165 169
				},
166 170
				"error":function(xhr){
167
					console.log(JSON.stringify(xhr));
171
					plus.nativeUI.toast("服务器链接超时", toastStyle);
168 172
				}
169 173
			});
170 174
		}

+ 5 - 2
app/js/updateEdu.js

@ -2,7 +2,7 @@ mui.ready(function() {
2 2
	mui.plusReady(function() {
3 3
		var userid = plus.storage.getItem('userid');
4 4
		var ws = plus.webview.currentWebview();
5
		console.log(JSON.stringify(ws.projects));
5
		var fl;
6 6
		var oDe={
7 7
			1:"博士",
8 8
			2:"硕士",
@ -74,7 +74,9 @@ mui.ready(function() {
74 74
					if(data.success) {
75 75
						var $data = data.data;
76 76
						plus.nativeUI.closeWaiting();
77
						plus.webview.currentWebview().show("slide-in-right", 150);
77
						if(!fl) {
78
							plus.webview.currentWebview().show("slide-in-right", 150);
79
						}
78 80
						//荣誉奖项
79 81
						//教育背景
80 82
						if($data.edus.length) {
@ -105,6 +107,7 @@ mui.ready(function() {
105 107
			var web = plus.webview.create("../html/updateEdu-edit.html","updateEdu-edit.html", {}, {});
106 108
		})
107 109
		window.addEventListener("newId", function(event) {
110
			fl = event.detail.rd;
108 111
			personalMessage();
109 112
		})
110 113
	});

+ 6 - 4
app/js/updateHonor-edit.js

@ -9,11 +9,9 @@ mui.ready(function() {
9 9
		var project = document.getElementById("project");
10 10
		var yearResult = document.getElementById("yearResult");
11 11
		var descp = document.getElementById("descp");
12
		console.log(JSON.stringify(ws.data));
13 12
		if(!ws.data) {
14 13
			oDel.classList.add("displayNone");
15 14
		} else {
16
			console.log(JSON.stringify(ws.data));
17 15
			oLogin.removeAttribute("disabled");
18 16
			project.innerHTML = (ws.data.name) ? ws.data.name : "";
19 17
			yearResult.innerHTML =(ws.data.year) ? ws.data.year+"年" : "请选择获奖时间";
@ -74,7 +72,9 @@ mui.ready(function() {
74 72
					if(data.success) {
75 73
						plus.nativeUI.showWaiting();
76 74
						var web = plus.webview.getWebviewById("updateHonor.html");
77
						mui.fire(web, "newId");
75
						mui.fire(web, "newId", {
76
								rd: 1
77
							});
78 78
						mui.back();
79 79
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
80 80
							mui.fire(Page, 'newId', {
@ -107,7 +107,9 @@ mui.ready(function() {
107 107
					if($data.success) {
108 108
						plus.nativeUI.showWaiting();
109 109
						var web = plus.webview.getWebviewById("updateHonor.html");
110
						mui.fire(web, "newId");
110
						mui.fire(web, "newId", {
111
								rd: 1
112
							});
111 113
						mui.back();
112 114
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
113 115
							mui.fire(Page, 'newId', {

+ 5 - 2
app/js/updateHonor.js

@ -2,7 +2,7 @@ mui.ready(function() {
2 2
	mui.plusReady(function() {
3 3
		var userid = plus.storage.getItem('userid');
4 4
		var ws = plus.webview.currentWebview();
5
		console.log(JSON.stringify(ws.projects));
5
		var fl;
6 6
		var oarr=[];
7 7
		//荣誉奖项
8 8
		var honorShow = function(obj) {
@ -57,7 +57,9 @@ mui.ready(function() {
57 57
					if(data.success) {
58 58
						var $data = data.data;
59 59
						plus.nativeUI.closeWaiting();
60
						plus.webview.currentWebview().show("slide-in-right", 150);
60
						if(!fl) {
61
							plus.webview.currentWebview().show("slide-in-right", 150);
62
						}
61 63
						//荣誉奖项
62 64
						if($data.honors.length) {
63 65
							honorShow({
@ -87,6 +89,7 @@ mui.ready(function() {
87 89
			var web = plus.webview.create("../html/updateHonor-edit.html","updateHonor-edit.html", {}, {});
88 90
		})
89 91
		window.addEventListener("newId", function(event) {
92
			fl = event.detail.rd;
90 93
			personalMessage();
91 94
		})
92 95
	});

+ 6 - 3
app/js/updateJob-edit.js

@ -129,11 +129,12 @@ mui.ready(function() {
129 129
				"data": ws.data ? JSON.stringify($data) : $data,
130 130
				"contentType": ws.data ? "application/json" : "application/x-www-form-urlencoded",
131 131
				"success": function(data) {
132
					console.log(JSON.stringify(data))
133 132
					if(data.success) {
134 133
						plus.nativeUI.showWaiting();
135 134
						var web = plus.webview.getWebviewById('updateJob.html');
136
						mui.fire(web, "newId");
135
						mui.fire(web, "newId",{
136
								rd: 1
137
							});
137 138
						mui.back();
138 139
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
139 140
							mui.fire(Page, 'newId', {
@ -165,7 +166,9 @@ mui.ready(function() {
165 166
					if($data.success) {
166 167
						plus.nativeUI.showWaiting();
167 168
						var web = plus.webview.getWebviewById("updateJob.html");
168
						mui.fire(web, "newId");
169
						mui.fire(web, "newId",{
170
								rd: 1
171
							});
169 172
						mui.back();
170 173
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
171 174
							mui.fire(Page, 'newId', {

+ 5 - 2
app/js/updateJob.js

@ -3,6 +3,7 @@ mui.ready(function() {
3 3
		var userid = plus.storage.getItem('userid');
4 4
		var ws = plus.webview.currentWebview();
5 5
		var oarr=[];
6
		var fl;
6 7
		//项目经历
7 8
		var projectShow = function(obj) {
8 9
			if(obj.data.length > 0) {
@ -72,10 +73,11 @@ mui.ready(function() {
72 73
				timeout: 10000, //超时设置
73 74
				success: function(data) {
74 75
					if(data.success) {
75
						alert(1);
76 76
						var $data = data.data;
77 77
						plus.nativeUI.closeWaiting();
78
						plus.webview.currentWebview().show("slide-in-right", 150);
78
						if(!fl) {
79
							plus.webview.currentWebview().show("slide-in-right", 150);
80
						}
79 81
						if($data.jobs) {
80 82
							projectShow({
81 83
								data: $data.jobs,
@ -104,6 +106,7 @@ mui.ready(function() {
104 106
			var web = plus.webview.create("../html/updateJob-edit.html","updateJob-edit.html", {}, {});
105 107
		})
106 108
		window.addEventListener("newId", function(event) {
109
			fl = event.detail.rd;
107 110
			personalMessage();
108 111
		})
109 112
	});

+ 6 - 2
app/js/updateProject-edit.js

@ -128,7 +128,9 @@ mui.ready(function() {
128 128
					if(data.success) {
129 129
						plus.nativeUI.showWaiting();
130 130
						var web = plus.webview.getWebviewById("updateProject.html");
131
						mui.fire(web, "newId");
131
						mui.fire(web, "newId", {
132
								rd: 1
133
							});
132 134
						mui.back();
133 135
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
134 136
							mui.fire(Page, 'newId', {
@ -160,7 +162,9 @@ mui.ready(function() {
160 162
					if($data.success) {
161 163
						plus.nativeUI.showWaiting();
162 164
						var web = plus.webview.getWebviewById("updateProject.html");
163
						mui.fire(web, "newId");
165
						mui.fire(web, "newId", {
166
								rd: 1
167
							});
164 168
						mui.back();
165 169
						var Page = plus.webview.getWebviewById('userInforUpdate.html');
166 170
							mui.fire(Page, 'newId', {

+ 5 - 2
app/js/updateProject.js

@ -2,7 +2,7 @@ mui.ready(function() {
2 2
	mui.plusReady(function() {
3 3
		var userid = plus.storage.getItem('userid');
4 4
		var ws = plus.webview.currentWebview();
5
		console.log(JSON.stringify(ws.projects));
5
		var fl;
6 6
		var oarr=[];
7 7
		//项目经历
8 8
		var projectShow = function(obj) {
@ -72,7 +72,9 @@ mui.ready(function() {
72 72
					if(data.success) {
73 73
						var $data = data.data;
74 74
						plus.nativeUI.closeWaiting();
75
						plus.webview.currentWebview().show("slide-in-right", 150);
75
						if(!fl) {
76
							plus.webview.currentWebview().show("slide-in-right", 150);
77
						}
76 78
						if($data.projects) {
77 79
							projectShow({
78 80
								data: $data.projects,
@ -99,6 +101,7 @@ mui.ready(function() {
99 101
			var web = plus.webview.create("../html/updateProject-edit.html","updateProject-edit.html", {}, {});
100 102
		})
101 103
		window.addEventListener("newId", function(event) {
104
			fl = event.detail.rd;
102 105
			personalMessage();
103 106
		})
104 107
	});