Browse Source

平台消息及科袖消息

lipengtao 6 years ago
parent
commit
52baf5257b
13 changed files with 1174 additions and 77 deletions
  1. 29 28
      css/genindex.css
  2. 185 0
      js/platDemond.js
  3. 414 0
      js/platTiding.js
  4. 143 0
      js/platform.js
  5. 1 0
      js/public/baseUtil.js
  6. 30 6
      js/public/genCom.js
  7. 60 10
      js/tidings.js
  8. 13 12
      myDemand.html
  9. 1 20
      needList.html
  10. 89 0
      platDemond.html
  11. 90 0
      platTiding.html
  12. 106 0
      platform.html
  13. 13 1
      tidings.html

+ 29 - 28
css/genindex.css

@ -188,22 +188,22 @@ ul.loginWaySort li.liactive{border-bottom: 2px solid #ff9900;}
188 188
.table-body .table-item-list:first-child{display: block;}
189 189
.table-body ul.listitemdiv{background: #fff;}
190 190
.columTag{position: absolute;background: rgba(0,0,0,.6);color:#fff;padding:4px 10px;bottom:6px;left: 6px;font-size: 13px;}
191
/*.table-item{position: relative;min-height:500px;}
192
.table-item>li{position:relative;padding:25px 20px;}
193
.table-item>li:after{content:"";position:absolute; left:0; right:0; bottom:0;height: 2px;background: #f7f7f8;}
194
.table-item-media{height: 40px;margin-bottom:20px;}
195
.table-item-media .table-item-logo{position:absolute;border:1px solid #f2f3f4;display: inline-block;width: 40px; height:40px;z-index:4;}
196
.table-item-media .table-item-name{position:relative;width:90%;padding-left:50px;}
197
.table-item-media .table-item-name .nameSpan{color:#000;font-size: 16px;line-height: 18px;}
198
.table-item-media .table-item-name .timeLabel{color:#AAAAAA;}
199
.table-item-media .authicon{bottom:9px;}
200
.table-item-cell{position:relative;font-size:16px;color:#000;cursor: pointer;}
201
.table-item-cell a{display:block;min-height: 110px;color:#000;}
202
.table-item-cell a:hover{background: #f4f6f8;color:#5c99d8;}
203

204
.table-item-cell .table-item-img{position:absolute;border:1px solid #f2f3f4;width: 164px;height: 110px;top:50%;left:0;margin-top:-55px;}
205
.table-item-cell .table-item-img.artical-default{background:url(../images/default-artical.jpg) center center;background-size:cover;}
206
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
191
/*.table-item{position: relative;min-height:500px;}
192
.table-item>li{position:relative;padding:25px 20px;}
193
.table-item>li:after{content:"";position:absolute; left:0; right:0; bottom:0;height: 2px;background: #f7f7f8;}
194
.table-item-media{height: 40px;margin-bottom:20px;}
195
.table-item-media .table-item-logo{position:absolute;border:1px solid #f2f3f4;display: inline-block;width: 40px; height:40px;z-index:4;}
196
.table-item-media .table-item-name{position:relative;width:90%;padding-left:50px;}
197
.table-item-media .table-item-name .nameSpan{color:#000;font-size: 16px;line-height: 18px;}
198
.table-item-media .table-item-name .timeLabel{color:#AAAAAA;}
199
.table-item-media .authicon{bottom:9px;}
200
.table-item-cell{position:relative;font-size:16px;color:#000;cursor: pointer;}
201
.table-item-cell a{display:block;min-height: 110px;color:#000;}
202
.table-item-cell a:hover{background: #f4f6f8;color:#5c99d8;}
203
204
.table-item-cell .table-item-img{position:absolute;border:1px solid #f2f3f4;width: 164px;height: 110px;top:50%;left:0;margin-top:-55px;}
205
.table-item-cell .table-item-img.artical-default{background:url(../images/default-artical.jpg) center center;background-size:cover;}
206
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
207 207
.table-item-cell .table-item-body{position:absolute;top:50%;width:100%;margin-top:-28px;padding-left:184px;padding-right: 10px;}*/
208 208
209 209
.cmplogohead{ background: #fff;background-size: cover;border-radius:4px;}
@ -535,15 +535,15 @@ ul.atachList>li a.atach-down:hover{color:#28b8fa;text-decoration: underline;}
535 535
.modelContain:before,.modelContain:after{display:table;content:" "}
536 536
.modelContain:after{clear: both;}
537 537
.modelOpen{overflow: hidden;}
538
/*.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
539
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
540
.setTimeBlock .mb_close{display: block; position: absolute; right: 20px; top: 18px; background: url(../images/sign_icon_guanbi_nor.png) center center no-repeat; width: 20px; height: 20px; cursor: pointer;}
541
.setTimeBlock .mb_msg{position: relative; padding: 30px 20px 20px; line-height: 24px; text-align: center; font-size: 16px;}
542
.setTimeBlock .formTime{padding:10px 24px;}*/
543
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
544
.setTimeBlock .mb_btn{width: 100px; font-size: 14px; height: 32px; color: white; border: none; background-image: none; padding: 0px; margin: 0px 10px; border-radius: 6px;}
538
/*.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
539
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
540
.setTimeBlock .mb_close{display: block; position: absolute; right: 20px; top: 18px; background: url(../images/sign_icon_guanbi_nor.png) center center no-repeat; width: 20px; height: 20px; cursor: pointer;}
541
.setTimeBlock .mb_msg{position: relative; padding: 30px 20px 20px; line-height: 24px; text-align: center; font-size: 16px;}
542
.setTimeBlock .formTime{padding:10px 24px;}*/
543
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
544
.setTimeBlock .mb_btn{width: 100px; font-size: 14px; height: 32px; color: white; border: none; background-image: none; padding: 0px; margin: 0px 10px; border-radius: 6px;}
545 545
.setTimeBlock .mb_btnOk{ background-color:#ff9900;}
546
.setTimeBlock .mb_btnOk:disabled{background-color:#ccc;}
546
.setTimeBlock .mb_btnOk:disabled{background-color:#ccc;}
547 547
.setTimeBlock .mb_btnNo{ background:none;color:#666}
548 548
549 549
.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
@ -559,10 +559,10 @@ ul.atachList>li a.atach-down:hover{color:#28b8fa;text-decoration: underline;}
559 559
560 560
/*--------------新版资源--------------*/
561 561
.showMain.showMain2{text-indent:0;}
562
#articleContent ul,#articleContent ol{padding-left: 20px;}
563
#articleContent ul{list-style-type:disc;}
564
#articleContent ol{list-style-type:decimal;}
565
#articleContent ul>li,#articleContent ol>li{padding-left:0px;}
562
#articleContent ul,#articleContent ol{padding-left: 20px;}
563
#articleContent ul{list-style-type:disc;}
564
#articleContent ol{list-style-type:decimal;}
565
#articleContent ul>li,#articleContent ol>li{padding-left:0px;}
566 566
#articleContent ul>li>p,#articleContent ol>li>p{margin: 0;}
567 567
.showMain.showMain2>ul>li{margin:10px 0;display:none;}
568 568
.showMain .showTit{position:relative;padding-left:10px;}
@ -662,6 +662,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
662 662
.workcontit a:link, .workcontit a:active, .workcontit a:visited {color: #313131;}
663 663
.conBlock .workconG .worksamlltit{font-size: 16px;line-height: 30px; margin-right:30px;padding: 10px 4px 8px;cursor: pointer;}
664 664
.conBlock .workconG .worksamlltit.worksamlltitnow{color:#ff9900;border-bottom: 2px solid #ff9900;}
665
.conBlock .workconG .worksamlltit.worksamlltitnowR {color:#ff9900;float: right;}
665 666
/*--------------新版产品下载--------------*/
666 667
.mainDownP{height: 100%;}
667 668
.mainDownP .containerCon{height: 100%;}

+ 185 - 0
js/platDemond.js

@ -0,0 +1,185 @@
1
$(document).ready(function() {
2
	loginStatus(); //判断个人是否登录
3
	var userid=$.cookie("userid");
4
    var demandId = GetQueryString("demandId");
5
    var pid = GetQueryString("pid");
6
	getDemandinfo();
7
    getPlatName();
8
    userFun();
9
	$(".showStatus").on('click',".meSendBack",function(){
10
		if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
11
			$(".questionCover").fadeIn();
12
        $("body").css("position", "fixed");
13
		} else {
14
			quickLog();
15
			operatTab();
16
			closeLog();
17
		}
18
    });
19
    $("#workclose,#preSte").on("click",function(){
20
        $("#queTit").val('');
21
        $(".questionCover").fadeOut();
22
        $("body").css("position", "");
23
    })
24
	$(".showStatus").on("click",".flexCenter",function(){
25
		location.href="userInforShow.html?professorId="+userid;
26
    })
27
    $("#pubSte").on("click",function(){
28
        if (!$('#queTit').val()) {
29
            $.MsgBox.Alert('提示', '留言不能为空')
30
            return;
31
        }
32
        replayDemand();
33
	})
34
	function getPlatName() {
35
        $.ajax({
36
            url: "/ajax/platform/info",
37
            type: "GET",
38
            timeout: 10000,
39
            dataType: "json",
40
            traditional:true,
41
            data:{
42
                id: pid
43
            },
44
            success: function(data) {
45
                if(data.success) {
46
                   $('.platName').text(data.data.name);                             
47
                }
48
            },
49
            error: function() {
50
                $.MsgBox.Alert('提示', '链接服务器超时')
51
            }
52
        })
53
    }	
54
	function getDemandinfo(){
55
		$.ajax({
56
			"url": "/ajax/platform/demand/qo",
57
			"type": "GET",
58
			"data": {
59
                "id": demandId,
60
                "pid": pid,
61
			 },
62
			"dataType": "json",
63
			"success": function(data) {
64
				console.log(data);
65
				if(data.success) {
66
					var $da=data.data;
67
					$("#demandTit").text($da.title); //名字
68
                    var thisNum="";
69
                    thisNum+='<li><span>需求方:</span> <span>'+$da.linkOrg+'</span></li>';	
70
					thisNum+='<li>发布时间:<span>'+commenTime($da.publishTime)+'</span></li>';								
71
					$("#demandNum").prepend(thisNum);
72
					$("#demandDesp")[0].innerText=$da.descp; //内容									
73
					document.title = $da.title + "-科袖网";
74
					var strCon="";
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>' }
78
					if($da.invalidDay){ strCon+='<li>有效期至:'+TimeTr($da.invalidDay)+'</li>' }
79
					$(strCon).appendTo($("#demandInf"));
80
				}
81
			},
82
			'error': function() {
83
				$.MsgBox.Alert('提示', '服务器连接超时!');
84
			}
85
		});
86
		
87
    }
88
    function replayDemand() {
89
        $.ajax({
90
			"url": "/ajax/platform/demand/reply",
91
			"type": "POST",
92
			"data": {
93
                "id": demandId,
94
                "pid": pid,
95
                "uid": userid,
96
                "descp": $('#queTit').val()
97
			 },
98
			"dataType": "json",
99
			"success": function(data) {
100
				console.log(data);
101
				if(data.success) {
102
                    $(".questionCover").fadeOut();
103
					$("body").css("position", "");
104
                    $(".queStep").find("textarea").val("")
105
                    $.MsgBox.Alert("提示","留言发布成功");
106
                    $("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
107
                    userFun(); 
108
                }
109
			},
110
			'error': function() {
111
				$.MsgBox.Alert('提示', '服务器连接超时!');
112
			}
113
    })
114
}
115
    function getProfessor(id,descp,timer) {
116
        $.ajax({
117
			"url": "/ajax/professor/baseInfo/"+id,
118
			"type": "get",
119
			"dataType": "json",
120
			"success": function(data) {
121
				if(data.success) {
122
                    var $data=data.data;
123
					var img;
124
					var oClass = autho($data.authType, $data.orgAuth, $data.authStatus);
125
					var oTitle = "";
126
					if($data.title) {
127
						oTitle = $data.title;
128
					} else {
129
						if($data.office) {
130
							oTitle = $data.office;
131
						}
132
					}
133
					if($data.hasHeadImage==1) {
134
						img = "/images/head/" + $data.id + "_l.jpg";
135
					} else {
136
						img = "../images/default-photo.jpg"
137
                    }
138
                    var oSt = '<li>您已回复该需求</li>'
139
					oSt += '<li class="flexCenter" style="cursor:pointer" data-id="'+$data.id +'">'
140
					oSt += '<div class="madiaHead useHead" id="userimg" style="background-image: url(' + img + ');"></div>'
141
					oSt += '<div class = "madiaInfo" style="padding-right:0">'
142
					oSt += '<p class = "ellipsisSty">'
143
					oSt += '<span class = "h1Font" id="name">' + $data.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em >'
144
					oSt += '</p>'
145
					oSt += '<p class="h2Font ellipsisSty">' + oTitle + '</p>'
146
                    oSt += '</div>'
147
                    oSt += '</li>'
148
                    oSt += '<li><span style="margin-right:10px;">留言:</span>'+descp+'<span style="float:right;">'+timer+'</span></li>'
149
                    $(".showStatus").html(oSt);
150
                }
151
			},
152
			'error': function() {
153
				$.MsgBox.Alert('提示', '服务器连接超时!');
154
			}
155
    })
156
    }
157
	function userFun() {
158
		$.ajax({
159
			"url": "/ajax/platform/demand/pro",
160
            "type": "get",
161
            "data": {
162
                "id":demandId ,
163
                "pid":pid,
164
                "uid":userid
165
            },
166
			"async": true,
167
			"datatype":"json",
168
			"success": function(data) {
169
				if(data.success) {
170
                    console.log(data);
171
                    if(data.data) {
172
                        getProfessor(userid,data.data.descp,commenTime(data.data.assTime));
173
                        $(".showStatus").addClass("showStatusY")
174
                    } else {
175
                        $(".showStatus").html('<input type="button" class="frmconbtn btnModel meSendBack" value="立即回复">')
176
                    }
177
				}
178
			},
179
			"error": function() {
180
				$.MsgBox.Alert('提示', '链接服务器超时')
181
			}
182
		});
183
		
184
	}
185
})

+ 414 - 0
js/platTiding.js

@ -0,0 +1,414 @@
1
$(document).ready(function () {
2
  var userid = $.cookie("userid");
3
  var objp = {};
4
  var imgUrl = "";
5
  var timerset;
6
  var oflag = false;
7
  loginStatus(); //判断个人是否登录
8
  $(".list_body").niceScroll({
9
    cursorcolor: "#999999"
10
  });
11
  $(".chat_body.clearfix").niceScroll({
12
    cursorcolor: "#999999"
13
  });
14
  messageList();
15
  setInterval(messageList,5000)
16
  function messageList() {
17
    $.ajax({
18
      "url": "/ajax/platform/msg/idx",
19
      "type": "get",
20
      "async": true,
21
      "data": {
22
        'provider': userid
23
      },
24
      "success": function (data) {
25
        if (data.success) {
26
          getTotalMessage();
27
          unReadedCount(userid)
28
          $(".list_body").html("");
29
          var $data = data.data;
30
          for (var i = 0; i < $data.length; i++) {
31
            var num = "none"
32
            if ($data[i].unread) {
33
              num = "block";
34
            }
35
            var ostr = '<div class="list_item clearfix" data-id="' + $data[i].requestor + '">' +
36
              '<i class="close_icon"></i>' +
37
              '<div class="avatar fl">' +
38
              '<img src="images/default-photo.jpg">' +
39
              '<span class="tips_num" style="display:' + num + '">' + $data[i].unread + '</span>' +
40
              '</div>' +
41
              '<div class="list_item_info fl">' +
42
              '<div class="user_infos">' +
43
              '<span class="user_name"> </span><em class="authiconNew"></em>' +
44
              '</div>' +
45
              '<span class="time">' + commenTime($data[i].opTime) + '</span><span class="last_news">' + ($data[i].cnt).replace(/\n/g, "<br />") + '</span>' +
46
              '</div>' +
47
              '</div>'
48
            var $str = $(ostr);
49
            if(oflag) {
50
              if (objp.requestor === $data[i].requestor) {
51
                $str.addClass('active');
52
              }
53
            }
54
            $(".list_body").append($str);
55
            var oMess = {
56
              "provider": $data[i].provider,
57
              "pid": $data[i].pid,
58
              "requestor": $data[i].requestor
59
            }
60
            $str.attr("dataobj", JSON.stringify(oMess))
61
            personMess($data[i].requestor, $str.find('img'), $str.find(".user_name"), $str.find(".authiconNew"));
62
          }
63
        }
64
      },
65
      "error": function () {
66
        $.MsgBox.Alert('提示', '服务器连接超时');
67
      }
68
    });
69
  }
70
  //专家信息
71
  function personMess(id, pImg, pName, pTitle) {
72
    $.ajax({
73
      "url": platUrl + "/ajax/sys/user/get",
74
      "data": {
75
        id: id
76
      },
77
      "type": "GET",
78
      "traditional": true,
79
      "dataType": "json",
80
      "success": function (data) {
81
        if (data.success) {
82
          var $data = data.data;
83
          var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
84
          pTitle.attr("title", userType.title).addClass(userType.sty);
85
          pName.text($data.name || $data.account);
86
          var img="";
87
          if ($data.head) {
88
            pImg.attr("src", $data.head);
89
            img = $data.head;
90
          } else {
91
            pImg.attr("src", '/images/default-photo.jpg');
92
            img = '/images/default-photo.jpg';
93
          }
94
          var str = ''
95
          if ( $data.comp) {
96
            if ($data.job) {
97
              str = $data.comp+","+ $data.job;
98
            } else {
99
              str = $data.comp
100
            }
101
          } else {
102
            if ($data.job) {
103
              str = $data.job;
104
            }
105
          }
106
          var oMess = {
107
            "name": $data.name || $data.account,
108
            "idf": userType,
109
            "id": $data.id,
110
            "duties": str,
111
            "img":img
112
          }
113
          pImg.parents(".list_item").attr("data", JSON.stringify(oMess))
114
        }
115
      },
116
      "error": function (err) {
117
        $.MsgBox.Alert('提示', '服务器连接超时');
118
      }
119
    });
120
  }
121
  function ci(e) {
122
    var elem = e.target;
123
    if (elem.tagName.toLowerCase() === 'img') {
124
      var $this = $(elem);
125
      $this.attr("src", "/images/default-photo.jpg");
126
127
    }
128
  }
129
  document.addEventListener("error", ci, true /*指定事件处理函数在捕获阶段执行*/);
130
  /*切换*/
131
  $(".list_body").on("click", ".list_item", function () {
132
    oflag = true;
133
    if(timerset) {
134
      clearInterval(timerset);
135
    }
136
    $(this).addClass("active").siblings().removeClass("active");
137
    if ($(this).find(".tips_num").css("display") == "block") {
138
      $('.mymessage .badge').text(Number($('.mymessage .badge').text()) - Number($(this).find(".tips_num").text()));
139
      if ($('.mymessage .badge').text() == 0) {
140
        $(".mymessage .badge").text("");
141
      }
142
    }
143
    $(this).find(".tips_num").text(0).hide();
144
    if ($(".usepro .user_name").css("display") == "block") {
145
      if ($(this).find(".user_name").text() == $(".usepro .user_name").text()) {
146
        return;
147
      }
148
    }
149
    $(".chat_content_nodata").hide();
150
    $(".chat_content").show();
151
    var pro = JSON.parse($(this).attr("data"));
152
    $(".usepro").find(".user_name").text(pro.name).siblings(".authiconNew").addClass(pro.idf.sty).attr("title", pro.idf.title).parent().siblings(".chating_resume_status").text(pro.duties);
153
    var dataobj = JSON.parse($(this).attr('dataobj'));
154
    objp = dataobj;
155
    imgUrl = JSON.parse($(this).attr('data')).img;
156
    if (Number($(this).find(".tips_num").text())) {
157
      angleMessageList(dataobj, true);
158
    } else {
159
      angleMessageList(dataobj);
160
    }
161
    getPlatName(objp.pid)
162
    timerset=setInterval(function() {
163
      angleMessageList(dataobj);
164
    },5000)
165
  });
166
  function getPlatName(pid) {
167
    $.ajax({
168
        url: "/ajax/platform/info",
169
        type: "GET",
170
        timeout: 10000,
171
        dataType: "json",
172
        traditional:true,
173
        data:{
174
            id: pid
175
        },
176
        success: function(data) {
177
            if(data.success) {
178
               $('#cUserPage').text('来自:'+data.data.name);                          
179
            }
180
        },
181
        error: function() {
182
            $.MsgBox.Alert('提示', '链接服务器超时')
183
        }
184
    })
185
}	
186
getKexiuTotal()
187
	function getKexiuTotal() {
188
		$.ajax({
189
		  url: "ajax/webMsg/unReadedCount",
190
		  type: "GET",
191
		  timeout: 10000,
192
		  dataType: "json",
193
		  traditional:true,
194
		  data:{
195
			  id: userid
196
		  },
197
		  success: function(data) {
198
			  if(data.success) {
199
				if(data.data) {
200
				  $('.kexiuTotal').text('('+data.data+')');  
201
				} else {
202
					$('.kexiuTotal').text('');  
203
				}                       
204
			  }
205
		  },
206
		  error: function() {
207
			  $.MsgBox.Alert('提示', '链接服务器超时')
208
		  }
209
	  })
210
	  }
211
function getTotalMessage() {
212
  $.ajax({
213
    url: "/ajax/platform/msg/unread",
214
    type: "GET",
215
    timeout: 10000,
216
    dataType: "json",
217
    traditional:true,
218
    data:{
219
        provider: userid
220
    },
221
    success: function(data) {
222
        if(data.success) {
223
          if(data.data) {
224
            $('.mesTotal').text('('+data.data+')');  
225
          }                        
226
        }
227
    },
228
    error: function() {
229
        $.MsgBox.Alert('提示', '链接服务器超时')
230
    }
231
})
232
}
233
  function angleMessageList(info) {
234
    $.ajax({
235
      "url": "/ajax/platform/msg/rec",
236
      "type": "get",
237
      "async": true,
238
      "data": info,
239
      "success": function (data) {
240
        if (data.success) {
241
          $(".chat_body_list").html("")
242
          var $data = data.data;
243
          if ($data.length) {
244
            if (arguments[1]) {
245
              setRead(info);
246
            }
247
            for (var i = $data.length - 1; i >= 0; i--) {
248
              var le = "";
249
              var flo = 'fl';
250
              var wei = "";
251
              var fCo = "C_end";
252
              var timeG = '';
253
              var headImg = '';
254
              if ($data[i].msgType) {
255
                le = "me";
256
                flo = "fr";
257
                if ($data[i].readed) {
258
                  wei = '<em class="is_readed"></em>';
259
                } else {
260
                  wei = '<em class="is_readed"></em>';
261
                }
262
                fCo = "B_end";
263
                headImg = '/images/head/' + userid + '_l.jpg';
264
              } else {
265
                headImg = imgUrl;
266
              }
267
              if (i == 0) {
268
                timeG = anTime($data[i].opTime);
269
              } else {
270
                timeG = compareTime($data[i].opTime, $data[i - 1].opTime)
271
              }
272
              var oStr = '<span class="time" data-createtime="' + $data[i].opTime + '">' + timeG + '</span>' +
273
                '<div class="chat_item ' + le + '">' +
274
                '<div class="clearfix">' +
275
                '<div class="item_avatar fl">' +
276
                '<img src="'+headImg+'">' +
277
                '</div>' +
278
                '<div class="item_content ' + flo + '">' +
279
                wei +
280
                '<div class="bubble message ' + fCo + '">' + ($data[i].cnt).replace(/\n/g, "<br />") + '</div>' +
281
                '</div>' +
282
                '</div>' +
283
                '</div>'
284
              $(".chat_body_list").append(oStr);
285
            }
286
            $(".chat_body.clearfix").getNiceScroll().hide().show().resize();
287
            $(".chat_body.clearfix").getNiceScroll(0).doScrollTop($(".chat_body_list").height(), 100);
288
          }
289
        }
290
      },
291
      "error": function () {
292
        $.MsgBox.Alert('提示', '服务器连接超时');
293
      }
294
    });
295
  }
296
  /*让消息置为已读*/
297
  function setRead(data) {
298
    $.ajax({
299
      "url": "/ajax/platform/msg/readed",
300
      "type": "POST",
301
      "traditional": true,
302
      "data": data,
303
      "dataType": "json",
304
      "success": function (data) {
305
        if (data.success) {
306
307
        }
308
      },
309
      "error": function () {
310
        $.MsgBox.Alert('提示', '服务器连接超时');
311
      }
312
    });
313
  }
314
  /*超过时间10min*/
315
  function timeC(startTime) {
316
    var startdate = new Date(); 20190124155759
317
    startdate.setFullYear(parseInt(startTime.substring(0, 4)));
318
    startdate.setMonth(parseInt(startTime.substring(4, 6)) - 1);
319
    startdate.setDate(parseInt(startTime.substring(6, 8)));
320
    startdate.setHours(parseInt(startTime.substring(8, 10)));
321
    startdate.setMinutes(parseInt(startTime.substring(10, 12)));
322
    startdate.setSeconds(parseInt(startTime.substring(12, 14)));
323
    return startdate.getTime();
324
  }
325
326
  function compareTime(startTime, secondTime) {
327
    var date3 = timeC(secondTime) - timeC(startTime); //时间差的毫秒数
328
    if (date3 >= 600000) {
329
      if (new Date().getFullYear() == secondTime.substring(0, 4)) {
330
331
        return secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
332
      } else {
333
334
        return secondTime.substring(0, 4) + "年" + secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
335
      }
336
    } else {
337
      return '';
338
    }
339
  }
340
341
  function anTime(secondTime) {
342
    if (new Date().getFullYear() == secondTime.substring(0, 4)) {
343
344
      return secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
345
    } else {
346
347
      return secondTime.substring(0, 4) + "年" + secondTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + secondTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + secondTime.substring(8, 10) + ":" + secondTime.substring(10, 12);
348
    }
349
  }
350
351
  /*发送信息*/
352
  function sendMessage(par) {
353
    par.cnt = $('.messContent').val();
354
    $.ajax({
355
      "url": "/ajax/platform/msg/send",
356
      "type": "POST",
357
      "traditional": true,
358
      "data": par,
359
      "dataType": "json",
360
      "success": function (data) {
361
        if (data.success) {
362
          $(".btnModel").attr("disabled", "disabled");
363
          angleMessageList(objp)
364
          $(".messContent").val("");
365
        }
366
      },
367
      "error": function () {
368
        $.MsgBox.Alert('提示', '服务器连接超时');
369
      }
370
    });
371
  }
372
  $(".btnModel").click(function () {
373
    sendMessage(objp);
374
  })
375
  $(".messContent").on("input", function () {
376
    if ($.trim($(this).val()) == "") {
377
      $('.btnModel').attr("disabled", "disabled");
378
    } else {
379
      $('.btnModel').removeAttr("disabled");
380
    }
381
  })
382
  /*删除会话*/
383
	var $that;
384
	$(".list_body").on("click", ".close_icon", function() {
385
    if(timerset) {
386
      clearInterval(timerset);
387
    }
388
    oflag = false;
389
		$that = $(this)
390
		$.MsgBox.Confirm("提示", "确定删除?", deleChat);
391
		return false;
392
	})
393
	/*会话删除函数*/
394
	function deleChat() {
395
		$.ajax({
396
			"url": "/ajax/platform/msg/delete",
397
			"type": "POST",
398
			"traditional": true,
399
			"data": objp,
400
			"context": $that.parents(".list_item"),
401
			"dataType": "json",
402
			"success": function(data) {
403
				if(data.success) {
404
					$(this).remove();
405
					$(".chat_content_nodata").show();
406
					$(".chat_content").hide();
407
				}
408
			},
409
			"error": function() {
410
				$.MsgBox.Alert('提示', '服务器连接超时');
411
			}
412
		});
413
	}
414
})

+ 143 - 0
js/platform.js

@ -0,0 +1,143 @@
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li.mywork").addClass("navcurrent");
3
	$(".workmenu>ul>li:contains('需求')").addClass("nowLi");
4
	loginStatus();//判断个人是否登录
5
	valUser();
6
	function getYYYYMMDD() {
7
        var time = new Date();
8
        var year = time.getFullYear();
9
        var month = time.getMonth() + 1;
10
        if (month < 10) {
11
            month = '0' + month;
12
        }
13
        var day = time.getDate();
14
        if(day < 10) {
15
            day = '0' + day;
16
        }
17
        return year + '' + month +'' + day;
18
    }
19
    var plat = {
20
        info: {},
21
        catch: {},
22
        request: function(id,$this) {
23
            const funArray = this.catch.id;
24
            var that = this;
25
            $.ajax({
26
                url: "/ajax/platform/info",
27
                type: "GET",
28
                timeout: 10000,
29
                dataType: "json",
30
                traditional:true,
31
                data:{
32
                    id: id
33
                },
34
                success: function(data) {
35
                    delete that.catch.id;
36
                    if(data.success) {
37
                        var $data = data.data;
38
                        that.info.id = $data;
39
                        for(var i = 0; i < funArray.length; i++ ) {
40
                            funArray[i]($data);
41
                        }                                  
42
                    }
43
                },
44
                error: function() {
45
                    $.MsgBox.Alert('提示', '链接服务器超时')
46
                }
47
            })
48
        },
49
        judge: function(id, callback) {
50
            if(this.info.id) {
51
                callback(this.info.id)
52
            } else {
53
                if(this.catch.id) {
54
                    this.catch.id.push(callback)
55
                } else {
56
                    this.catch.id = [callback]
57
                    this.request(id)
58
                }
59
            }
60
        }
61
    }
62
	demandList(true,10, 1);
63
	/*点击搜索*/
64
	$(".searchSpan").click(function(){
65
		$(".tcdPageCode").remove();
66
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
67
		demandList(true,10,1);
68
	})
69
	/*需求列表*/
70
	function demandList(isbind, pageSize, pageNo) {
71
		$.ajax({
72
			url: "/ajax/platform/demand/pq",
73
			type: "GET",
74
			timeout: 10000,
75
			dataType: "json",
76
			traditional:true,
77
			data: {
78
                'invalidDay': getYYYYMMDD(),
79
				"key":$("#needKey").val(),
80
				"pageNo": pageNo,
81
				"pageSize":pageSize
82
			},
83
			beforeSend: function() {
84
				$("#demandList").append('<img src="../images/loading.gif" class="loading" />');
85
			},
86
			success: function(data) {
87
				if(data.success) {
88
                    $("#demandList").html(" ");
89
					var $info = data.data.data;
90
					if($info.length > 0){
91
						for(var i = 0; i < $info.length; i++) {
92
							var liStr=$("<li></li>").appendTo("#demandList");
93
							demandHtml($info[i],liStr);
94
						}
95
						if(isbind == true) {
96
							$(".tcdPageCode").createPage({
97
								pageCount: Math.ceil(data.data.total / pageSize),
98
								current: data.data.data.pageNo,
99
								backFn: function(p) {
100
									demandList(false,5, p);
101
								}
102
							});
103
						}
104
					}else{
105
						$("#demandList").parent().find(".nodatabox").removeClass("displayNone")
106
					}
107
				}
108
				$(".loading").remove();
109
			},
110
			error: function() {
111
				$.MsgBox.Alert('提示', '链接服务器超时')
112
			}
113
		})
114
    }
115
    
116
	function demandHtml($data,liStr) {
117
		var strCon='';
118
			strCon+='<a class="" target="_blank" href="platdemond.html?demandId='+$data.id+'&pid='+ $data.pid +'" class="madiaInfo">'
119
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
120
			strCon+='<ul class="showliTop h3Font clearfix">'
121
			strCon+='<li><span class="cmpName">'+ $data.linkOrg +'</span></li><li><span>发布于 '+TimeTr($data.publishTime)+'</span></li>'
122
			strCon+= '<li>来自<span class="platName">123</span></li>'
123
			strCon+='</ul>'
124
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
125
			strCon+='<ul class="showli clearfix h3Font">'
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>' }
129
			if($data.invalidDay){ strCon+='<li class="invaliTime">有效期至:'+TimeTr($data.invalidDay)+'</li>' }
130
			strCon+='</ul>'
131
            strCon+='</a>'
132
            var  $strCon = $(strCon);
133
            $strCon.appendTo(liStr);
134
            var localTime =  Number( getYYYYMMDD());
135
            var invaTime = Number($data.invalidDay);
136
            if(invaTime - localTime <= 7) {
137
                $strCon.find('.invaliTime').addClass('colorRed');
138
            }
139
        plat.judge($data.pid,function(data) {
140
            $strCon.find('.platName').text(data.name)
141
        })
142
	}
143
});

+ 1 - 0
js/public/baseUtil.js

@ -1,5 +1,6 @@
1 1
var wlogurl="http://192.168.3.233:8080"
2 2
//var wlogurl="http://www.ekexiu.com:8082";
3
var platUrl ="http://192.168.3.233:84";
3 4

4 5
function GetQueryString(name) {
5 6
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");

+ 30 - 6
js/public/genCom.js

@ -234,12 +234,8 @@ function unReadedCount(id){//查询指定用户的未读消息数量
234 234
		data:{"id":id},
235 235
		success:function(data){
236 236
			console.log(data)
237
			if(data.success && data.data){
238
				if(data.data!=0){
239
					$(".mymessage").find(".badge").text(data.data);
240
				}else{
241
					$(".mymessage").find(".badge").text("");
242
				}
237
			if(data.success){
238
				platMessageTotal(id,data.data)
243 239
			}
244 240
			
245 241
		}
@ -265,6 +261,34 @@ function unInformCount(id){//查询指定用户的未读通知数量
265 261
	});
266 262
}
267 263

264
function platMessageTotal(id,num) {
265
	$.ajax({
266
		url: "/ajax/platform/msg/unread",
267
		type: "GET",
268
		timeout: 10000,
269
		dataType: "json",
270
		traditional:true,
271
		data:{
272
			provider: id
273
		},
274
		success: function(data) {
275
			console.log(data)
276
			if(data.success) {
277
			  if(data.data) {
278
				  console.log(data.data +num)
279
				if(data.data + num !=0){
280
					$(".mymessage").find(".badge").text(data.data + num);
281
				}else{
282
					$(".mymessage").find(".badge").text("");
283
				}
284
			  }                        
285
			}
286
		},
287
		error: function() {
288
			$.MsgBox.Alert('提示', '链接服务器超时')
289
		}
290
	})
291
}
268 292
//轮播滚动函数
269 293
function Carousel(inde, num, show, childcount, obj, next, prev) {
270 294
	var tapnum = 0; //按钮可点击次数

+ 60 - 10
js/tidings.js

@ -16,8 +16,6 @@ $(document).ready(function() {
16 16
	if(userid=='null') {
17 17
		location.href="login.html";
18 18
	}
19
	console.log(professorId)
20
	console.log(userid)
21 19
	function websocrket() {
22 20
		var ws = new WebSocket("ws://192.168.3.233:8081/portal/websocket/msg?id=" + userid + "&pm=www");
23 21
		ws.onopen = function() {
@ -58,12 +56,14 @@ $(document).ready(function() {
58 56
						} else {
59 57
							var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
60 58
							$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
61
							$('.badge').text(Number($('.badge').text())+1)
59
							$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
60
							getTotalMessage()
62 61
						}
63 62
					} else {
64 63
						var oNu = Number($(".list_body").find('.list_item .tips_num').eq(i).text()) + 1;
65 64
						$(".list_body").find('.list_item .tips_num').eq(i).text(oNu).show();
66
						$('.badge').text(Number($('.badge').text())+1)
65
						$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
66
						getTotalMessage()
67 67
					}
68 68
					if(i > 0)
69 69
						$(".list_body").find('.list_item').eq(i).remove().clone().prependTo($(".list_body"));
@ -91,14 +91,37 @@ $(document).ready(function() {
91 91
				$(".list_body").prepend($str);
92 92
				personMess($info.sender, $str.find('img'), $str.find(".user_name"), $str.find(".authiconNew"));
93 93
				
94
						$('.badge').text(Number($('.badge').text())+1)
94
						$('.mymessage .badge').text(Number($('.mymessage .badge').text())+1)
95
						getTotalMessage()
95 96
			}
96 97
		};
97 98
		ws.onclose = function() {
98 99

99 100
		}
100 101
	}
101
	
102
	getPlatTotal()
103
	function getPlatTotal() {
104
		$.ajax({
105
		  url: "/ajax/platform/msg/unread",
106
		  type: "GET",
107
		  timeout: 10000,
108
		  dataType: "json",
109
		  traditional:true,
110
		  data:{
111
			  provider: userid
112
		  },
113
		  success: function(data) {
114
			  if(data.success) {
115
				if(data.data) {
116
				  $('.mesTotal').text('('+data.data+')');  
117
				}                        
118
			  }
119
		  },
120
		  error: function() {
121
			  $.MsgBox.Alert('提示', '链接服务器超时')
122
		  }
123
	  })
124
	  }
102 125
	if(professorId) {
103 126
		firstFlag = 1;
104 127
		$(".chat_content_nodata").hide();
@ -129,6 +152,7 @@ $(document).ready(function() {
129 152
					if($data.length) {
130 153
						if(arguments[1]) {
131 154
							setRead(opId, $data[$data.length - 1].sendTime)
155
							getTotalMessage();
132 156
						}
133 157
						if(firstFlag==1) {
134 158
							var ostr1 = '<div class="list_item clearfix active" data-id="' + professorId + '">' +
@ -482,13 +506,38 @@ $(document).ready(function() {
482 506
			}
483 507
		}
484 508
	document.addEventListener("error", ci, true /*指定事件处理函数在捕获阶段执行*/ );
509
	getTotalMessage()
510
	function getTotalMessage() {
511
		$.ajax({
512
		  url: "ajax/webMsg/unReadedCount",
513
		  type: "GET",
514
		  timeout: 10000,
515
		  dataType: "json",
516
		  traditional:true,
517
		  data:{
518
			  id: userid
519
		  },
520
		  success: function(data) {
521
			  if(data.success) {
522
				if(data.data) {
523
				  $('.kexiuTotal').text('('+data.data+')');  
524
				} else {
525
					$('.kexiuTotal').text('');  
526
				}                       
527
			  }
528
		  },
529
		  error: function() {
530
			  $.MsgBox.Alert('提示', '链接服务器超时')
531
		  }
532
	  })
533
	  }
485 534
	/*切换*/
486 535
	$(".list_body").on("click", ".list_item", function() {
487 536
		$(this).addClass("active").siblings().removeClass("active");
488 537
		if($(this).find(".tips_num").css("display")=="block") {
489
			$('.badge').text(Number($('.badge').text())-Number($(this).find(".tips_num").text()));
490
			if($('.badge').text()==0) {
491
				$(".badge").text("");
538
			$('.mymessage .badge').text(Number($('.mymessage .badge').text())-Number($(this).find(".tips_num").text()));
539
			if($('.mymessage .badge').text()==0) {
540
				$(".mymessage .badge").text("");
492 541
			}
493 542
		}
494 543
		$(this).find(".tips_num").text(0).hide();
@ -508,6 +557,7 @@ $(document).ready(function() {
508 557
		} else {
509 558
			angleMessageList(pro.id);
510 559
		}
560
		getTotalMessage()
511 561
	});
512 562
	/*让消息置为已读*/
513 563
	function setRead(opid, time) {
@ -657,4 +707,4 @@ $(document).ready(function() {
657 707
			});
658 708
		}
659 709
	})
660
})
710
})

+ 13 - 12
myDemand.html

@ -43,6 +43,7 @@
43 43
		    	<div class="workcontit">
44 44
					<a class="worksamlltit worksamlltitnow">我的需求</a>
45 45
					<a class="worksamlltit" href="needList.html">需求搜索</a>
46
					<a class="worksamlltit worksamlltitnowR" href="platform.html">查看来自合作平台的需求</a>
46 47
				</div>
47 48
				<div class="itemListBolck">
48 49
					<div class="topOperaBlock clearfix">
@ -53,18 +54,18 @@
53 54
					<div class="form-item itemListCon">
54 55
						<div class="form-result aboutRes">
55 56
							<ul class="form-need" id="myneedList">
56
								<!--<li>
57
									<a target="_blank" href=""class="madiaInfo">
58
											<p class="h1Font ellipsisSty">对对对</p>
59
											<ul class="showliTop h2Font clearfix">
60
												<li><span>发布于 8月30日 13:16</span></li>
61
												<li><span>浏览量 8</span></li>
62
												<li><span class="draftLable">已于 5月19日 23:59 过期</span></li>
63
											</ul>
64
									</a>
65
									<ul class="madiaEdit">
66
										<li><span class="closeThis">关闭</span></li>
67
									</ul>
57
								<!--<li>
58
									<a target="_blank" href=""class="madiaInfo">
59
											<p class="h1Font ellipsisSty">对对对</p>
60
											<ul class="showliTop h2Font clearfix">
61
												<li><span>发布于 8月30日 13:16</span></li>
62
												<li><span>浏览量 8</span></li>
63
												<li><span class="draftLable">已于 5月19日 23:59 过期</span></li>
64
											</ul>
65
									</a>
66
									<ul class="madiaEdit">
67
										<li><span class="closeThis">关闭</span></li>
68
									</ul>
68 69
								</li>-->
69 70
								
70 71
							</ul>

+ 1 - 20
needList.html

@ -29,6 +29,7 @@
29 29
		    	<div class="workcontit">
30 30
					<a class="worksamlltit" href="myDemand.html">我的需求</a>
31 31
					<a class="worksamlltit worksamlltitnow">需求搜索</a>
32
					<a class="worksamlltit worksamlltitnowR" href="platform.html">查看来自合作平台的需求</a>
32 33
				</div>
33 34
				<div class="itemListBolck needinfobox">
34 35
					<div class="topOperaBlock clearfix">
@ -40,26 +41,6 @@
40 41
					<div class="form-item itemListCon needList">
41 42
						<div class="form-result aboutRes">
42 43
							<ul class="form-need" id="demandList">
43
								<!--<li>
44
									<a href="" class="madiaInfo">
45
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
46
										<ul class="showliTop clearfix h3Font">
47
											<li>北京赛亿科技有限公司</li>
48
											<li>发布于 5月8日 18:00</li>
49
											<li>浏览量 1000</li>
50
										</ul>
51
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
52
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
53
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
54
										<ul class="showli clearfix h3Font">
55
											<li>所在城市:北京市</li>
56
											<li>预期时长:1个月内</li>
57
											<li>费用预算:1万元以内</li>
58
											<li>有效期至:8月17日</li>
59
										</ul>
60
									</a>
61
								</li>-->
62
								
63 44
							</ul>
64 45
						
65 46
							<!--无搜索结果-->

+ 89 - 0
platDemond.html

@ -0,0 +1,89 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>浏览需求-科袖网</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12
<style>
13
     .platName {
14
        margin-left: 15px;
15
    }
16
    .showStatus li{
17
        list-style:none;
18
        margin-top: 10px;
19
    }
20
    .showMain .showStatusY {
21
        text-align: left;
22
        color: #666666;
23
    }
24
</style>
25
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
26
</head>
27
28
<body>
29
        <div class="blackcover questionCover displayNone">
30
                <div class="resAreaBox putquestion">
31
                    <div class="queStep queStep01">
32
                        <div class="steptit">回复需求</div>
33
                        <ul class="artAbout">
34
                            <li>
35
                                <div class="aboutTit">确定后,将在【消息】中收到对方发来的信息。您可以先给对方留言
36
                                    <em class="requiredcon">*</em><span class="frmconmsg"></span></div>
37
                                <div class="msgContbox">
38
                                    <textarea class="msgCont" id="queTit"></textarea>
39
                                </div>
40
                            </li>
41
                            <li class="saveBtn" style="text-align:center;">
42
                                    <button type="button" class="frmcontype btnModel" id="pubSte" style="float:none">确定</button>
43
                                    <button type="button" class="frmcontype btnModel btnCancel" id="preSte" style="float:none">取消</button>
44
                            </li>
45
                        </ul>
46
                    </div>
47
                    <span class="workclose" id="workclose"></span>
48
                </div>
49
            </div>
50
<header id="header">
51
	<script src="js/header.js"></script>
52
</header>
53
<div id="container">
54
	<div class="containerCon">
55
		<div class="contentCon clearfix conBlock">
56
			<div class="leftconBox floatL">
57
				<div class="showDetail">
58
                    <div>来自:<span class="platName"></span></div>
59
					<div class="h1Font" id="demandTit"></div>
60
					<div class="operateBlock bottomShow" style="margin-top:10px;">
61
                		<ul class="clearfix" id="demandNum">
62
                		</ul>
63
                	</div>
64
					<!--详情区-->
65
					<div class="showMain">
66
						<div class="showCon" style="min-height: 60px;" id="demandDesp"></div>
67
						<ul class="showli clearfix h3Font" id="demandInf">
68
							
69
						</ul>
70
						<div class="showStatus">
71
							
72
						</div>
73
					</div>
74
				</div>
75
			</div>
76
		</div>
77
	</div>
78
</div>
79
<footer>
80
	<script type="text/javascript" src="js/footer.js"></script>
81
</footer>
82
<script type="text/javascript" src="js/jquery.cookie.js"></script>
83
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
84
<script type="text/javascript" src="js/public/baseUtil.js"></script>
85
<script type="text/javascript" src="js/public/genCom.js"></script>
86
<script type="text/javascript" src="js/platDemond.js"></script>
87
<script type="text/javascript" src="js/quickLogin.js"></script>
88
</body>
89
</html>

+ 90 - 0
platTiding.html

@ -0,0 +1,90 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>消息-科袖网</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12
<link rel="stylesheet" type="text/css" href="./css/main.html_aio_eb0d518.css">
13
<style>
14
    .list_title a{
15
        width: 50%;
16
        text-align: center;
17
        display: inline-block;
18
        color:#333;
19
        font-size: 16px;
20
    }
21
    .list_title a.active {
22
        background-color: #d7d7d7;
23
    }
24
</style>
25
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
26
</head>
27
<body>
28
<header id="header">
29
	<script src="js/header.js"></script>
30
</header>
31
	<div id="main-content-wrapper">
32
        <div class="chat_box clearfix" id="chatBox" >
33
            <div class="chat_list">
34
              	<div class="list_title"><a href="tidings.html">科袖消息<span class="kexiuTotal"></span></a><a class="active">来自平台<span class="mesTotal"></span></a></div>
35
				<div class="list_body" tabindex="0" style="overflow: hidden; outline: none;">
36
				</div>
37
			</div>
38
			<!-- 聊天右侧显示区域 -->
39
			<div class="chat_content" style="display:none;">
40
				<div class="chat_content_head">
41
					<div class="head_info">
42
							<span class="left">
43
								
44
							</span>
45
							<span class="center">
46
								<span class="usepro">
47
									<span class="user_name"></span>
48
									<em class="authiconNew " ></em>
49
								</span>
50
								<span class="chating_resume_status ellipsisSty" style="display:block;margin-top:6px;font-size:14px;">
51
									
52
								</span>
53
							</span>
54
							<span class="right">
55
								<a id="cUserPage" target="_blank">查看对方资料</a><a class="repoMore" href="javascript:void(0)" id="repo"></a>
56
								<span id="report" style=" line-height: 35px;">举报</span>
57
							</span>
58
					</div>
59
				</div>
60
				<div class="chat_body clearfix" tabindex="1" style="overflow: hidden; outline: none;">
61
					<div class="chat_body_list">
62
						
63
					</div>
64
				</div>
65
				<div class="chat_content_bottom">
66
					<div class="blocked-mask" style="display: none;"></div>
67
					<div class="tool_bar clearfix"></div>
68
					<div class="edit_area">
69
						<div class="input_area"  id="editeBox">
70
							<textarea class="messContent" maxlength="1000"></textarea>
71
							<div><input type="button" class="btnModel " value="发送" disabled /></div>
72
						</div>
73
							
74
					</div>
75
				</div>
76
				
77
			</div>
78
		<div class="chat_content_nodata">
79
					<p>点击左侧列表,查看对话记录</p>
80
				</div>
81
        </div>
82
    </div>
83
<script type="text/javascript" src="js/jquery.cookie.js"></script>
84
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
85
<script src="js/jquery.nicescroll.min.js"></script>
86
<script type="text/javascript" src="js/public/baseUtil.js"></script>
87
<script type="text/javascript" src="js/public/genCom.js"></script>
88
<script type="text/javascript" src="js/platTiding.js"></script>
89
</body>
90
</html>

+ 106 - 0
platform.html

@ -0,0 +1,106 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>需求-我的工作台-科袖网</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />	
9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
11
<link type="text/css" href="css/common.css" rel="stylesheet">
12
<link type="text/css" href="css/genindex.css" rel="stylesheet">
13
<style>
14
    .platName {
15
        margin-left: 15px;
16
    }
17
    li.colorRed {
18
        color: red;
19
    }
20
</style>
21
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
22
</head>
23
<body>
24
<!--头部-->
25
<header id="header">
26
	<script src="js/header.js"></script>
27
</header>
28
29
<!--中间-->
30
<div id="container">
31
	<div class="containerCon">
32
		<div class="contentCon clearfix conBlock">
33
	        <div class="workmenu">
34
	        	<script src="js/workMenu.js"></script>
35
	        </div>
36
 			<div class="workcon workconG">
37
		    	<div class="workcontit">
38
					<a class="worksamlltit" href="myDemand.html">我的需求</a>
39
                    <a class="worksamlltit" href="needList.html">需求搜索</a>
40
                    <a class="worksamlltit worksamlltitnowR">查看来自合作平台的需求</a>
41
				</div>
42
				<div class="itemListBolck needinfobox">
43
					<div class="topOperaBlock clearfix">
44
						<div class="searchAbout col-w-8">
45
							<input class="frmcontype" type="search" placeholder="请输入关键词" id="needKey" maxlength="50">
46
							<span class="searchSpan"></span>
47
						</div>
48
					</div>
49
					<div class="form-item itemListCon needList">
50
						<div class="form-result aboutRes">
51
							<ul class="form-need" id="demandList">
52
								<!--<li>
53
									<a href="" class="madiaInfo">
54
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
55
										<ul class="showliTop clearfix h3Font">
56
											<li>北京赛亿科技有限公司</li>
57
											<li>发布于 5月8日 18:00</li>
58
											<li>浏览量 1000</li>
59
										</ul>
60
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
61
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
62
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
63
										<ul class="showli clearfix h3Font">
64
											<li>所在城市:北京市</li>
65
											<li>预期时长:1个月内</li>
66
											<li>费用预算:1万元以内</li>
67
											<li>有效期至:8月17日</li>
68
										</ul>
69
									</a>
70
								</li>-->
71
								
72
							</ul>
73
						
74
							<!--无搜索结果-->
75
							<div class="nodatabox displayNone">
76
						        <div class="nodata">
77
						            <div class="picbox picNull"></div>
78
						            <div class="txtbox">
79
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
80
						            </div>
81
						        </div>
82
						    </div>
83
							<div class="tcdPageCode"></div>
84
						</div>
85
					</div>
86
				</div>
87
			</div>
88
89
        </div>
90
    </div>
91
</div>
92
93
<!--底部-->
94
<footer>
95
	<script type="text/javascript" src="js/footer.js"></script>
96
</footer>
97
98
<script type="text/javascript"src="js/jquery.cookie.js"></script>
99
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
100
<script type="text/javascript" src="js/jquery.page.js"></script>
101
<script type="text/javascript" src="js/public/baseUtil.js"></script>
102
<script type="text/javascript" src="js/public/genCom.js"></script>
103
<script type="text/javascript" src="js/platform.js"></script>
104
</body>
105
</html>
106

+ 13 - 1
tidings.html

@ -10,6 +10,18 @@
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11 11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12 12
<link rel="stylesheet" type="text/css" href="./css/main.html_aio_eb0d518.css">
13
<style>
14
		.list_title a{
15
			width: 50%;
16
			text-align: center;
17
			display: inline-block;
18
			color:#333;
19
			font-size: 16px;
20
		}
21
		.list_title a.active {
22
			background-color: #d7d7d7;
23
		}
24
	</style>
13 25
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
14 26
</head>
15 27
<body>
@ -19,7 +31,7 @@
19 31
	<div id="main-content-wrapper">
20 32
        <div class="chat_box clearfix" id="chatBox" >
21 33
            <div class="chat_list">
22
              	<div class="list_title">消息列表</div>
34
              	<div class="list_title"><a class="active">科袖消息<span class="kexiuTotal"></span></a><a href="platTiding.html">来自平台<span class="mesTotal"></span></a></div>
23 35
				<div class="list_body" tabindex="0" style="overflow: hidden; outline: none;">
24 36
				</div>
25 37
			</div>