lipengtao 6 years ago
parent
commit
6b9c2824ad
16 changed files with 1199 additions and 86 deletions
  1. 1 1
      cmp-portal/css/common.css
  2. 1 1
      css/common.css
  3. 29 28
      css/genindex.css
  4. 6 5
      index.html
  5. 185 0
      js/platDemond.js
  6. 429 0
      js/platTiding.js
  7. 143 0
      js/platform.js
  8. 2 1
      js/public/baseUtil.js
  9. 30 6
      js/public/genCom.js
  10. 60 10
      js/tidings.js
  11. 13 12
      myDemand.html
  12. 1 20
      needList.html
  13. 89 0
      platDemond.html
  14. 90 0
      platTiding.html
  15. 106 0
      platform.html
  16. 14 2
      tidings.html

+ 1 - 1
cmp-portal/css/common.css

@ -206,7 +206,7 @@ footer .weixincode{background-image: url(../images/home_bg_guanzhu_nor.png);}
206 206
footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);background-size: cover;}
207 207

208 208
/*新版header*/
209
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
209
#header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
210 210
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
211 211
header .navheader.navhdown{background: rgba(256,256,256,1);border-color:#E5E5E5;box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);-webkit-box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);}
212 212
header .navheader.navhdown li a{color:#666;}

+ 1 - 1
css/common.css

@ -181,7 +181,7 @@ footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);bac
181 181
.search-btn{ width:35px; height:35px; float:right; behavior:url(../js/ie-css3.htc);cursor:pointer;}
182 182
.search-icon{ display:block; width:20px; height:20px; background:url(../images/index-icon.png) no-repeat; background-position:left; margin:8px;}
183 183

184
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
184
#header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
185 185
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
186 186
header .navheader.navhdown{background: rgba(256,256,256,1);border-color:#E5E5E5;box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);-webkit-box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);}
187 187
header .navheader.navhdown li a{color:#666;}

+ 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%;}

+ 6 - 5
index.html

@ -15,11 +15,11 @@
15 15
<link type="text/css" href="css/index.css" rel="stylesheet">
16 16
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
17 17
<script type="text/javascript" src="js/bootstrap.min.js"></script>
18
<style type="text/css">
18
<style type="text/css">
19 19
	#header{top:30px;}
20 20
	.searchblock{display:none;} 
21 21
	header .navheader{background: transparent;border-color: transparent;}
22
	header .navheader li a{color:#FFFFFF;}
22
	header .navheader li a{color:#FFFFFF;}
23 23
</style>
24 24
<script>
25 25
	var _hmt = _hmt || [];
@ -219,7 +219,8 @@
219 219
            <h3 class="tit-M col-w-1" style="margin-bottom: 0;">友情链接</h3>
220 220
            <div class="link-box col-w-11" style="margin-top:2px;">
221 221
                <ul>
222
                    <li><a href="http://www.ecorr.org/" target="_blank">中国腐蚀与防护网</a></li>
222
					<li><a href="http://www.ecorr.org/" target="_blank">中国腐蚀与防护网</a></li>
223
					<li><a href="http://www.zhaowoce.com" target="_blank">第三方检测</a></li>
223 224
                </ul>
224 225
            </div>
225 226
        </div>
@ -236,7 +237,7 @@
236 237
<script type="text/javascript" src="js/public/baseUtil.js"></script>
237 238
<script type="text/javascript" src="js/public/genCom.js"></script>
238 239
<script type="text/javascript" src="js/index.js"></script>
239
<script type="text/javascript">
240
<script type="text/javascript">
240 241
	$(document).scroll(function() {
241 242
		var topMo = $(document).scrollTop();
242 243
		if (topMo == 0) {
@ -255,7 +256,7 @@
255 256
		$(".modelContain").hide();
256 257
		$(".blackcover2").fadeOut();
257 258
		$("body").removeClass("modelOpen");
258
	})
259
	})
259 260
</script>
260 261
<script src="https://s4.cnzz.com/z_stat.php?id=1261924710&web_id=1261924710" language="JavaScript"></script>
261 262
</body>

+ 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>发布时间:</span><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){ strCon+='<li>预计周期:'+$da.duration+'</li>' }
77
					if($da.cost){ 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
})

+ 429 - 0
js/platTiding.js

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

+ 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){ strCon+='<li>预计周期:'+$data.duration+'</li>' }
128
			if($data.cost){ 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
});

+ 2 - 1
js/public/baseUtil.js

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

3
//var platUrl ="http://192.168.3.233:84";
4
var platUrl= "http://xttjpt.cn"
4 5
function GetQueryString(name) {
5 6
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
6 7
	var r = window.location.search.substr(1).match(reg);

+ 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="" 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

+ 14 - 2
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>
@ -64,7 +76,7 @@
64 76
				
65 77
			</div>
66 78
		<div class="chat_content_nodata">
67
					<p>暂无消息</p>
79
					<p>点击左侧列表,查看对话记录</p>
68 80
				</div>
69 81
        </div>
70 82
    </div>