瀏覽代碼

kejijiaoyi

dengzhiguo 7 年之前
父節點
當前提交
d714d54a0a
共有 49 個文件被更改,包括 814 次插入632 次删除
  1. 二進制
      img/all_null.png
  2. 二進制
      img/kuaiji1.jpg
  3. 二進制
      img/kuaiji2.jpg
  4. 二進制
      img/kuaiji3.jpg
  5. 二進制
      img/kuaiji4.jpg
  6. 二進制
      img/lvshi1.jpg
  7. 二進制
      img/lvshi2.jpg
  8. 二進制
      img/lvshi3.jpg
  9. 二進制
      img/lvshi4.jpg
  10. 二進制
      img/qq_content.png
  11. 二進制
      img/service_1.jpg
  12. 二進制
      img/service_10.jpg
  13. 二進制
      img/service_11.jpg
  14. 二進制
      img/service_12.jpg
  15. 二進制
      img/service_13.jpg
  16. 二進制
      img/service_14.jpg
  17. 二進制
      img/service_15.jpg
  18. 二進制
      img/service_16.jpg
  19. 二進制
      img/service_2.jpg
  20. 二進制
      img/service_3.jpg
  21. 二進制
      img/service_4.jpg
  22. 二進制
      img/service_5.jpg
  23. 二進制
      img/service_6.jpg
  24. 二進制
      img/service_7.jpg
  25. 二進制
      img/service_8.jpg
  26. 二進制
      img/service_9.jpg
  27. 二進制
      img/xuqiuimg_null.png
  28. 二進制
      img/zhishi1.jpg
  29. 二進制
      img/zhishi2.jpg
  30. 二進制
      img/zhishi3.jpg
  31. 二進制
      img/zhishi4.jpg
  32. 二進制
      img/zhuanli1.jpg
  33. 二進制
      img/zhuanli2.jpg
  34. 二進制
      img/zhuanli3.jpg
  35. 二進制
      img/zhuanli4.jpg
  36. 二進制
      img/zhuanliimg_null.png
  37. 31 41
      src/css/Technologytrading.css
  38. 6 4
      src/css/financialIndex.css
  39. 8 5
      src/css/service.css
  40. 3 2
      src/css/technologyTrading/achievementDetail.css
  41. 3 1
      src/css/technologyTrading/demandDetail.css
  42. 1 1
      src/css/thinkTank/policyDetail.css
  43. 247 118
      src/js/Technologytrading.js
  44. 51 70
      src/js/financialIndex.js
  45. 8 4
      src/js/service.js
  46. 1 0
      src/js/service/highTechCognizance.js
  47. 2 1
      src/js/thinkTank/policyList.js
  48. 328 360
      src/js/thinktank.js
  49. 125 25
      template/Technologytrading.html

二進制
img/all_null.png


二進制
img/kuaiji1.jpg


二進制
img/kuaiji2.jpg


二進制
img/kuaiji3.jpg


二進制
img/kuaiji4.jpg


二進制
img/lvshi1.jpg


二進制
img/lvshi2.jpg


二進制
img/lvshi3.jpg


二進制
img/lvshi4.jpg


二進制
img/qq_content.png


二進制
img/service_1.jpg


二進制
img/service_10.jpg


二進制
img/service_11.jpg


二進制
img/service_12.jpg


二進制
img/service_13.jpg


二進制
img/service_14.jpg


二進制
img/service_15.jpg


二進制
img/service_16.jpg


二進制
img/service_2.jpg


二進制
img/service_3.jpg


二進制
img/service_4.jpg


二進制
img/service_5.jpg


二進制
img/service_6.jpg


二進制
img/service_7.jpg


二進制
img/service_8.jpg


二進制
img/service_9.jpg


二進制
img/xuqiuimg_null.png


二進制
img/zhishi1.jpg


二進制
img/zhishi2.jpg


二進制
img/zhishi3.jpg


二進制
img/zhishi4.jpg


二進制
img/zhuanli1.jpg


二進制
img/zhuanli2.jpg


二進制
img/zhuanli3.jpg


二進制
img/zhuanli4.jpg


二進制
img/zhuanliimg_null.png


+ 31 - 41
src/css/Technologytrading.css

@@ -1,4 +1,4 @@
-
+body{background:red;}
 *{box-sizing: border-box;}
 .clear_line{width:100%;height:1px;}
 #technology{width:100%;height:420px;box-shadow: 0 8px 8px 0 #E4E4E4;}
