Browse Source

需求更改

luyanan 7 years ago
parent
commit
c5c4ef4a43
3 changed files with 17 additions and 6 deletions
  1. 1 1
      app/html/needList.html
  2. 4 0
      app/js/demondPublish.js
  3. 12 5
      app/js/sureOrg.js

+ 1 - 1
app/html/needList.html

@ -60,7 +60,7 @@
60 60
							}else{
61 61
								mui.openWindow({
62 62
									url: '../html/sureOrg.html',
63
									id: '../html/sureOrg.html',
63
									id: 'sureOrg.html',
64 64
									show: {
65 65
										aniShow: "slide-in-right"
66 66
									}

+ 4 - 0
app/js/demondPublish.js

@ -4,6 +4,7 @@
4 4

5 5
 		var userid = plus.storage.getItem('userid');
6 6
 		var oRd="";
7
 		
7 8
 		/**
8 9
 		 * 获取对象属性的值
9 10
 		 * 主要用于过滤三级联动中,可能出现的最低级的数据不存在的情况,实际开发中需要注意这一点;
@ -175,6 +176,8 @@
175 176
 			async: true,
176 177
 			success: function(data) {
177 178
 				if(data.success) {
179
 					var osur = plus.webview.getWebviewById("sureOrg.html");
180
 					osur.close();
178 181
 					document.querySelector("#publisher").innerHTML = data.data.forShort ? data.data.forShort : data.data.name;
179 182
 				}
180 183
 			},
@ -261,6 +264,7 @@
261 264
 			async: true,
262 265
 			success: function(data) {
263 266
 				if(data.success) {
267
 					
264 268
 					$.back();
265 269
 				}
266 270
 			},

+ 12 - 5
app/js/sureOrg.js

@ -14,7 +14,9 @@ mui.ready(function() {
14 14
				document.getElementById("fontAdd").innerHTML = orgName.length;
15 15
				document.getElementById("login").removeAttribute("disabled");
16 16
			}
17
			document.getElementById("title").addEventListener("input", function() {
17
			
18
		}
19
		document.getElementById("title").addEventListener("input", function() {
18 20
				if(this.value == "") {
19 21
					document.getElementById("login").disabled = "disabled";
20 22
				} else {
@ -22,8 +24,6 @@ mui.ready(function() {
22 24
				}
23 25
				document.getElementById("fontAdd").innerHTML = this.value.length;
24 26
			})
25
		}
26
27 27
		document.getElementById("login").addEventListener("tap", function() {
28 28
			if(document.getElementById("title").value.length) {
29 29
				if(document.getElementById("title").value.length>50) {
@ -57,8 +57,15 @@ mui.ready(function() {
57 57
				success: function(data) {
58 58
					if(data.success && data.data) {
59 59
						var $info = data.data || {};
60
						person($info.orgName);
61
						organName=$info.orgName;
60
						if($info.orgName) {
61
							person($info.orgName);
62
							organName=$info.orgName;
63
						}else{
64
							document.getElementById("login").disabled = "disabled";
65
							organName="undefined"
66
						}
67
						
68
						
62 69
					}
63 70
				},
64 71
				error: function() {