LIPENGTAO1313 6 years ago
parent
commit
0828870c4f
4 changed files with 12 additions and 6 deletions
  1. 1 1
      cmp-portal/js/cmp-needList.js
  2. 0 1
      cmp-portal/js/cmpInformation.js
  3. 7 2
      js/demandShow.js
  4. 4 2
      js/myDemand.js

+ 1 - 1
cmp-portal/js/cmp-needList.js

@ -131,7 +131,7 @@ $(document).ready(function() {
131 131
		var closStr='',pdRight="";
132 132
		if($data.state==1 || $data.state==0){
133 133
			pdRight="padding-right:80px";
134
			closStr += '<ul class="madiaEdit"><li><span class="closeThis">关闭</span></li></ul>'
134
			closStr += '<ul class="madiaEdit"><li><span class="closeThis" style="color:#fff;">关闭</span></li></ul>'
135 135
		}
136 136
		var strCon='';
137 137
			strCon+='<a class="madiaInfo urlHref" style="'+pdRight+'" target="_blank" href="../demandShow.html?demandId='+$data.id+'" data-id="'+$data.id+'">'

+ 0 - 1
cmp-portal/js/cmpInformation.js

@ -223,7 +223,6 @@ $(function() {
223 223
			oAjax("/ajax/demand/pq",{
224 224
				"state":[1],
225 225
    			'oname':par,
226
				"uid":orgId,
227 226
				"pageSize":5
228 227
			}, "get", function(data){
229 228
				var $info = data.data.data;

+ 7 - 2
js/demandShow.js

@ -119,8 +119,8 @@ $(document).ready(function() {
119 119
			"type": "get",
120 120
			"async": true,
121 121
			"success": function(data) {
122
				if(data.success && data.data) {
123
					if(data.data.name) {
122
				if(data.success) {
123
					if(data.data != null) {
124 124
						$(".goSpan").show();
125 125
						if(data.data.forShort) {
126 126
							$("#Qname").text(data.data.forShort);
@ -147,6 +147,11 @@ $(document).ready(function() {
147 147
						$("#companyImg").parents(".cmpHead").removeAttr("href");
148 148
						$("#Qname").parents(".cmpHead").removeAttr("href");
149 149
					}
150
				}else {
151
					$("#companyImg").attr("src",'/images/default-icon.jpg');
152
					$("#Qname").text(par);
153
					$("#companyImg").parents(".cmpHead").removeAttr("href");
154
					$("#Qname").parents(".cmpHead").removeAttr("href");
150 155
				}
151 156
			},
152 157
			"error": function() {

+ 4 - 2
js/myDemand.js

@ -42,7 +42,8 @@ $(document).ready(function() {
42 42
		$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
43 43
		$(".modelContain").show(); $("body").addClass("modelOpen");
44 44
		$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
45
		
45
		var a = new Date();
46
	    var c = a.getFullYear() + "-" + (Number(a.getMonth()) + 1) + "-" + (Number(a.getDate()) + 1);
46 47
		$(".mb-listR .form_datetime").datetimepicker({
47 48
			language: 'ch',
48 49
			format: 'yyyy-mm-dd',
@ -55,10 +56,11 @@ $(document).ready(function() {
55 56
			forceParse: 0,
56 57
			startDate: getNowFormatDate(),
57 58
			oflag: 1,
59
			startDate: c,
58 60
		});
59 61
		$(".mb-listR .form_datetime").val(getNowFormatDate(1));
60 62
		$(".mb_btnOkset").on("click", function() {
61
			var delayTime=$(".mb-listR .form_datetime").val();
63
			var delayTime=$(".mb-listR .form_datetime .fColor").val();
62 64
			$.ajax({
63 65
				"url": "/ajax/demand/defer",
64 66
				"type": "POST",