lipengtao 6 years ago
parent
commit
2fef75277b
3 changed files with 12 additions and 5 deletions
  1. 2 2
      js/platDemond.js
  2. 8 1
      js/platTiding.js
  3. 2 2
      js/platform.js

+ 2 - 2
js/platDemond.js

@ -73,8 +73,8 @@ $(document).ready(function() {
73 73
					document.title = $da.title + "-科袖网";
74 74
					var strCon="";
75 75
					if($da.city){ strCon+='<li>所在城市:'+$da.city+'</li>' }
76
					if($da.duration!=0){ strCon+='<li>预计周期:'+$da.duration+'</li>' }
77
					if($da.cost!=0){ strCon+='<li>费用预算:'+$da.cost+'</li>' }
76
					if($da.duration){ strCon+='<li>预计周期:'+$da.duration+'</li>' }
77
					if($da.cost){ strCon+='<li>费用预算:'+$da.cost+'</li>' }
78 78
					if($da.invalidDay){ strCon+='<li>有效期至:'+TimeTr($da.invalidDay)+'</li>' }
79 79
					$(strCon).appendTo($("#demandInf"));
80 80
				}

+ 8 - 1
js/platTiding.js

@ -61,6 +61,9 @@ $(document).ready(function () {
61 61
            $str.attr("dataobj", JSON.stringify(oMess))
62 62
            personMess($data[i].requestor, $str.find('img'), $str.find(".user_name"), $str.find(".authiconNew"));
63 63
          }
64
          if ($data.length === 0) {
65
            $(".list_body").html('<div class="list_item clearfix" style="text-align:center;margin-top:15px;">暂无消息</div>');
66
          }
64 67
        }
65 68
      },
66 69
      "error": function () {
@ -389,6 +392,8 @@ function getTotalMessage() {
389 392
  /*删除会话*/
390 393
	var $that;
391 394
	$(".list_body").on("click", ".close_icon", function() {
395
    var dataobj = JSON.parse($(this).parents('.list_item').attr('dataobj'));
396
    objp = dataobj;
392 397
    if(timerset) {
393 398
      clearInterval(timerset);
394 399
    }
@ -410,7 +415,9 @@ function getTotalMessage() {
410 415
				if(data.success) {
411 416
					$(this).remove();
412 417
					$(".chat_content_nodata").show();
413
					$(".chat_content").hide();
418
          $(".chat_content").hide();
419
          getTotalMessage();
420
          unReadedCount(userid)
414 421
				}
415 422
			},
416 423
			"error": function() {

+ 2 - 2
js/platform.js

@ -124,8 +124,8 @@ $(document).ready(function() {
124 124
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
125 125
			strCon+='<ul class="showli clearfix h3Font">'
126 126
			if($data.city){ strCon+='<li>所在城市:'+$data.city+'</li>' }
127
			if($data.duration!=0){ strCon+='<li>预计周期:'+$data.duration+'</li>' }
128
			if($data.cost!=0){ strCon+='<li>费用预算:'+$data.cost+'</li>' }
127
			if($data.duration){ strCon+='<li>预计周期:'+$data.duration+'</li>' }
128
			if($data.cost){ strCon+='<li>费用预算:'+$data.cost+'</li>' }
129 129
			if($data.invalidDay){ strCon+='<li class="invaliTime">有效期至:'+TimeTr($data.invalidDay)+'</li>' }
130 130
			strCon+='</ul>'
131 131
            strCon+='</a>'