@@ -12,12 +12,12 @@
 .technolo>div>h3{color:#256195;}
 .technolo>div>div:hover{background: url("../../img/technology_bg.png") center center;
 background-size: 390px 235px;}
-.technolo_text{width:365px;height:210px;border:1px solid #F4F4F4;
-    margin:12px auto;border-radius: 10px;padding: 50px 10px 35px 30px;}
-.technolo_text>div{margin-bottom: 10px;}
+.technolo_text{width:365px;height:180px;border:1px solid #F4F4F4;overflow: hidden;
+    margin:12px auto;border-radius: 10px;padding: 50px 10px 0 30px;}
+.technolo_text>div{margin-bottom: 12px;line-height: 24px;height:30px;}
 .technolo_text h5{color:#FF951D;margin:0;}
-.technolo_text p{display: inline-block;}
-.technolo_text a{display: inline-block;color:#FF951D;}
+.technolo_text p{display: inline-block;color:#ccc;}
+.technolo_text a{display: inline-block;color:#ccc;float:right;cursor: text;}
 .technolo>div>div>img{position: absolute;top:-40px;left:20px;}
 .technolo>div>div>span{width:75px;height:35px;background: #FFB200;
     border-radius: 10px;position: absolute;left:40px;bottom:0;text-align: center;
@@ -26,7 +26,10 @@ background-size: 390px 235px;}
     position: absolute;top:40px;left:400px;}
 .technolo_right{width:390px;height:340px;display:inline-block;
     position: absolute;top:40px;right:0;}
-
+.technolo_right .technolo_text p{display: none;position: absolute;top:-30px;left:-295px;z-index: 100;background: #fff;width:300px;height:270px;overflow: auto;
+color:#333;}
+.technolo_right .technolo_text a{cursor: pointer;}
+.technolo_right .technolo_text h5{color:#FF951D;margin:0;line-height: 24px;}
 /*search*/
 #search{width:100%;height:270px;background: #F5F5F5;padding-top: 25px;margin-top: 10px;}
 .search{width:1200px;height:215px;background: url("../../img/search_bg.png") center center;
@@ -57,7 +60,7 @@ body{background: #f5f5f5;}
 .industry_left h3{font-size: 24px;margin-bottom: 22px;color: #FFFFFF;font-weight:normal;}
 .industry_left ul li a{font-size:16px ;color: #ffffff;}
 .industry_left ul li{line-height: 36px;height: 36px;cursor: pointer;}
-.title_details{width: 840px;clear: both;margin-bottom: 36px;}
+.title_details{width: 840px;clear: both;margin-bottom:20px;}
 .industry_right{float: left;padding-left: 30px;width: 870px;}
 .title_details ol {width: 100%;overflow: hidden;border-bottom: 1px solid #CCCCCC;}
 
@@ -67,60 +70,47 @@ body{background: #f5f5f5;}
 .act{color:#074d88 !important;border-bottom: 1px solid #074d88!important;}
 .action_li{box-shadow: 0 0 10px 0 #ddd inset}
 .checked_no{display:none;}
-.main_details{overflow: hidden;width:840px;height:790px;}
+.main_details{overflow: hidden;width:840px;height:800px;}
 .main_details ul{overflow: hidden;}
-.main_details ul li{width: 260px;height:380px;float: left;position: relative;z-index: 10;box-shadow: 0 0 15px #CCCCCC;margin-left: 10px;margin-right: 10px;margin-bottom: 20px;}
-
-.title_details ol li{float: left;padding-left: 12px;padding-right: 12px;font-size: 24px;color: #333333;border-bottom: 1px solid transparent;line-height: 50px;}
+.main_details ul li{width: 260px;height:380px;float: left;position: relative;z-index: 10;box-shadow: 0 0 15px #CCCCCC;margin : 10px;cursor: pointer;}
+.title_details ol li{float: left;padding-left: 12px;padding-right: 20px;font-size: 24px;color: #333333;border-bottom: 1px solid transparent;line-height: 50px;position: relative;}
 .act{color:#074d88 !important;border-bottom: 1px solid #074d88!important;}
-.main_details ul{overflow: hidden;}
-.main_details ul li{width: 260px;height:380px;float: left;position: relative;z-index: 10;box-shadow: 0 0 15px #CCCCCC;margin-left: 10px;margin-right: 10px;margin-bottom: 20px;}
-
 .main_details ul li img{;width: 260px;height:211px;}
-.main_details ul li .details_fix{position: absolute;top: 140px;background: rgba(131,146,145,0.5);z-index: 12;width: 260px;height: 70px;
+.main_details ul li .details_fix{position: absolute;top: 140px;background: rgba(0,0,0,0.5);z-index: 12;width: 260px;height: 70px;
     text-align: left;color: #FFFFFF;padding-left: 10px;}
-.details_fix p{height:35px;width:100%;}
+.main_details ul li .details_fix>p>span{color:#ccc;}
+.details_fix p{height:30px;width:100%;line-height: 35px;}
 .details_fix p:first-child{margin-top: 0;}
 .details_fix p span{color: #333333;margin-left: 5px;}
 
-.details_text{width:260px;padding-top:10px ;position: absolute;left: 0;bottom:0px;}
+.details_text{width:260px;padding-top:10px ;position: absolute;left: 0;bottom:0;}
 .details_text p{width: 200px;margin:5px auto;color: #f68705;font-size: 16px;}
-.details_text p span{color: #333333;display: inline-block;width: 160px;overflow: hidden;height: 20px;vertical-align: top;text-overflow: ellipsis;white-space: nowrap;}
+.details_text p span{color: #333333;display: inline-block;width: 160px;overflow: hidden;height: 20px;
+    vertical-align: top;text-overflow: ellipsis;white-space: nowrap;margin-left: 8px;}
 .details_text p b{font-weight:normal;color: #333333;width:160px;height:40px ;display: inline-block;vertical-align: top; }
 .details_text a{width: 80px;height: 26px;display: inline-block;
     background: #ffb200;border-radius: 10px;float: right;
     line-height: 26px;text-align: center;color: #ffffff;
     margin-right: 30px;margin-bottom: 16px;margin-top:15px;}
 
-.pagination_box{width: 840px;}
 
+#demandList_patent{list-style: none;}
 .details_text{width:260px;padding-top:10px ;}
 .details_text p{width: 200px;margin:5px auto;color: #f68705;font-size: 16px;}
 .details_text p span{color: #333333;display: inline-block;width: 160px;overflow: hidden;height: 20px;vertical-align: top;text-overflow: ellipsis;white-space: nowrap;}
 .details_text p b{font-weight:normal;color: #333333;width:160px;height:40px ;display: inline-block;vertical-align: top; }
 .details_text a{width: 80px;height: 26px;display: inline-block;background: #ffb200;border-radius: 10px;float: right;line-height: 26px;text-align: center;color: #ffffff;margin-right: 30px;margin-bottom: 16px;}
 
-.pagination_box{width: 100%;height:50px;text-align: right;line-height: 90px;}
-.pagination_box>div{float:right;width:272px;height:50px;overflow: hidden;display:inline-block;line-height: 40px;}
-.pagination_box>span{width:40px;height:30px;display:inline-block;font-size: 14px;
-    float: right;line-height: 30px;margin-top: 10px;box-shadow: 0 0 10px 0 #999 inset;text-align: center;
-border-radius: 5px;cursor: pointer;font-weight: bold;}
-.pagination_box>span.second{border: none;box-shadow: none;line-height: 30px;font-size: 16px;color:#F68705;width:25px;text-align: center;
-    display: inline-block;cursor: pointer;font-weight: normal;}
-.pagination_box>span.first{border: none;box-shadow: none;line-height: 30px;font-size: 16px;color:#F68705;width:25px;text-align: center;
-    display: inline-block;cursor: pointer;font-weight: normal;}
-.pagination_box>span.span_true{color:#f68705;}
-.pagination_box>span.all_span{width:40px;height:30px;display:inline-block;font-size: 14px;
-    float: right;line-height: 30px;margin-top: 10px;font-weight: bold;text-align: center;
-border: none;box-shadow: none;}
-.pagination_box>span.one_all_span{width:60px;}
-.paging_box{overflow: hidden;}
-.paging_box>span{line-height: 50px;font-size: 16px;color:#F68705;width:30px;text-align: center;
-    display: inline-block;cursor: pointer;margin: 0 2px;}
-.paging_box>span.action_span{font-weight: bold;}
-.pagination_box  .totalCount{ float:right; line-height: 74px;margin-right: 20px;color: #999;}
-.pagination_box .pagination{float: right;}
-.pagination_box .pagination li{float: left;}
+.pagination_box {margin-bottom: 130px;margin-top: 20px;clear: both;float: left;}
+.pagination li{ float: left;margin-right: 12px;}
+.pagination li.active a{background: #efb04e;color: #ffffff!important;border: 1px solid #efb04e;}
+.pagination > li > a:hover,.pagination> li > a:focus{background: #efb04e!important;color: #ffffff;border: 1px solid #efb04e;outline: none!important;border: 1px solid #efb04e!important;}
+.totalCount {color: #999;float: right;border: 1px solid #ddd;display: inline-block;padding-left: 10px;padding-right: 10px;height: 33px;line-height: 33px;margin-top: 20px;}
+.pagination ul{float: left;}
+.pagination > li > a, .pagination > li > span{color: #333333;}
+
+.list_none{width:550px;height:150px;background:url("../../img/all_null.png") no-repeat;margin:50px auto;}
+.imgnull{width:260px;height:211px;background:url("../../img/zhuanliimg_null.png") no-repeat;background-size: 260px 211px;}
 .detail_interest_sub li{transition: all .5s;}
 .detail_interest_sub li:hover{transform: scale(.985)}
 .detail_interest_sub li:hover .interest_list_title>p{color: #fe9507;}

+ 6 - 4
src/css/financialIndex.css

@@ -10,7 +10,8 @@
 .project_cont{width:400px;height:160px;position: absolute;top:35px;right:0;padding:20px 0 0 15px;}
 #finance_tab h1{color:#15588F;}
 #finance_tab p{line-height: 30px;font-size: 16px;margin-top: 10px;}
-
+.list_none{width:550px;height:150px;background:url("../../img/all_null.png") no-repeat;margin:50px auto;}
+.imgnull{width:260px;height:211px;background:url("../../img/zhuanliimg_null.png") no-repeat;background-size: 260px 211px;}
 
 #fund_begin{width:100%;height:600px;}
 #fund_begin>div{width:1200px;margin:0 auto;}
@@ -72,13 +73,14 @@ form>img{position: absolute;top:2px;right:10px;}
 .allproduct_cont ul li img{;width: 285px;height:235px;}
 .details_fix{position: absolute;top: 165px;background: rgba(131,146,145,0.5);z-index: 12;
     width: 285px;height: 70px;text-align: left;color: #FFFFFF;padding-left: 10px;}
-.details_fix p{height:35px;width:100%;}
+.details_fix p{height:35px;width:100%;line-height: 35px;}
 .details_fix p:first-child{margin-top: 0;}
 .details_fix p span{color: #333333;margin-left: 5px;}
 
-.details_text{width:260px;padding-top:10px ;position: absolute;left: 0;bottom:0px;}
+.details_text{width:280px;padding-top:10px ;position: absolute;left: 0;bottom:0px;}
 .details_text p{width: 245px;margin:5px auto;color: #f68705;font-size: 16px;}
-.details_text p span{color: #333333;display: inline-block;width: 160px;overflow: hidden;height: 20px;vertical-align: top;text-overflow: ellipsis;white-space: nowrap;}
+.details_text p span{color: #333333;display: inline-block;width: 160px;overflow: hidden;height: 20px;vertical-align: top;
+    text-overflow: ellipsis;white-space: nowrap;margin-left:5px; }
 .details_text p b{font-weight:normal;color: #333333;width:160px;height:40px ;display: inline-block;vertical-align: top; }
 .details_text a{width: 80px;height: 26px;display: inline-block;
     background: #ffb200;border-radius: 10px;float: right;

+ 8 - 5
src/css/service.css

@@ -57,10 +57,13 @@ line-height: 120px;}
 .customer hr{width: 1200px;margin: 0 auto;}
 .customer_main span{font-size: 40px;color: #074d88;width: 180px;text-align: center;line-height: 120px;display: inline-block;}
 .that{border-bottom: 2px solid #074d88;}
-.customer_company{margin: 80px auto 0;}
-.customer_company li{float: left;width: 274px;margin-left: 14px;overflow: hidden;}
+.customer_company{margin: 80px auto 0;display: none;}
+.customer_company:nth-child(1){display: block;}
+.customer_company li{float: left;width: 274px;margin-left: 14px;overflow: hidden;height:274px;}
+.customer_company li>img{width:274px;height:222px;border:none;}
 .customer_company li:first-child{margin-left:0 ;}
-.customer_company li p{width: 100%;line-height: 52px;text-align: center;font-size: 16px;color: #333333;background: #ffffff;border: 1px solid #cccccc;margin-top: -2px;}
+.customer_company li p{width: 100%;line-height: 52px;text-align: center;font-size: 16px;color: #333333;background: #ffffff;border: 1px solid #cccccc;
+    margin-top: -2px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding: 0 5px;}
 .thon p{background: #ffb200!important;color: #FFFFFF!important;border: 1px solid transparent!important;}
 .customer_circle{clear: both;width: 85px;margin: 0 auto;overflow: hidden;padding-top: 58px;padding-bottom: 36px;}
 .customer_circle li{width: 15px;height: 15px;border-radius: 50%;background: #d5d6d8;float: left;margin-left: 5px;}
@@ -90,9 +93,9 @@ line-height: 120px;}
 .cooperation ul li:first-child{margin-left: 0;}
 .cooperation ul li>p{width: 100%;line-height: 100px;text-align: center;background: rgba(251,190,49,.8);font-size: 20px;color: #ffffff;}
 
-.cooperation ul li .coop_text{position: absolute;top: 0;left: 0;width: 270;height:385px;background:rgba(40,156,224,.7);z-index: 333;text-align: center;display: none;}
+.cooperation ul li .coop_text{position: absolute;top: 0;left: 0;width: 270px;height:385px;background:rgba(40,156,224,.7);z-index: 333;text-align: center;display: none;}
 
-.coop_text h6{font-weight: normal;font-size: 20px;color: #ffffff;margin-top: 40px;margin-bottom: 56px;}
+.coop_text h6{font-weight: normal;font-size: 20px;color: #ffffff;margin-top: 40px;margin-bottom: 25px;}
 .coop_text>p{font-size: 16px;color: #ffffff;padding-left: 20px;padding-right: 20px;text-align: left!important;}
 
 .cooperation ul li:hover .coop_text{display: block; cursor: pointer;}

+ 3 - 2
src/css/technologyTrading/achievementDetail.css

@@ -13,7 +13,7 @@
     border-bottom: 1px solid #EFEFEF;position: relative;}
 .small_img{width:200px;height:490px;display: inline-block;}
 .small_img>img{width:200px;height:155px;margin-bottom: 10px;}
-.big_img{width:470px;height:490px;display: inline-block;position: absolute;
+.big_img{width:470px;height:490px;display: inline-block;
 top:45px;left:310px;text-align: center; line-height: 490px;overflow: hidden;}
 .big_img img{width: 470px;height: 490px;}
 .detail_toptitle>a:hover{color: #000000;}
@@ -34,6 +34,7 @@ position: absolute;left:0;bottom:10px;}
 .fine>div.fine_title{width:90px;height:35px;background: #3185D0;text-align: center;
 line-height: 35px;color:#fff;border-radius: 5px;}
 .fine>div{width:240px;height:160px;margin-top: 10px;position: relative;}
+.fine>div>img{width:240px;height:160px;}
 .fine>div>p{width:240px;height:35px;position: absolute;left:0;bottom:0;background: #7A7572;
 color:#fff;text-align: center;line-height: 35px;}
 
@@ -43,7 +44,7 @@ padding: 0 30px;}
 .text_left>div{width:465px;height:40px;border-bottom:1px solid #F0F0F1;}
 .text_left>div>p{display: inline-block;font-size: 16px;}
 .text_left>div>h5{display: inline-block;font-weight: bold;font-size: 15px;width:100px;}
-.left_p{margin-left: 130px;}
+.left_p{margin-left: 0px;}
 .text_right>div{width:465px;height:40px;border-bottom:1px solid #F0F0F1;line-height: 40px;font-size: 16px;  }
 .text_right{position: absolute;top:30px;right: 0;}
 .text_right>p{padding: 10px 25px 0 0;}

+ 3 - 1
src/css/technologyTrading/demandDetail.css

@@ -15,6 +15,7 @@
 .big_text>h3{color:#316899;}
 .big_img{width:470px;height:490px;display: inline-block;position: absolute;
     top:95px;left:50px;}
+.big_img>img{width:470px;}
 .basic{width:300px;height:490px;position: absolute;top:95px;left:550px;}
 .basic>div{width:220px;height:55px;border-bottom: 1px solid #EFEFEF;}
 .basic>span{width:30px;height:30px;display: inline-block;position: absolute;bottom:-50px;left: -500px;}
@@ -30,6 +31,7 @@
 .fine>div.fine_title{width:90px;height:35px;background: #3185D0;text-align: center;
     line-height: 35px;color:#fff;border-radius: 5px;}
 .fine>div{width:240px;height:160px;margin-top: 10px;position: relative;}
+.fine>div>img{width:240px;height:160px;}
 .fine>div>p{width:240px;height:35px;position: absolute;left:0;bottom:0;background: #7A7572;
     color:#fff;text-align: center;line-height: 35px;}
 
@@ -46,7 +48,7 @@
 .main_introduce{clear: both;padding-top: 40px;overflow: hidden;width: 1200px;}
 .main_introduce ul {overflow: hidden;}
 .main_introduce>ul>li{float: left;margin: 0 15px;width: 270px;height: 360px;background: #ffffff;position: relative;margin-bottom: 16px;}
-.main_introduce ul li>img{width:270px ;height: 184px;}
+.main_introduce ul li>img{width:270px ;height: 184px;display: block;}
 .list_text {padding-left: 28px;padding-top: 10px;}
 .list_text p{line-height: 30px;height: 30px;color: #2f85d0;font-size: 16px;}
 .list_text p span{margin-left: 8px;color: #787878;font-size: 14px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;width: 168px;vertical-align: top;}

+ 1 - 1
src/css/thinkTank/policyDetail.css

@@ -1,4 +1,4 @@
-#policyDetail{width:100%;height:1250px;background: #F5F5F5;border-top:6px solid #2C6597;  }
+#policyDetail{width:100%;background: #F5F5F5;border-top:6px solid #2C6597;  }
 #title_top{width:100%;height:45px;background: #fff;padding-top: 15px;border-bottom: 1px solid #EDEDED;}
 
 .title_top{width:1100px;height:30px;padding-left: 25px;line-height: 24px;margin: 0 auto;

+ 247 - 118
src/js/Technologytrading.js

@@ -12,36 +12,96 @@ import {
     } from './DicIndustryList';
 
 (function(){
-    //处理data数据函数提取
+    var theKeyword,Province;
+    var thePageNo = 1,
+        thePageLength = 1,
+        pageSize = 6;
+    $(".technolo_right .technolo_text>div>a").click(function(e){
+        e.preventDefault();
+        $(this).parent().siblings().children("p").fadeOut();
+       $(this).parent().children("p").fadeToggle();
+    });
+    $(".technolo_right>div").mouseleave(function(){
+        $(".technolo_right .technolo_text>div>p").fadeOut();
+    });
+    $("#demandList_patent").on('click', 'li', function () {
+       var ol_index= $(".title_details ol>li.act").index();
+        var theId = $(this).attr('val');
+        var thetype=$(this).attr('typ');
+        if(ol_index==2){
+            window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
+        }
+       else{
+            window.open(globalConfig.context + '/portal/technologyTrading/achievementDetail?id=' + theId+'&type='+thetype );
+        }
+
+});
+//处理data数据函数提取
     function manage(data){
         var demand_html="";
         for(var i=0;i<data.list.length;i++){
-            demand_html+="<li>" +
-            "<img src='"+globalConfig.avatarUploadHost+data.list[i].pictureUrl+" alt=''/>" +
-            "<div class='details_text'>" +
-            "<p>行业<span>"+data.list[i].industryCatalog+"</span></p>" +
-            "<p>价格<span>"+data.list[i].price+"</span></p>" +
-            "<p>简介<b>"+data.list[i].sketch.substring(0,18)+"..."+"</b></p>" +
-            "<a href='#'>了解详情</a>" +
-            "</div>" +
-            "<div class='details_fix'>" +
-            "<p>专利名<span>"+data.list[i].name+"</span></p>" +
-            "<p>所有人<span>"+data.list[i].personName+"</span></p>" +
-            "</div></li>"
+            var catalog,price,sketch;
+            catalog=data.list[i].industryCatalog?data.list[i].industryCatalog:"所有行业";
+            price=data.list[i].price?data.list[i].price:"价格面议";
+            sketch=data.list[i].sketch?data.list[i].sketch.substring(0,18):"暂未简介";
+            if(!data.list[i].pictureUrl){
+                demand_html+="<li val='"+data.list[i].id+"' typ='"+data.list[i].ownerType+"'>" +
+                "<div class='imgnull'></div>" +
+                "<div class='details_text'>" +
+                "<p>行业<span>"+catalog+"</span></p>" +
+                "<p>价格<span>"+price+"</span></p>" +
+                "<p>简介<span>"+sketch+"..."+"</span></p>" +
+                "<a href='#'>了解详情</a>" +
+                "</div>" +
+                "<div class='details_fix'>" +
+                "<p>专利名<span>"+data.list[i].name+"</span></p>" +
+                "<p>所有人<span>"+data.list[i].personName+"</span></p>" +
+                "</div></li>"
+            }else{
+                demand_html+="<li val='"+data.list[i].id+"' typ='"+data.list[i].ownerType+"'>" +
+                "<img src='"+globalConfig.avatarUploadHost+data.list[i].pictureUrl+"' alt=''/>" +
+                "<div class='details_text'>" +
+                "<p>行业<span>"+catalog+"</span></p>" +
+                "<p>价格<span>"+price+"</span></p>" +
+                "<p>简介<span>"+sketch+"..."+"</span></p>" +
+                "<a href='#'>了解详情</a>" +
+                "</div>" +
+                "<div class='details_fix'>" +
+                "<p>专利名<span>"+data.list[i].name+"</span></p>" +
+                "<p>所有人<span>"+data.list[i].personName+"</span></p>" +
+                "</div></li>"
+            }
         }
         $("#demandList_patent").html(demand_html);
     }
     //当数据传回来之后,
     function page(data){
-        var data=Math.ceil(data/6);
-        var paging_html="";
-        for(var j=1;j<=data;j++){
-            paging_html+="<span value="+j+">"+j+"</span>"
-        }
-        $(".paging_box").html(paging_html).width(data*34);
-        $(".paging_box span:first").addClass("action_span").siblings().removeClass("action_span");
-        $(".page_right").addClass("span_true").after("<span class='all_span one_all_span'>共"+data+"页</span>");
+        var date=Math.ceil(data/6);
+        $('.totalCount').html("共 "+ date +" 页 " + data + " 条数据");
+        var pageArr = [],
+            firstNo = 1,
+            endNo = 5;
+        if (thePageNo > 3) {
+            firstNo = thePageNo - 2;
+            endNo = Math.min((Number(thePageNo) + 2), date);
+        } else {
+            endNo = Math.min(date, 5);
+        };
+        for (let i = firstNo; i <= endNo; i++) {
+            if (i == thePageNo) {
+                pageArr.push(
+                    '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            } else {
+                pageArr.push(
+                    '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            }
+        };
+        $('.pageNumber').remove();
+        $('.pagePre').after(pageArr.join(''));
     }
+
     var ul_html="";
     for(var i=0;i<industryObject.length;i++){
         ul_html+="<li value='"+industryObject[i].value+"'><a href='javascript:;'>"+industryObject[i].label+"</a></li>";
@@ -62,32 +122,56 @@ import {
         success: function (data) {
             if(data.data.totalCount==0){
                 $(".pagination_box").css("display","none");
-                $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                $("#demandList_patent").html("<div class='list_none'></div>");
             }else{
                 $(".pagination_box").css("display","block");
                 manage(data.data);
                 page(data.data.totalCount);
+                $(".pageNext").attr("all_length",Math.ceil(data.data.totalCount/6));
             }
         }
     })
 })();
 (function(){
+    var theKeyword,Province;
+    var thePageNo = 1,
+        thePageLength = 1,
+        pageSize = 6;
     //处理data数据函数提取
     function manage(data){
         var demand_html="";
         for(var i=0;i<data.list.length;i++){
-            demand_html+="<li>" +
-            "<img src='"+globalConfig.avatarUploadHost+data.list[i].pictureUrl+" alt=''/>" +
-            "<div class='details_text'>" +
-            "<p>行业:<span>"+data.list[i].industryCatalog+"</span></p>" +
-            "<p>价格:<span>"+data.list[i].price+"</span></p>" +
-            "<p>简介:<b>"+data.list[i].sketch.substring(0,18)+"..."+"</b></p>" +
-            "<a href='#'>了解详情</a>" +
-            "</div>" +
-            "<div class='details_fix'>" +
-            "<p>专利名:<span>"+data.list[i].name+"</span></p>" +
-            "<p>所有人:<span>"+data.list[i].personName+"</span></p>" +
-            "</div></li>"
+            var catalog,price,sketch;
+            catalog=data.list[i].industryCatalog?data.list[i].industryCatalog:"所有行业";
+            price=data.list[i].price?data.list[i].price:"价格面议";
+            sketch=data.list[i].sketch?data.list[i].sketch.substring(0,18):"暂无简介";
+            if(!data.list[i].pictureUrl){
+                demand_html+="<li val='"+data.list[i].id+"' typ='"+data.list[i].ownerType+"'>" +
+                "<div class='imgnull'></div>" +
+                "<div class='details_text'>" +
+                "<p>行业<span>"+catalog+"</span></p>" +
+                "<p>价格<span>"+price+"</span></p>" +
+                "<p>简介<span>"+sketch+"..."+"</span></p>" +
+                "<a href='#'>了解详情</a>" +
+                "</div>" +
+                "<div class='details_fix'>" +
+                "<p>专利名<span>"+data.list[i].name+"</span></p>" +
+                "<p>所有人<span>"+data.list[i].personName+"</span></p>" +
+                "</div></li>"
+            }else{
+                demand_html+="<li val='"+data.list[i].id+"' typ='"+data.list[i].ownerType+"'>" +
+                "<img src='"+globalConfig.avatarUploadHost+data.list[i].pictureUrl+"' alt=''/>" +
+                "<div class='details_text'>" +
+                "<p>行业<span>"+catalog+"</span></p>" +
+                "<p>价格<span>"+price+"</span></p>" +
+                "<p>简介<span>"+sketch+"..."+"</span></p>" +
+                "<a href='#'>了解详情</a>" +
+                "</div>" +
+                "<div class='details_fix'>" +
+                "<p>专利名<span>"+data.list[i].name+"</span></p>" +
+                "<p>所有人<span>"+data.list[i].personName+"</span></p>" +
+                "</div></li>"
+            }
         }
         $("#demandList_patent").html(demand_html);
     }
@@ -109,12 +193,15 @@ import {
             },
             success: function (data) {
                 if(data.data.totalCount==0){
-                    $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                   // $(".pagination_box").css("display","none");
+                    $("#demandList_patent").html("<div class='list_none'></div>");
                 }else{
-                    $(".pagination_box").css("display","block");
+                    //$(".pagination_box").css("display","block");
+                    thePageNo=1;
+                    console.log("进来了");
                     manage(data.data);
-                    page(data.data.totalCount);
+                    page_ol(data.data.totalCount);
+                    $(".pageNext").attr("all_length",Math.ceil(data.data.totalCount/6));
                 }
             }
         })
@@ -140,111 +227,153 @@ import {
             success: function (data) {
                 if(data.data.totalCount==0){
                     $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                    $("#demandList_patent").html("<div class='list_none'>.</div>");
                 }else{
                     $(".pagination_box").css("display","block");
                     manage(data.data);
                     page(data.data.totalCount);
+                    $(".pageNext").attr("all_length",Math.ceil(data.data.totalCount/6));
                 }
             }
         })
     });
 
     //右侧内容的分页功能,点击一次发送一个ajax的请求,只请求6组数据
-    $(".paging_box").on("click","span",function(e){
-        var page_length=$(this).attr("value");
-        var left_val=$(".industry_ul li.action_li").val();
-        var right_val=$(".title_details ol li.act").val();
-        var right_check=$(".title_details ol li.act").index();
+    function loadDate(pageNo) {
+        //var page_length = $(this).attr("value");
+        var left_val = $(".industry_ul li.action_li").val();
+        var right_val = $(".title_details ol li.act").val();
+        //var right_check = $(".title_details ol li.act").index();
         $.ajax({
             method: "post",
             dataType: "json",
             url: globalConfig.context + "/portal/search/boutiqueSearchList",
             data: {
-                boutiqueType:right_val,
-                industryCatalog:left_val,
-                pageNo:page_length,
-                pageSize:6
+                boutiqueType: right_val,
+                industryCatalog: left_val,
+                pageNo: pageNo,
+                pageSize: 6
             },
             success: function (data) {
-                if(data.data.totalCount==0){
-                    $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
-                }else{
-                    $(".pagination_box").css("display","block");
+                if (data.data.totalCount == 0) {
+                   // $(".pagination_box").css("display", "none");
+                    $("#demandList_patent").html("<div class='list_none'></div>");
+                } else {
+                    //$(".pagination_box").css("display", "block");
                     manage(data.data);
-                    page(data.data.totalCount);
-                    $(".paging_box span").eq(page_length-1).addClass("action_span").siblings().removeClass("action_span");
+                    var data=data.data.totalCount;
+                    var date=Math.ceil(data/6);
+
+                    $(".pageNext").attr("all_length",date);
+                    $('.totalCount').html("共 "+ date +" 页 " + data + " 条数据");
+                    var pageArr = [],
+                        firstNo = 1,
+                        endNo = 5;
+                    if (thePageNo > 3) {
+                        firstNo = thePageNo - 2;
+                        endNo = Math.min((Number(thePageNo) + 2), date);
+                    } else {
+                        endNo = Math.min(date, 5);
+                    };
+                    $('.pageNumber').remove();
+                    for (let i = firstNo; i <= endNo; i++) {
+                        if (i == thePageNo) {
+                            pageArr.push(
+                                '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                            );
+                        } else {
+                            pageArr.push(
+                                '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                            );
+                        }
+                    };
+                    $('.pagePre').after(pageArr.join(''));
                 }
             }
         });
-    });
-
-   //实现分页右侧点击按钮
-    var isfirst=0;//判断12...是不是应该添加
-    var page_click=0;//记录左右两侧的按钮点击的次数
-    $(".page_right").click(function(){
-        page_click++;
-        var box_scrollleft=$(".pagination_box>div").scrollLeft();
-        box_scrollleft+=102;
-        $(".pagination_box>div").scrollLeft(box_scrollleft);
-        $(".page_left").addClass("span_true");
-        if(isfirst==0){
-            $(".page_left").before("<span class='all_span two_all_span'>. . .</span><span class='second'>2</span><span class='first'>1</span>");
-            isfirst=1;
-        }
-        if($(".pagination_box>div").scrollLeft()==($(".paging_box").width()-$(".pagination_box>div").width())){
-            $(".page_right").removeClass("span_true");
-        };
-
-    });
-    //实现分页左侧点击按钮
-    $(".page_left").click(function(){
-        page_click--;
-        var box_scrollleft=$(".pagination_box>div").scrollLeft();
-        box_scrollleft-=102;
-        $(".pagination_box>div").scrollLeft(box_scrollleft);
-        $(".page_right").addClass("span_true");
-        if($(".pagination_box>div").scrollLeft()==0){
-            $(".page_left").removeClass("span_true");
-            $(".first").remove();
-            $(".second").remove();
-            $(".two_all_span").remove();
-            isfirst=0;
-        }
-    });
-
-    //新出来的1和2的点击效果
-    $(".pagination_box").on("click",".first",function() {
-        $(".paging_box").children().eq(0).click();
-        $(".pagination_box>div").scrollLeft(0);
-        $(".first").remove();
-        $(".second").remove();
-        $(".two_all_span").remove();
-        $(".page_left").removeClass("span_true");
-        isfirst = 0;
-    });
-    //新出来的1和2的点击效果
-    $(".pagination_box").on("click",".second",function(){
-        $(".paging_box").children().eq(1).click();
-        $(".pagination_box>div").scrollLeft(0);
-        $(".first").remove();
-        $(".second").remove();
-        $(".two_all_span").remove();
-        $(".page_left").removeClass("span_true");
-        isfirst=0;
-    });
+    }
     //当数据传回来之后,
     function page(data){
-        $(".one_all_span").remove();
-        var data=Math.ceil(data/6);
-        var paging_html="";
-        for(var j=1;j<=data;j++){
-            paging_html+="<span value="+j+">"+j+"</span>"
+        thePageNo=$(".pagination li.active").children()[0].text;
+        var date=Math.ceil(data/6);
+        $('.totalCount').html("共 "+ date +" 页 " + data + " 条数据");
+        var pageArr = [],
+            firstNo = 1,
+            endNo = 5;
+        if (thePageNo > 3) {
+            firstNo = thePageNo - 2;
+            endNo = Math.min((Number(thePageNo) + 2), date);
+        } else {
+            endNo = Math.min(date, 5);
+        }
+        $('.pageNumber').remove();
+        for (let i = firstNo; i <= endNo; i++) {
+            console.log(i);
+            if (i == thePageNo) {
+                pageArr.push(
+                    '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            } else {
+                pageArr.push(
+                    '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            }
         }
-        $(".paging_box").html(paging_html).width(data*34);
-        $(".page_right").addClass("span_true").after("<span class='all_span one_all_span'>共"+data+"页</span>");
+        $('.pagePre').after(pageArr.join(''));
     }
+    function page_ol(data){
+        var date=Math.ceil(data/6);
+        $('.totalCount').html("共 "+ date +" 页 " + data + " 条数据");
+        var pageArr = [],
+            firstNo = 1,
+            endNo = 5;
+        if (thePageNo > 3) {
+            firstNo = thePageNo - 2;
+            endNo = Math.min((Number(thePageNo) + 2), date);
+        } else {
+            endNo = Math.min(date, 5);
+        }
+        $('.pageNumber').remove();
+        console.log(firstNo);
+        console.log(endNo);
+        for (let i = firstNo; i <= endNo; i++) {
+            console.log(i);
+            if (i == thePageNo) {
+                pageArr.push(
+                    '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            } else {
+                pageArr.push(
+                    '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            }
+        }
+        $('.pagePre').after(pageArr.join(''));
+    }
+    $('.pagination').on('click', 'li', function (e) {
+        e.preventDefault();
+        thePageNo=$(".pagination li.active").children()[0].text;
+        if (this.className === 'pagePre') {
+            if (thePageNo > 1) {
+                thePageNo = 1;
+                loadDate(thePageNo);
+            }
+        } else if (this.className === 'pageNext') {
+            thePageLength=$(".pageNext").attr("all_length");
+            if (thePageNo < thePageLength) {
+                thePageNo = thePageLength;
+                loadDate(thePageNo);
+            }
+        } else {
+            var nextPageNo = $(this).children()[0].text;
+            if (thePageNo != nextPageNo) {
+                $(this).siblings("li").removeClass("active");
+                $(this).addClass("active");
+                thePageNo = nextPageNo;
+                loadDate(thePageNo);
+            }
+        }
+    });
 })();
 
 

+ 51 - 70
src/js/financialIndex.js

@@ -11,6 +11,10 @@ import {
     } from './DicIndustryList';
 
 (function(){
+    $("#demandList_patent").on('click', 'li', function () {
+        var theId = $(this).attr('value');
+        window.open(globalConfig.context + '/portal/financial/investmentDetail.html?organizationId=' + theId );
+    });
     //用JS导入行业下拉列表的数据
     var list_html="";
     for(var i=0;i<industryObject.length;i++){
@@ -26,8 +30,13 @@ import {
     $('.more_city').mouseleave(function(){
         $('.list_city').hide();
     });
-    //点击
+
+
+
+
+    //点击下拉框中的p
     $('.list_city p').click(function() {
+        $(".pagination_box").css("display","block");
         var ptxt = $(this).text();
         var pval = $(this).attr('value');
         $('.more_city .inp').text(ptxt);
@@ -50,7 +59,7 @@ import {
             success: function (data) {
                 if(data.data.totalCount==0){
                     $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                    $("#demandList_patent").html("<div class='list_none'></div>");
                 }else{
                      manage(data.data,ptxt);
                     page(data.data.totalCount);
@@ -67,6 +76,7 @@ import {
     });
     //项目和资金的tab切换
     $(".project").click(function(){
+        $(".pagination_box").css("display","block");
         $(this).addClass("active");
         $(".fund").removeClass("active");
         $("#finance_tab_two").css("display","block");
@@ -84,7 +94,7 @@ import {
             success: function (data) {
                 if(data.data.totalCount==0){
                     $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                    $("#demandList_patent").html("<div class='list_none'></div>");
                 }else{
                 manage(data.data,"教育休闲");
                 page(data.data.totalCount);
@@ -92,16 +102,20 @@ import {
             }
         })
     });
+
     function manage(data,ptxt){
         var demand_html="";
         for(var i=0;i<data.list.length;i++){
-            demand_html+="<li>" +
-            "<img src='"+globalConfig.avatarUploadHost+data.list[i].technicalPictureUrl+" alt=''/>" +
+            var price=data.list[i].transferPrice?data.list[i].transferPrice:"面议"
+            var  people=data.list[i].ownerName?data.list[i].ownerName:"保密"
+            var  sketch=data.list[i].sketch?data.list[i].sketch.substring(0,18):"暂无简介";
+            demand_html+="<li value='"+data.list[i].id+"'>" +
+            "<img src='"+globalConfig.avatarUploadHost+data.list[i].technicalPictureUrl+"' alt=''/>" +
             "<div class='details_text'>" +
-            "<p>融资金额:<span>"+data.list[i].transferPrice+"</span></p>" +
+            "<p>融资金额:<span>"+price+"</span></p>" +
             "<p>所属行业:<span>"+ptxt+"</span></p>" +
-            "<p>所有人:<span>"+data.list[i].ownerName+"</span></p>" +
-            "<p>项目简介:<b>"+data.list[i].introduction.substring(0,18)+"..."+"</b></p>" +
+            "<p>所有人:<span>"+people+"</span></p>" +
+            "<p>项目简介:<b>"+sketch+"..."+"</b></p>" +
             "<a href='#'>会谈</a>" +
             "</div>" +
             "<div class='details_fix'>" +
@@ -110,17 +124,35 @@ import {
         }
         $("#demandList_patent").html(demand_html);
     }
+
     function page(data){
-        $(".one_all_span").remove();
-        var data=Math.ceil(data/8);
-        var paging_html="";
-        for(var j=1;j<=data;j++){
-            paging_html+="<span value="+j+">"+j+"</span>"
-        }
-        $(".paging_box").html(paging_html).width(data*34);
-        $(".page_right").addClass("span_true").after("<span class='all_span one_all_span'>共"+data+"页</span>");
+        var date=Math.ceil(data/8);
+        $('.totalCount').html("共 "+ date +" 页 " + data + " 条数据");
+        var pageArr = [],
+            firstNo = 1,
+            endNo = 5;
+        if (thePageNo > 3) {
+            firstNo = thePageNo - 2;
+            endNo = Math.min((Number(thePageNo) + 2), date);
+        } else {
+            endNo = Math.min(date, 5);
+        };
+        for (let i = firstNo; i <= endNo; i++) {
+            if (i == thePageNo) {
+                pageArr.push(
+                    '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            } else {
+                pageArr.push(
+                    '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                );
+            }
+        };
+        $('.pageNumber').remove();
+        $('.pagePre').after(pageArr.join(''));
     }
     $(".paging_box").on("click","span",function(e){
+        $(".pagination_box").css("display","block");
         var page_length=$(this).attr("value");
         var left_val=$(".place_city .thon").attr("value");
         $.ajax({
@@ -147,6 +179,7 @@ import {
 
     });
     $('.place_city ul li').click(function() {
+        $(".pagination_box").css("display","block");
         $(this).addClass('thon').siblings().removeClass('thon')
         $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
         $('.more_city .inp').removeClass('thon');
@@ -164,8 +197,8 @@ import {
             },
             success: function (data) {
                 if(data.data.totalCount==0){
-                    $(".pagination_box").css("display","none");
-                    $("#demandList_patent").html("<div class='list_none'>敬请期待...</div>");
+                    //$(".pagination_box").css("display","none");
+                    $("#demandList_patent").html("<div class='list_none'></div>");
                 }else{
                     manage(data.data,"教育休闲");
                     page(data.data.totalCount);
@@ -173,60 +206,8 @@ import {
             }
         })
     })
-    //实现分页右侧点击按钮
-    var isfirst=0;//判断12...是不是应该添加
-    var page_click=0;//记录左右两侧的按钮点击的次数
-    $(".page_right").click(function(){
-        page_click++;
-        var box_scrollleft=$(".pagination_box>div").scrollLeft();
-        box_scrollleft+=102;
-        $(".pagination_box>div").scrollLeft(box_scrollleft);
-        $(".page_left").addClass("span_true");
-        if(isfirst==0){
-            $(".page_left").before("<span class='all_span two_all_span'>. . .</span><span class='second'>2</span><span class='first'>1</span>");
-            isfirst=1;
-        }
-        if($(".pagination_box>div").scrollLeft()==($(".paging_box").width()-$(".pagination_box>div").width())){
-            $(".page_right").removeClass("span_true");
-        };
 
-    });
-    //实现分页左侧点击按钮
-    $(".page_left").click(function(){
-        page_click--;
-        var box_scrollleft=$(".pagination_box>div").scrollLeft();
-        box_scrollleft-=102;
-        $(".pagination_box>div").scrollLeft(box_scrollleft);
-        $(".page_right").addClass("span_true");
-        if($(".pagination_box>div").scrollLeft()==0){
-            $(".page_left").removeClass("span_true");
-            $(".first").remove();
-            $(".second").remove();
-            $(".two_all_span").remove();
-            isfirst=0;
-        }
-    });
 
-    //新出来的1和2的点击效果
-    $(".pagination_box").on("click",".first",function() {
-        $(".paging_box").children().eq(0).click();
-        $(".pagination_box>div").scrollLeft(0);
-        $(".first").remove();
-        $(".second").remove();
-        $(".two_all_span").remove();
-        $(".page_left").removeClass("span_true");
-        isfirst = 0;
-    });
-    //新出来的1和2的点击效果
-    $(".pagination_box").on("click",".second",function(){
-        $(".paging_box").children().eq(1).click();
-        $(".pagination_box>div").scrollLeft(0);
-        $(".first").remove();
-        $(".second").remove();
-        $(".two_all_span").remove();
-        $(".page_left").removeClass("span_true");
-        isfirst=0;
-    });
 })();
 
 

+ 8 - 4
src/js/service.js

@@ -19,16 +19,20 @@ $(function(){
         $(".change_right").css("display","block");
         $(".change_left").css("display","none");
     });
-    $(".customer_company li").hover(function(){
-        $(this).addClass("thon").siblings().removeClass("thon");
+    $(".customer_circle li").click(function(){
+        $(this).addClass("thonli").siblings().removeClass("thonli");
         var lilength=$(this).index();
-        $(this).parent().next().children().removeClass("thonli").eq(lilength).addClass("thonli")
+        $(this).parent().parent().children("ul").css({"display":"none"}).eq(lilength).css({"display":"block"});
+
     });
     $(".work_office li").hover(function(){
         $(this).addClass("check_li").siblings().removeClass("check_li");
         var olli_index=$(this).index();
         $(this).parent().parent().children("ul").css("display","none").eq(olli_index).css("display","block");
-    })
+    });
+    $(".customer_company>li").hover(function(){
+       $(this).addClass("thon").siblings().removeClass("thon");
+    });
 })
 
 

+ 1 - 0
src/js/service/highTechCognizance.js

@@ -59,6 +59,7 @@ import '../../css/service/highTechCognizance.css';
         //}
         //var act_divheight=$(".problem_left>div.active_div").height();
         //$(".problem_left>div.active_div").animate({"bottom":(450-act_divheight)/2},"slow");
+        $(".problem_left>div").stop(false,true);
         $(".problem_left>div").fadeOut("fast");
         $(".problem_left>div.active_div").fadeIn("slow");
     }

+ 2 - 1
src/js/thinkTank/policyList.js

@@ -9,7 +9,7 @@ import {
     provinceList
     } from '../../js/NewDicProvinceList';
 $(function(){	
-	//数据处理	
+	//数据处理
 	var theKeyword,pageSize,Province;
     var thePageNo = 1,
     thePageLength = 1,
@@ -96,6 +96,7 @@ $(function(){
     //点击分页
      $('.pagination').on('click', 'li', function (e) {
         e.preventDefault();
+		 console.log(thePageNo);
         if (this.className === 'pagePre') {
             if (thePageNo > 1) {
                 thePageNo = 1;

+ 328 - 360
src/js/thinktank.js

@@ -11,382 +11,350 @@ import {
 import {
     techFieldList,
     getTechField
-} from './DicTechFieldList';   
+    } from './DicTechFieldList';
 
-$(function(){	
-	//智库、智者切换
-	$('.zizone .col-md-6').click(function(){
-		$(this).addClass('actives').siblings().removeClass('actives')
-	})	
-	$('.zone_left').click(function(){
-		$('.wiseman_list').hide();
-		$('.tab_zizone').show();
-	})
-	$('.zone_right').click(function(){
-		$('.wiseman_list').show();
-		$('.tab_zizone').hide();
-	})
-	//地方政策城市切换	
-	//初始北京第一页新闻
-	$('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon')
-	$.ajax({
+$(function(){
+    //智库、智者切换
+    $('.zizone .col-md-6').click(function(){
+        $(this).addClass('actives').siblings().removeClass('actives')
+    })
+    $('.zone_left').click(function(){
+        $('.wiseman_list').hide();
+        $('.tab_zizone').show();
+    })
+    $('.zone_right').click(function(){
+        $('.wiseman_list').show();
+        $('.tab_zizone').hide();
+    })
+    //地方政策城市切换
+    //初始北京第一页新闻
+    $('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon');
+    var thePageNos= 1;
+    var pageNos = 1;
+    var thePageLengths=1;
+    var pageSizes = 4;
+    var provinces=1;
+    function datt(provinces,pageNos){
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:1,
-            	hot: 1,
-            	pageNo:1,
-            	type:5,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces || 1,
+                hot: 1,
+                pageNo:pageNos || 1,
+                type:5,
+                pageSize:pageSizes,
             },
-             success: function (result) {  	            	
-	            	var totlepage=Math.ceil(result.data.totalCount/4);
-                	var policy_li ='';               	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){                		
-                	   $('.policy ol').hide();
-                	   $('.policy ul').html('<li>敬请期待…</li>') ;
-                	}else{ 
-                	 $('.policy ol').show() ;
-                	 $('.policy ul').html(policy_li)  
-                	}
-	            }.bind(this)
-	})
-	//点击省份时刷新页面新闻	
-	$('.place_city ul li').click(function(){		     
-			$(this).addClass('thon').siblings().removeClass('thon')
-			$('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
-			$('.more_city .inp').removeClass('thon');
-			$('.more_city .inp').text('更多省份 +')
-			//新闻刷新		
-			var t_val=$(this).prop('value');			
-			$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:t_val,
-	            	hot: 1,
-	            	pageNo:1,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	             success: function (result) {  	            	
-	            	var totlepage=Math.ceil(result.data.totalCount/4);
-                	var policy_li ='';               	                	                                         
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介	
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){                	
-                	  $('.policy ol').hide();
-                	  $('.policy ul').html('<li>敬请期待…</li>')
-                	}else{ 
-                	  $('.policy ol').show();
-                	  $('.policy ul').html(policy_li);  
-                	 }
-	            }.bind(this)
-      		})			
-	});
-	//智政新闻小点切换宽度设置及点击刷新	
-	var cirle = $('.policy ol li').length;
-	var ind_circle=0;
-	$('.policy ol li').click(function(){		
-		$(this).addClass('active_of').siblings().removeClass('active_of');	
-		var place_on = $('.place_city ul li.thon').prop('value')				
-		var h_ind=$(this).index()+1;
-		if(place_on==undefined){
-			place_on=$('.inp').attr('value');
-		}		
-		$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:place_on,
-	            	hot: 1,
-	            	pageNo:h_ind,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	            success: function (result) {  	            	
-                	var policy_li ='';  
-                	var totle=result.data.totalCount;                	                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介		                		                	
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	
-                	  $('.policy ul').html(policy_li)                	                 	            	               
-	            }.bind(this)
-      	})		
-	})	
-	
-	//搜索城市下拉
-	var addlength=provinceList.length;
-	var soption='';
-	var sol='';
-	for(var i=5;i<addlength;i++){		
-		sol+="<p value='"+provinceList[i].id+"'>"+provinceList[i].name+"</p>";			
-	};
-	for(var i=0;i<addlength;i++){		
-		soption+="<option value='"+provinceList[i].id+"'>"+provinceList[i].name+"</option>";			
-	};
-	$('.list_city').html(sol);
-	$('#selt').html(soption);	
-	//智政城市下拉切换
-	$('.list_city').hide();
-	$('.more_city .inp').click(function(){
-		$('.list_city').slideToggle(500)		
-	})
-	$('.more_city').mouseleave(function(){
-		$('.list_city').hide();
-	})
-	//选择城市及新闻页面刷新
-	$('.list_city p').click(function(){
-		var ptxt=$(this).text();
-		var pval=$(this).attr('value')
-		$('.more_city .inp').text(ptxt);
-		$('.more_city .inp').attr('value',pval);
-		$('.list_city').hide();
-		$('.more_city .inp').addClass('thon');
-		$('.place_city ul li').removeClass('thon');
-		$('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');		
-		var p_val=$(this).attr('value');			
-		$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:p_val,
-	            	hot: 1,
-	            	pageNo:1,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	            success: function (result) {  	            		            	
-                	var policy_li ='';                 	               	                	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介	
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){               		
-                	  $('.policy ol').hide(); 
-                	  $('.policy ul').html('<li>敬请期待…</li>')
-                	}else{  
-                	  $('.policy ol').show();
-                	  $('.policy ul').html(policy_li)                 	  
-                	}       
-	            }.bind(this)	            
-      	});		
-	});	
-	
-	//中央政策点击刷新
-	//初始化内容	
-	$.ajax({
+            success: function (result) {
+                var totlepage=Math.ceil(result.data.totalCount/4);
+                var policy_li ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var time = result.data.list[i].createTimeFormattedDate; //日期
+                    var day=time.substr(8,2);//号
+                    var month=time.substr(0,7) //年、月
+                    var summary = result.data.list[i].summary;//简介
+                    var totle=result.data.totalCount;
+                    var pages=Math.ceil(totle/4);
+                    var sol='';
+                    policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                if(result.data.list.length===0){
+                    $('.policy ol').hide();
+                    $('.policy ul').html('<li>敬请期待…</li>') ;
+                }else{
+                    $('.policy ol').show() ;
+                    $('.policy ul').html(policy_li)
+                }
+            }.bind(this)
+        })
+    }
+    datt(1,1);
+    //点击省份时刷新页面新闻
+    $('.place_city ul li').click(function(){
+        $(this).addClass('thon').siblings().removeClass('thon')
+        $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
+        $('.more_city .inp').removeClass('thon');
+        $('.more_city .inp').text('更多省份 +')
+        //新闻刷新
+        var t_val=$(this).prop('value');
+        provinces=t_val;
+        datt(provinces,1);
+    });
+    //智政新闻小点切换宽度设置及点击刷新
+    var cirle = $('.policy ol li').length;
+    var ind_circle=0;
+    $('.policy ol li').click(function(){
+        $(this).addClass('active_of').siblings().removeClass('active_of');
+        var place_on = $('.place_city ul li.thon').prop('value')
+        var h_ind=$(this).index()+1;
+        if(place_on==undefined){
+            place_on=$('.inp').attr('value');
+        }
+        provinces=place_on;
+        pageNos=h_ind;
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:1,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces || 1,
+                hot: 1,
+                pageNo:pageNos || 1,
+                type:5,
+                pageSize:pageSizes,
             },
-            success: function (result) {             		
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt=''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	}                 	            		
-                	$('.main_zizone ul').html(policy_img)                  	
-	            }.bind(this)
-	})
-	//点击时left
-	var t=2;	
-	$('.zizone_left').click(function(){	
-		t--;
-		if(t<=1){
-			t=1			
-		}		
-		$.ajax({
+            success: function (result) {
+                var totlepage=Math.ceil(result.data.totalCount/4);
+                var policy_li ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var time = result.data.list[i].createTimeFormattedDate; //日期
+                    var day=time.substr(8,2);//号
+                    var month=time.substr(0,7) //年、月
+                    var summary = result.data.list[i].summary;//简介
+                    var totle=result.data.totalCount;
+                    var pages=Math.ceil(totle/4);
+                    var sol='';
+                    policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                $('.policy ol').show();
+                $('.policy ul').html(policy_li);
+            }.bind(this)
+        })
+    })
+    //中央政策跳转
+    $('.main_zizone ul').on('click', 'li', function () {
+        var theId = $(this).attr('value');
+        window.open(globalConfig.context + '/portal/detail/achievementDetail.html?id=' + theId );
+    })
+    //地方政策跳转
+    $('.policy_details a').on('click', 'li', function () {
+        var theId = $(this).parent('li').attr('value');
+        window.open(globalConfig.context + '/portal/detail/achievementDetail.html?id=' + theId );
+    })
+
+    //搜索城市下拉
+    var addlength=provinceList.length;
+    var soption='';
+    var sol='';
+    for(var i=5;i<addlength;i++){
+        sol+="<p value='"+provinceList[i].id+"'>"+provinceList[i].name+"</p>";
+    };
+    for(var i=0;i<addlength;i++){
+        soption+="<option value='"+provinceList[i].id+"'>"+provinceList[i].name+"</option>";
+    };
+    $('.list_city').html(sol);
+    $('#selt').html(soption);
+    //智政城市下拉切换
+    $('.list_city').hide();
+    $('.more_city .inp').click(function(){
+        $('.list_city').slideToggle(500)
+    })
+    $('.more_city').mouseleave(function(){
+        $('.list_city').hide();
+    })
+    //选择城市及新闻页面刷新
+    $('.list_city p').click(function(){
+        var ptxt=$(this).text();
+        var pval=$(this).attr('value');
+        $('.more_city .inp').text(ptxt);
+        $('.more_city .inp').attr('value',pval);
+        $('.list_city').hide();
+        $('.more_city .inp').addClass('thon');
+        $('.place_city ul li').removeClass('thon');
+        $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
+        var p_val=$(this).attr('value');
+        provinces=p_val	;
+        datt(provinces,1);
+    });
+
+    //中央政策点击刷新
+    //初始化内容
+    function mids(provinces,pageNos){
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:t,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces ||1,
+                hot: 1,
+                pageNo:pageNos||1,
+                type:4,
+                pageSize:pageSizes,
             },
-            success: function (result) {               
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	}                 	
-                	if(result.data.list.length===0){                		
-                		return false
-                	}{                   		                		
-                		$('.main_zizone ul').html(policy_img)
-                	}                  	
-	            }.bind(this)
-		})
-	})
-	//点击时right	
-	$('.zizone_right').click(function(){					
-		$.ajax({
+            success: function (result) {
+                thePageLengths = result.data.totalCount ? Math.ceil(result.data.totalCount / pageSizes) : 1;
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt=''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                $('.main_zizone ul').html(policy_img)
+            }.bind(this)
+        })
+    }
+    mids(1,1)
+    //点击时left
+    var t=1;
+    $('.zizone_left').click(function(){
+        t--;
+        if(t<=1){
+            t=1
+        }
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:t,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:null,
+                hot: 1,
+                pageNo:t,
+                type:4,
+                pageSize:4,
             },
-            success: function (result) {  
-            		var totle=Math.ceil(result.data.totalCount/4);            		
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	} 
-                	if(result.data.list.length===0){                		
-                		return false
-                	}{   
-                		t++;   
-                		if(t>totle){
-                			t=totle
-                		}
-                		$('.main_zizone ul').html(policy_img)
-                	}
-	        }.bind(this)	        
-		})		
-	})	
-	//智者数据交互
-var theKeyword, theFieldA, theFieldB, theFieldC;
-var thePageNo = 1,
-    thePageLength = 1,
-    pageSize = 12,
-    theType = 0;
+            success: function (result) {
+                var totle=Math.ceil(result.data.totalCount/4);
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                if(result.data.list.length===0){
+                    return false
+                }{
+
+                    $('.main_zizone ul').html(policy_img)
+                }
+            }.bind(this)
+        })
+    })
+    //点击时right
+    var totle;
+    $('.zizone_right').click(function(){
+        t++;
+        if(t>totle){
 
+            t=totle
 
-function loadDate(pageNo) {
-    theFieldA = theFieldA != 999 ? theFieldA : undefined;
-    theFieldB = theFieldB != 999 ? theFieldB : undefined;
-    theFieldC = theFieldC != 999 ? theFieldC : undefined;
-    $.ajax({
-        method: "get",
-        dataType: "json",
-        url: globalConfig.context + "/portal/search/subscriberList",
-        data: {
-            pageNo: pageNo || 1,
-            pageSize: pageSize,
-            type: theType,
-            name: theKeyword,
-            field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
-        },
-        success: function (data) {
-            var theArr = [];
-            if (data.data && data.data.list) {
-                for (let i = 0; i < data.data.list.length; i++) {
-                    let thisdata = data.data.list[i];
-                    let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
-                    theArr.push([                        
-                        '<li>',
-			 			'<img src="' + globalConfig.avatarHost + '/upload' + thisdata.personPortraitUrl + '" alt="头像" />',
-			 			'<div class="list_text">',
-			 			'<p class="bulr">'+ thisdata.username + '</p>',
-			 			'<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
-			 			'<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
-			 			'</div>',
-			 			'<div class="shadow_text">',
-			 			'<p class="bulr">'+ thisdata.username + '</p>',
-			 			'<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
-			 			'<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
-			 			'<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
-			 			'</div>',
- 						'</li>' ,                   
-                    ].join(''));
+        }
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:null,
+                hot: 1,
+                pageNo:t,
+                type:4,
+                pageSize:4,
+            },
+            success: function (result) {
+                 totle=Math.ceil(result.data.totalCount/4);
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+
+                }
+
+                $('.main_zizone ul').html(policy_img)
+
+            }.bind(this)
+        })
+    })
+    //智者数据交互
+    var theKeyword, theFieldA, theFieldB, theFieldC;
+    var thePageNo = 1,
+        thePageLength = 1,
+        pageSize = 12,
+        theType = 0;
+
+
+    function loadDate(pageNo) {
+        theFieldA = theFieldA != 999 ? theFieldA : undefined;
+        theFieldB = theFieldB != 999 ? theFieldB : undefined;
+        theFieldC = theFieldC != 999 ? theFieldC : undefined;
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            url: globalConfig.context + "/portal/search/subscriberList",
+            data: {
+                pageNo: pageNo || 1,
+                pageSize: pageSize,
+                type: theType,
+                name: theKeyword,
+                field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
+            },
+            success: function (data) {
+                var theArr = [];
+                if (data.data && data.data.list) {
+                    for (let i = 0; i < data.data.list.length; i++) {
+                        let thisdata = data.data.list[i];
+                        let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
+                        var  imgUrl=thisdata.personPortraitUrl!==null?thisdata.personPortraitUrl:"/img/timg.gif";
+                        theArr.push([
+                            '<li value="'+thisdata.identityId+'">',
+                            '<img src="' + globalConfig.avatarHost + '/upload' + thisdata.personPortraitUrl + '"  />',
+                            '<div class="list_text">',
+                            '<p class="bulr">'+ thisdata.username + '</p>',
+                            '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
+                            '<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
+                            '</div>',
+                            '<div class="shadow_text">',
+                            '<p class="bulr">'+ thisdata.username + '</p>',
+                            '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
+                            '<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
+                            '<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
+                            '</div>',
+                            '</li>' ,
+                        ].join(''));
+                    };
+                } else {
+                    return;
                 };
-            } else {               
-                return;
-            };
-            $('#subscriberList').empty();
-            $('#subscriberList').append(theArr.join(''));
+                $('#subscriberList').empty();
+                $('#subscriberList').append(theArr.join(''));
 
-            $('.totalCount').html("共" + data.data.totalCount + "条数据");
-            thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
-            var pageArr = [],
-                firstNo = 1,
-                endNo = 5;
-            if (thePageNo > 3) {
-                firstNo = thePageNo - 2;
-                endNo = Math.min((Number(thePageNo) + 2), thePageLength);
-            } else {
-                endNo = Math.min(thePageLength, 5);
-            };
-            for (let i = firstNo; i <= endNo; i++) {
-                if (i == thePageNo) {
-                    pageArr.push(
-                        '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
-                    );
+                $('.totalCount').html("共" + data.data.totalCount + "条数据");
+                thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
+                var pageArr = [],
+                    firstNo = 1,
+                    endNo = 5;
+                if (thePageNo > 3) {
+                    firstNo = thePageNo - 2;
+                    endNo = Math.min((Number(thePageNo) + 2), thePageLength);
                 } else {
-                    pageArr.push(
-                        '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
-                    );
-                }
-            };
-            $('.pageNumber').remove();
-            $('.pagePre').after(pageArr.join(''));
-        },
-    });
-}
+                    endNo = Math.min(thePageLength, 5);
+                };
+                for (let i = firstNo; i <= endNo; i++) {
+                    if (i == thePageNo) {
+                        pageArr.push(
+                            '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                        );
+                    } else {
+                        pageArr.push(
+                            '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                        );
+                    }
+                };
+                $('.pageNumber').remove();
+                $('.pagePre').after(pageArr.join(''));
+            },
+        });
+    }
 
 
     if (window.location.search) {
@@ -501,9 +469,9 @@ function loadDate(pageNo) {
         loadDate();
     });
     $('.searchs button').click(function (e) {
-    	e.preventDefault();    	
+        e.preventDefault();
         theKeyword = $('#search_on input').val();
-        
+
         loadDate();
     });
     $('.pagination').on('click', 'li', function (e) {

+ 125 - 25
template/Technologytrading.html

@@ -8,7 +8,7 @@
     <meta name="Description" content=""/>
 	<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1,user-scalable=no">
 	<meta http-equiv="x-ua-compatible" content="ie=edge">
-    <title>科技服务</title>
+    <title>科技交易</title>
 
    <!--<link rel="stylesheet" href="../src/css/bootstrap.css" />
     <link rel="stylesheet" href="../src/css/public.css" />
@@ -56,24 +56,109 @@
  	<div id="technology">
 		<div class="technolo">
 			<div class="technolo_left">
-				<h3>技术交易政策</h3>
+				<h3>技术交易成功案例</h3>
 				<div>
 					<div class="clear_line"></div>
 					<div class="technolo_text">
 						<div>
-							<h5>高新是什么?</h5>
-							<p>高新是高科技和新技术的结合...</p>
-							<a href="#">了解更多</a>
+							<h5>风机过滤装置的进风过滤网板</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-7-4</a>
 						</div>
 						<div>
-							<h5>高新是什么?</h5>
-							<p>高新是高科技和新技术的结合...</p>
-							<a href="#">了解更多</a>
+							<h5>免全站仪的塔基断面图测量方法和设备 </h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-21</a>
 						</div>
 						<div>
-							<h5>高新是什么?</h5>
-							<p>高新是高科技和新技术的结合...</p>
-							<a href="#">了解更多</a>
+							<h5>冷焰火喷发设备的电子控制装置</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-2-24</a>
+						</div>
+						<div>
+							<h5>低碳高硅硅锰合金的生产方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-6</a>
+						</div>
+						<div>
+							<h5>低钛高碳铬铁生产工艺</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-6</a>
+						</div>
+						<div>
+							<h5>防卡篦条溜筛</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-10</a>
+						</div>
+						<div>
+							<h5>无破碎提升机料斗</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-28</a>
+						</div>
+						<div>
+							<h5>无破碎提升机</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-28</a>
+						</div>
+						<div>
+							<h5>垄沟种全覆膜播种机</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-3-24</a>
+						</div>
+						<div>
+							<h5>对测风数据进行补缺修正的方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-4-1</a>
+						</div>
+						<div>
+							<h5>电信级节能保护系统及其实现方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-4-1</a>
+						</div>
+						<div>
+							<h5>高纯高硬度聚晶立方氮化硼块体材料及其制备方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-4-1</a>
+						</div>
+						<div>
+							<h5>混凝土屋面与金属板屋面的可变形衔接方法及可变形衔接结构</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-4-12</a>
+						</div>
+						<div>
+							<h5>混凝土栈桥楼面的可变形衔接方法及衔接结构</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-4-12</a>
+						</div>
+						<div>
+							<h5>用于检测喹啉不溶物的砂芯坩埚的处理方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-5-7</a>
+						</div>
+						<div>
+							<h5>坐标测量方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-5-5</a>
+						</div>
+						<div>
+							<h5>无毒环保型防腐防水抗渗耐磨的补强材料及其制备方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-7-31</a>
+						</div>
+						<div>
+							<h5>提高解吸电解金泥过滤速度的方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-8-8</a>
+						</div>
+						<div>
+							<h5>立式板材激光刻纹机</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-5-6</a>
+						</div>
+						<div>
+							<h5>钨钛合金的深冷处理方法</h5>
+							<p>发明</p>
+							<a href="javascript:;">2017-7-1</a>
 						</div>
 					</div>
 					<img src="../img/technology_text.png" alt=""/>
@@ -81,7 +166,7 @@
 				</div>
 			</div>
 			<div class="technolo_center">
-				<h3>技术交易政策</h3>
+				<h3>技术交易成功案例</h3>
 				<div>
 					<div class="clear_line"></div>
 					<div class="technolo_text">
@@ -165,9 +250,18 @@
 			<div class="industry_right">
 				<div class="title_details">
 					<ol>
-						<li class="act" value="0" id="patent">专利交易</li>
-						<li value="1" id="attorn">精品技术转让</li>
-						<li value="2" id="nedd">精品创业需求</li>
+						<li class="act" value="0" id="patent">
+							专利交易
+							<a href="#">MORE+</a>
+						</li>
+						<li value="1" id="attorn">
+							精品技术转让
+							<a href="#">MORE+</a>
+						</li>
+						<li value="2" id="nedd">
+							精品创业需求
+							<a href="#">MORE+</a>
+						</li>
 					</ol>
 				</div>
 				<div class="main_details checked">
@@ -188,16 +282,22 @@
 					</ul>
 				</div>
 				<div class="pagination_box">
-					<span aria-hidden="true" class="page_right">&gt;&gt;</span>
-					<div>
-						<div class="paging_box">
-							<!--<span value="1" class="action_span">1</span>-->
-							<!--<span value="2" >2</span>-->
-							<!--<span value="3" >3</span>-->
-							<!--<span value="4" >4</span>-->
-						</div>
-					</div>
-					<span aria-hidden="false" class="page_left">&lt;&lt;</span>
+					<nav aria-label="Page navigation" class="clearfix">
+						<ul class="pagination">
+							<li class="pagePre">
+								<a href="#" aria-label="Previous">
+									<span aria-hidden="true" value="1">首页</span>
+								</a>
+							</li>
+							<li class="pageNumber active"><a href="#" value="1">1</a></li>
+							<li class="pageNext">
+								<a href="#" aria-label="Next">
+									<span aria-hidden="true">末页</span>
+								</a>
+							</li>
+						</ul>
+						<span class="totalCount">共 0 页 0 条数据</span>
+					</nav>
 				</div>
 			</div>
 		</div>