ソースを参照

修改需求规则

jack 7 年 前
コミット
cefb3db09f
共有1 個のファイルを変更した16 個の追加0 個の削除を含む
  1. 16 0
      app/js/demondModify.js

+ 16 - 0
app/js/demondModify.js

235
 	/*发布需求*/
235
 	/*发布需求*/
236
 	document.querySelector("#publishDemand").addEventListener( "tap", function() {
236
 	document.querySelector("#publishDemand").addEventListener( "tap", function() {
237
 		if(checkout()) {
237
 		if(checkout()) {
238
 			var time=new Date(),
239
 			y=time.getFullYear();
240
 			m=time.getMonth()+1;
241
 			if(m<10) {
242
 				m="0"+m;
243
 			}
244
 			d=time.getDate();
245
 			if(d<10) {
246
 				d="0"+d;
247
 			}
248
 			var oTime=Number(y+""+m+""+d);
249
 			var seleTime=Number(btns.getAttribute("flag"));
250
 			if(oTime > seleTime) {
251
 				plus.nativeUI.toast("该需求已过期,请修改有效期,若已解决请点击「需求已完成」按钮", toastStyle);
252
 				return;
253
 			}
238
 			pubDemand();
254
 			pubDemand();
239
 		}
255
 		}
240
 	},false);
256
 	},false);