luyanan преди 7 години
родител
ревизия
28ecbe95ef
променени са 14 файла, в които са добавени 680 реда и са изтрити 63 реда
  1. 2 2
      cmpInforShow.html
  2. 1 0
      css/common.css
  3. 79 22
      css/genindex.css
  4. 17 0
      css/leaveWord.css
  5. 3 1
      css/share.css
  6. 12 2
      e/da.html
  7. 45 34
      e/wen.html
  8. BIN
      images/qa-icon-cai.png
  9. BIN
      images/qa-icon-zan.png
  10. 10 0
      js/cmpInforShow.js
  11. 4 1
      js/common.js
  12. 222 1
      js/discover.js
  13. 97 0
      js/qa-show.js
  14. 188 0
      qa-show.html

+ 2 - 2
cmpInforShow.html

@ -57,8 +57,8 @@
57 57
				<div class="navconBox">
58 58
					<ul class="mainNavUl clearfix">
59 59
						<li class="liNow">主页</li>
60
						<li>资源</li>
61
						<li>文章</li>
60
						<li>资源 <span class="counts" id="resCount"></span></li>
61
						<li>文章 <span class="counts" id="artCount"></span></li>
62 62
						<li>资料</li>
63 63
						<li class="rightbtn">更多<em class="foldtr"></em></li>
64 64
					</ul>

+ 1 - 0
css/common.css

@ -45,6 +45,7 @@ input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color: #99
45 45
.displayBlock{display:block;}
46 46
.ellipsisSty {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
47 47
.ellipsisSty-2 { display: -webkit-box;max-height:42px;white-space: normal !important;text-overflow: ellipsis;word-wrap: break-word; -webkit-line-clamp:2;-webkit-box-orient: vertical;overflow: hidden;}
48
.ellipsisSty-3 { display: -webkit-box;max-height:68px;white-space: normal !important;text-overflow: ellipsis;word-wrap: break-word; -webkit-line-clamp:3;-webkit-box-orient: vertical;overflow: hidden;}
48 49
.ellipsisSty-5 { display: -webkit-box;max-height:120px;white-space: normal !important;text-overflow: ellipsis;word-wrap: break-word; -webkit-line-clamp:5;-webkit-box-orient: vertical;overflow: hidden;}
49 50
.alignCenter{text-align: center;}
50 51
/*默认/主题颜色*/

+ 79 - 22
css/genindex.css

@ -142,6 +142,7 @@ ul.loginWaySort li.liactive{border-bottom: 2px solid #ff9900;}
142 142
/*--------------发现--------------*/
143 143
.contentCon{padding-top:80px;}
144 144
.leftconBox{width:820px;padding-bottom:20px;margin-bottom:20px;background: #FFFFFF;}
145
.leftconBoxbg{background:none;}
145 146
/*顶部轮播*/
146 147
.slide-box{/*background:#f4f6f8;*/margin-bottom: 20px;width:820px;height: 300px;}
147 148
.slide-list {position: relative;width:760px;height: 300px;overflow: hidden;
@ -396,9 +397,9 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
396 397
.showMain p{margin-bottom:16px;text-align:justify}
397 398
.showMain .showStatus{margin:40px 0 20px;text-align: center;color:#ff9900}
398 399
.showStatus .btnModel{width: 140px;margin: auto;}
399
ul.tagList{margin:20px 0 -10px;overflow: hidden;}
400
ul.tagList{margin:16px 0 2px;overflow: hidden;}
400 401
ul.tagList>li{float: left;margin-right:10px;margin-bottom:10px;padding:0 12px;color: #999;border: 1px solid #E5E5E5;border-radius: 20px;cursor: pointer;}
401
ul.tagList>li .h2Font{color:#666}
402
ul.tagList>li .h2Font{color:#666;font-size:14px;line-height:30px;}
402 403
.otherShow{}
403 404
.otherShow.otherShowFirst{padding-bottom:12px;border-bottom:2px dashed #E5E5E5;}
404 405
.otherShow .aboutTit{font-size:18px;color:#666;}
@ -438,7 +439,6 @@ ul.tagList>li .h2Font{color:#666}
438 439
.operateicon.operateicon2.icon-sina{width:20px;height:15px;background-image:url(../images/g_all_icon_xinlang_nor_2.png);}
439 440
/*悬浮效果*/
440 441
.operateicon.icon-message:hover{background-image:url(../images/g_article_button_liuyan_hig.png);}
441
/*.operateicon.icon-collect:hover{background-image:url(../images/g_all_icon_shoucang_hig.png);}*/
442 442
.operateicon.icon-collected{background-image:url(../images/g_all_icon_shoucang_hig.png);}
443 443
.operateicon.icon-wechat:hover{background-image:url(../images/g_all_icon_weixin_hig.png);}
444 444
.operateicon.icon-sina:hover{background-image:url(../images/g_all_icon_xinlang_hig.png);}
@ -451,24 +451,23 @@ ul.tagList>li .h2Font{color:#666}
451 451
.shareCode .shareWord p{font-size: 14px;line-height: 28px;}
452 452
.shareCode img{width:120px;height:120px;border: 4px solid #fff;}
453 453
454
.ifLogin{margin-top:30px;}
455
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
456
.ifLogin .ifLoginUn>ul>li{float: right;padding:0 6px;}
457
.ifLogin .ifLoginUn>ul>li.loginGo{cursor:pointer;}
458
.ifLogin .ifLoginUn a{color:#666;}
454
/*.ifLogin{margin-top:30px;}
455
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
456
.ifLogin .ifLoginUn>ul>li{float: right;padding:0 6px;}
457
.ifLogin .ifLoginUn>ul>li.loginGo{cursor:pointer;}
458
.ifLogin .ifLoginUn a{color:#666;}
459 459
.ifLogin .ifLoginOn .btnModel{margin:12px 0;width: 80px;border-radius:0;cursor: pointer;}
460
461
.commentsArea{margin-top:30px;}
462
.commentsArea .btnCancel{height:auto;border-radius:0;color: #ff9900;}
463
/*.commentsArea ul.commentList{margin-top:-20px;}*/
464
.commentsArea.form-item ul.commentList .madiaHead.useHeadMsg{top:10px;margin-top:0;}
465
.commentsArea ul.commentList>li{padding:10px 0 20px;}
466
.commentsArea ul.commentList>li .h2Font{font-size: 16px;color: #666;line-height: 26px;}
467
.commentsArea ul.commentList>li .commenttime{font-size: 14px;color: #999;margin-left:18px;}
468
.commentsArea ul.commentList>li .operateSpan{margin:10px 0 0;color:#9d9ea8;font-size:14px;cursor: pointer;}
469
.commentsArea ul.commentList>li .operateSpan span{display: none;}
470
.commentsArea ul.commentList>li .operateSpan .callBack{position:relative;padding-left:20px;margin-right:40px;}
471
.commentsArea ul.commentList>li .operateSpan .callBack:before{position:absolute;content:url(../images/g_article_button_huifu_nor.png);top:50%;left:0;margin-top:-8px;}
460

461
.commentsArea{margin-top:30px;}
462
.commentsArea .btnCancel{height:auto;border-radius:0;color: #ff9900;}
463
.commentsArea.form-item ul.commentList .madiaHead.useHeadMsg{top:10px;margin-top:0;}
464
.commentsArea ul.commentList>li{padding:10px 0 20px;}
465
.commentsArea ul.commentList>li .h2Font{font-size: 16px;color: #666;line-height: 26px;}
466
.commentsArea ul.commentList>li .commenttime{font-size: 14px;color: #999;margin-left:18px;}
467
.commentsArea ul.commentList>li .operateSpan{margin:10px 0 0;color:#9d9ea8;font-size:14px;cursor: pointer;}
468
.commentsArea ul.commentList>li .operateSpan span{display: none;}
469
.commentsArea ul.commentList>li .operateSpan .callBack{position:relative;padding-left:20px;margin-right:40px;}
470
.commentsArea ul.commentList>li .operateSpan .callBack:before{position:absolute;content:url(../images/g_article_button_huifu_nor.png);top:50%;left:0;margin-top:-8px;}*/*/
472 471
473 472
.rightconBox .conItem.conItemG .madiaHead{display:block;width: 100px; height: 100px;border:1px solid #E5E5E5;margin:0 auto 10px;background-position:center;background-size:cover;}
474 473
.rightconBox .conItem.conItemG .madiaHead.useHead{background-image:url(../images/default-photo.jpg);border-radius: 50%;}
@ -477,7 +476,7 @@ ul.tagList>li .h2Font{color:#666}
477 476
.rightconBox .conItem.conItemG .h1Font{font-size:16px;}
478 477
.rightconBox .conItem.conItemG .h2Font{font-size:14px;color:#666;line-height:26px;}
479 478
.rightconBox .conItem.conItemG .h3Font>a{color:#333}
480
.goSpan span{background: #ff9900;display:inline-block;text-align: center;width:84px;cursor:pointer;color:#fff;font-size:16px;margin:20px 4px 0;border-radius:4px;padding:7px 16px;}
479
.goSpan span{background: #ff9900;display:inline-block;text-align: center;width:84px;cursor:pointer;color:#fff;font-size:15px;margin:20px 4px 0;border-radius:4px;padding:7px 16px;}
481 480
.goSpan .attenSpan{position: relative;padding-left:34px;background-image:url(../images/g_article_icon_jia_nor.png);background-size:12px 12px;background-position: 18px center;background-repeat: no-repeat;}
482 481
.goSpan .attenedSpan{background:#ccc;padding-left:16px;}
483 482
.goSpan .consultSpan{}
@ -697,7 +696,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
697 696
.headconBox .head-center .h2Font{margin-bottom:0;}
698 697
.headconBox .head-center .proEdit{font-size: 14px;padding-left:24px;right: 34px;top:40px;}
699 698
.headconBox .goSpan{position: absolute;right: 30px;top:50%;margin-top:-35px;}
700
.operateBlock{}
699
.operateBlock{font-size: 14px;color:#999;}
701 700
.operateBlock>ul>li{float: left;font-size: 14px;color:#999;min-height: 24px;margin-right: 20px;}
702 701
.operateBlock>ul>li .operateicon{margin-left:10px;cursor: pointer;}
703 702
.operateBlock>ul>li>span{position: relative;top:-2px;font-size: 14px;}
@ -709,11 +708,14 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
709 708
.navconBox .rightbtn .foldtr:before{border-top-color:#666;}
710 709
.navconBox>ul{position: relative}
711 710
.navconBox>ul>li{position:relative;float: left;padding:20px 0;cursor:pointer;margin-right:60px;font-size: 16px;color: #999;}
711
.navconBox>ul>li:last-child{margin-right: 0;}
712
.navconBox>ul>li>.counts{font-size: 15px;}
712 713
.navconBox>ul>li.liNow:after{position: absolute;left: 0;bottom: 0;content:"";height:3px;background:#000;width: 100%;}
713 714
.navconBox>ul>li.liNow{color: #000;}
714 715
.navconBox .moreNav{display:none;border-top: 1px solid #E5E5E5;margin:0 -30px;padding:0 30px}
715 716
.navconBox .moreNav .moreNavUl{}
716 717
.navconBox .moreNav .moreNavUl>li{position: relative;float: left;padding: 20px 0;cursor: pointer;margin-right: 60px; font-size: 16px;color: #999;}
718
.navconBox .moreNav .moreNavUl>li:last-child{margin-right: 0;}
717 719
.navconBox .moreNav .moreNavUl>li.liNow{color: #000;}
718 720
.navconBox .moreNav .moreNavUl .rightbtn{width:110px;}
719 721
.navconBox .moreNav .table-drop{height:auto;top:50px;right:-8px;width:140px;}
@ -880,3 +882,58 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
880 882
.needList.form-item>ul>li:hover{background: #EEEEEE;}
881 883
.showli>li{font-size: 14px;color: #888;margin: 6px 0;width:25%;padding-right:16px;float:left;text-overflow:ellipsis;white-space: nowrap;overflow: hidden;}
882 884
.showliTop>li{font-size: 14px;color: #888;margin-bottom: 4px;float:left;padding-right:16px;}
885
886
/*问答 2017.12.26*/
887
.qa-owner{overflow: hidden;min-height:40px;margin: 6px 0 2px;}
888
.qa-owner .owner-head{position:absolute;top:50%;background-position: center;background-size: cover;}
889
.qa-owner .owner-head.useHead{width:32px;height:32px;margin-top:-16px;background-image: url(../images/default-photo.jpg);border-radius: 50%;}
890
.qa-owner .owner-info{padding-left:38px;}
891
.owner-name{float: left;font-size:16px;}
892
.owner-tit{font-size:14px;margin-left:10px;float: left;max-width:90%;color:#888888}
893
.qa-con{font-size:15px;line-height: 22px;color:#333;text-align: justify;}
894
.showspan{overflow: hidden;margin-top:10px;}
895
.showspan>span{padding-right:10px;font-size: 14px;color:#999;}
896
897
.list-main ul {display: block;padding: 0;list-style-type: none;font-size: 0;}
898
.listbg{background:#FFFFFF;padding:10px 20px;margin-bottom: 10px;}
899
.list_content{background: #fff;padding-top:6px;}
900
901
.item_detail .h1Font{font-weight:normal;font-size:24px;line-height:34px;color:#000;margin-bottom:10px;}
902
.item_detail .list_con{font-size: 15px;color: #333;line-height: 26px;margin: 6px 0;text-align:justify}
903
.item_info{margin:10px 0 6px;font-size:14px;color:#888888;}
904
.list_image{overflow: hidden;}
905
.list_image li{display: inline-block; overflow: hidden;float:left; width:26%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
906
.list_image li>.imgspan{display: block;width: 97%;height:120px;margin-bottom:10px;background-size: cover;background-position: center;}
907
908
.list_hander{margin:10px 0;position: relative;}
909
.list_hander .goSpan span{margin:0 6px 0 0;width: 102px;}
910
.list_hander .operateBlock{margin:10px 0 0 10px;}
911
.list_hander .tip-offs{cursor: pointer;}
912
913
.list-hold-count{line-height:36px;overflow: hidden;}
914
.list-hold-count>span{float: left;}
915
.list-hold-count>span>em{font-style: normal;}
916
.list-hold-count>ul{float: right;}
917
.list-hold-count>ul>li{float:left;display: inline-block;cursor: pointer;}
918
.list-hold-count>ul>li>span{position: relative;top:5px;display:inline-block;font-size:14px;line-height:24px;padding:0 10px;border:1px solid #e5e5e5}
919
.list-hold-count>ul>li.active>span{background: #ff9900;color:#fff;border-color: #ff9900}
920
921
.list-hold{}
922
.list-hold-list>ul>li{padding:10px 20px;background: #FFFFFF;}
923
.list-hold .qa-owner{min-height: 50px;margin:6px 0 10px;position: relative;}
924
.list-hold .qa-owner .goSpan{position: absolute;right: 0; top:50%;margin-top:-17px;}
925
.list-hold .qa-owner .goSpan>span{margin: 0px;}
926
.list-hold .qa-owner .owner-head.useHead{width:50px;height:50px;margin-top:-25px}
927
.list-hold .qa-owner .owner-info{padding-left:60px;width: 100%;padding-right:100px;}
928
.list-hold .owner-name{float: none;}
929
.list-hold .owner-tit{display:block;float:none;color:#888888;max-width:100%;margin-left: 0;line-height: 22px;}
930
.list-hold .qa-con{line-height: 24px;}
931
932
.holdSpan>div{display:inline-block;font-size: 13px;color:#333;padding:6px 12px;margin-right:6px;background:#ffe9c8;border-radius: 4px;cursor:pointer;}
933
.hold-icon{position:relative;top:3px;display:inline-block;width:16px;height:16px;background-size: 100% auto;background-repeat: no-repeat;}
934
.icon-zan{background-image:url(../images/qa-icon-zan.png);background-position:0 -16px;}
935
.icon-cai{background-image:url(../images/qa-icon-cai.png);background-position:0 -16px;}
936
.holdSpan .zan>span{margin-left: 6px;}
937
.holdSpan>div.active{color: #FFFFFF;background:#ff9900;}
938
.holdSpan>div.active .icon-zan{background-image:url(../images/qa-icon-zan.png);background-position:0 0;}
939
.holdSpan>div.active .icon-cai{background-image:url(../images/qa-icon-cai.png);background-position:0 0;}

+ 17 - 0
css/leaveWord.css

@ -0,0 +1,17 @@
1
.ifLogin{margin-top:30px;}
2
.ifLogin .ifLoginUn{background: #fff7e7;border:1px solid #E5E5E5;line-height:18px;padding:25px;color:#7b4b2b;font-size:14px;}
3
.ifLogin .ifLoginUn>ul>li{float: right;padding:0 6px;}
4
.ifLogin .ifLoginUn>ul>li.loginGo{cursor:pointer;}
5
.ifLogin .ifLoginUn a{color:#666;}
6
.ifLogin .ifLoginOn .btnModel{margin:12px 0;width: 80px;border-radius:0;cursor: pointer;}
7
8
.commentsArea{margin-top:30px;}
9
.commentsArea .btnCancel{height:auto;border-radius:0;color: #ff9900;}
10
.commentsArea.form-item ul.commentList .madiaHead.useHeadMsg{top:10px;margin-top:0;}
11
.commentList>li{padding:10px 0 20px;}
12
.commentList>li .h2Font{font-size: 16px;color: #666;line-height: 26px;}
13
.commentList>li .commenttime{font-size: 14px;color: #999;margin-left:18px;}
14
.commentList>li .operateSpan{margin:10px 0 0;color:#9d9ea8;font-size:14px;cursor: pointer;}
15
.commentList>li .operateSpan span{display: none;}
16
.commentList>li .operateSpan .callBack{position:relative;padding-left:20px;margin-right:40px;}
17
.commentList>li .operateSpan .callBack:before{position:absolute;content:url(../images/g_article_button_huifu_nor.png);top:50%;left:0;margin-top:-8px;}

+ 3 - 1
css/share.css

@ -396,6 +396,7 @@ ul.mui-table-view>li:last-child:after{background: none;}
396 396
.advertsub:after{content:"广告";font-size:10px;color:#fff;background:rgba(0,0,0,0.3);position:absolute;padding:0 4px;right:0;bottom:0px;}
397 397
398 398
/*问答 2017.12.26*/
399
.con-kong{line-height: 60px;color: #aaa;font-size: 14px;text-align: center;padding:10% 0;}
399 400
.qa-count{position: relative;padding:6px 15px;background:#fff;}    
400 401
.qa-count>span{position:absolute;top:50%;display:inline-block;width:32px; height:32px;margin-top:-16px;background:url(../images/zan_qa_icon_hig@3x.png);background-size:cover}
401 402
.qa-count>p{padding-left:40px;margin: 0;line-height: 32px;font-size:15px;}
@ -442,10 +443,11 @@ ul.mui-table-view>li:last-child:after{background: none;}
442 443
.list-hold-count>ul>li>span{position: relative;top:5px;display:inline-block;font-size:14px;line-height:24px;padding:0 10px;border:1px solid #e5e5e5}
443 444
.list-hold-count>ul>li.active>span{background: #ff9900;color:#fff;border-color: #ff9900}
444 445
.list-hold .qa-owner{margin: 0;}
446
.list-hold .con-kong{background: #FFFFFF;}
445 447
.item_detail .h1Font{font-weight:normal;font-size:18px;line-height:24px;color:#000}
446 448
.item_detail .list_con{font-size: 15px;color: #333;line-height: 24px;margin: 6px 0;text-align:justify}
447 449
.list_image,.item-btn{overflow: hidden;}
448
.list_image li,.item-btn li{display: inline-block; overflow: hidden; width: 33.3%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
450
.list_image li,.item-btn li{display: inline-block; overflow: hidden;float:left; width: 33.3%; -webkit-box-sizing: border-box;box-sizing: border-box;position: relative;}
449 451
.list_image li>.imgspan{display: block;width: 98%;height:90px;background-size: cover;background-position: center;}
450 452
451 453
.item-btn{margin:6px -16px -15px -15px;border-top:1px solid #e5e5e5;}

+ 12 - 2
e/da.html

@ -94,8 +94,8 @@
94 94
							document.getElementById("answerTime").innerHTML = commenTime($da.createTime);
95 95
							document.getElementById("snum").innerHTML = $da.agree;
96 96
							if($da.cnt) {
97
								document.getElementById("answerCnt").innerHTML = $da.cnt;
98
								descContent = $da.cnt.substr(0, 70);
97
								document.getElementById("answerCnt").innerHTML = ($da.cnt).replace(/\n/g,"<br />");
98
								descContent =document.getElementById("answerCnt").innerHTML.substr(0, 70);
99 99
							}
100 100
							proinfo($da.uid)
101 101
							questioninfo($da.qid)
@ -145,6 +145,16 @@
145 145
							document.getElementById("questTit").innerHTML = res.data.title;
146 146
							document.getElementById("questTit").setAttribute("data-id", qid);
147 147
							
148
							if(res.data.img) {
149
								var subs = new Array();
150
								if(res.data.img.indexOf(',')) {
151
									subs =res.data.img.split(',');
152
								} else {
153
									subs[0] = res.data.img;
154
								}
155
								imgUrl=baseUrl + "/data/question"+subs[0].replace(/.jpg/,"_s.jpg");
156
							}
157
							
148 158
							shareTitle = res.data.title;
149 159
							document.title = res.data.title;
150 160
						});

+ 45 - 34
e/wen.html

@ -71,8 +71,6 @@
71 71
					appid = '';
72 72
				var questionId = GetQueryString("id");
73 73
				var rows = 5,
74
					ifkong = 1,
75
					ifAl = 1, //是否是首次加载
76 74
					dataO = {
77 75
						time: "",
78 76
						id: "",
@ -104,8 +102,8 @@
104 102
							document.getElementById("replyCount").innerHTML = $da.replyCount;
105 103
106 104
							if($da.cnt) {
107
								document.getElementById("questionCnt").innerHTML = $da.cnt;
108
								descContent = $da.cnt.substr(0, 70);
105
								document.getElementById("questionCnt").innerHTML = ($da.cnt).replace(/\n/g,"<br />");
106
								descContent = document.getElementById("questionCnt").innerHTML.substr(0, 70);
109 107
							}
110 108
111 109
							shareTitle = $da.title;
@ -146,7 +144,7 @@
146 144
									document.getElementsByClassName("list_image")[0].style.display = "none";
147 145
								}
148 146
149
								imgUrl = "http://www.ekexiu.com/data/question" + subs[0];
147
								imgUrl = "http://www.ekexiu.com/data/question" + subs[0].replace(/.jpg/,"_s.jpg");
150 148
							}
151 149
152 150
						})
@ -175,13 +173,6 @@
175 173
							var aimId = "curAnswers",
176 174
								newStr = "暂无回答"
177 175
							var $info = res.data;
178
							if(!ifkong) {
179
								removeAfter(aimId)
180
							}
181
							if($info.length == 0 && ifkong && ifAl) {
182
								insertAfter(newStr, aimId);
183
								ifkong = 0
184
							}
185 176
							if($info.length > 0) {
186 177
								for(var i = 0; i < $info.length; i++) {
187 178
									var liStr = document.createElement("li");
@ -191,28 +182,34 @@
191 182
									answerModule($info[i], liStr);
192 183
								}
193 184
							}
185
							var liLen=document.getElementById(aimId).querySelectorAll("li").length;
186
			                removeAfter(aimId);
187
			                if($info.length == 0 && liLen == 0 ){
188
			                    insertAfter(newStr,aimId);
189
			                }
194 190
						})
195 191
					},
196
					insertAfter = function(newStr, targetE) {
197
						var parent = document.getElementById(targetE).parentNode;
198
						var kong = document.createElement("div");
199
						kong.className = "con-kong";
200
						kong.innerHTML = newStr;
201
						if(parent.lastChild.className == "con-kong") {
202
							return
203
						} else {
204
							parent.insertBefore(kong, document.getElementById(targetE).nextSibling);
205
						}
206
207
					},
208
					removeAfter = function(targetE) {
209
						var parent = document.getElementById(targetE).parentNode;
210
						if(parent.lastChild.className == "con-kong") {
211
							parent.removeChild(parent.querySelector(".con-kong"));
212
						} else {
213
							return
214
						}
215
					},
192
					insertAfter = function (newStr, targetE) {
193
		                var parent = document.getElementById(targetE).parentNode;
194
		                var kong = document.createElement("div");
195
		                kong.className = "con-kong";
196
		                kong.innerHTML = newStr;
197
		                if (parent.firstChild.className == "con-kong") {
198
		                    return
199
		                } else {
200
		                    parent.insertBefore(kong,parent.firstChild);
201
		                }
202
		
203
		            },
204
		            removeAfter = function (targetE) {
205
		                var parent = document.getElementById(targetE).parentNode;
206
		                console.log(parent.firstChild.className);
207
		                if (parent.firstChild.className == "con-kong") {
208
		                    parent.removeChild(parent.firstChild);
209
		                } else {
210
		                    return
211
		                }
212
		            },
216 213
					answerModule = function(dataStr, liStr) {
217 214
						var hd = "",
218 215
							hl = "";
@ -223,7 +220,7 @@
223 220
						liStr.className = "mui-table-view-cell";
224 221
						liStr.innerHTML = '<div class="madiaInfo">' +
225 222
							'<div class="flexCenter qa-owner"></div>' +
226
							'<p class="qa-con mui-ellipsis-5">' + dataStr.cnt + '</p>' +
223
							'<p class="qa-con mui-ellipsis-5">' + (dataStr.cnt).replace(/\n/g,"<br />") + '</p>' +
227 224
							'<div class="showli mui-ellipsis">' +
228 225
							'<span>' + commenTime(dataStr.createTime) + '</span>' + hd + '<span class="leaveMsgCount"></span>' +
229 226
							'</div>' +
@ -281,7 +278,21 @@
281 278
							$str.find(".qa-owner").html(str);
282 279
						});
283 280
					}
284
281
				
282
				$.ajax({
283
					"url":'/ajax/question/pageViews',
284
					"type" :  "POST" ,
285
					"dataType" : "json",
286
					"data" :{"qid":questionId},
287
					"success" : function(data) {
288
						console.log(data);
289
						if (data.success){
290
						}
291
					},
292
					"error":function(){
293
						
294
					}
295
				});
285 296
				getConmain();
286 297
				answerList();
287 298

BIN
images/qa-icon-cai.png


BIN
images/qa-icon-zan.png


+ 10 - 0
js/cmpInforShow.js

@ -234,6 +234,11 @@ $(function() {
234 234
				//console.log(data);
235 235
				if(data.success) {
236 236
					$("#proResource").html("");
237
					if(data.data.total>0){
238
						$("#resCount").html(data.data.total)
239
					}else if(data.data.total>99){
240
						$("#resCount").html("99+")
241
					}
237 242
					if(data.data.data.length > 0) {
238 243
						$("#showResource").parents(".coninfobox").removeClass("displayNone");
239 244
						$("#item1user>.nodatabox").addClass("displayNone");
@ -295,6 +300,11 @@ $(function() {
295 300
			success: function(data) {
296 301
				if(data.success) {
297 302
					$("#proArticel").html("");
303
					if(data.data.total>0){
304
						$("#artCount").html(data.data.total)
305
					}else if(data.data.total>99){
306
						$("#artCount").html("99+")
307
					}
298 308
					if(data.data.data.length > 0) {
299 309
						$("#showArticle").parents(".coninfobox").removeClass("displayNone");
300 310
						$("#item1user>.nodatabox").addClass("displayNone");

+ 4 - 1
js/common.js

@ -776,9 +776,12 @@ var columnType = {
776 776
	"9":{
777 777
		fullName:"新闻",
778 778
		shortName:"新闻"
779
	},
780
	"10":{
781
		fullName:"问答",
782
		shortName:"问答"
779 783
	}
780 784
}
781
var sortColumn=["3","7","4","5","6","8"]//发现栏目显示顺序
782 785
//需求的费用预算
783 786
var demandCost = {
784 787
	'1': '1万元以内',

+ 222 - 1
js/discover.js

@ -5,6 +5,8 @@ $(function() {
5 5
	var userid = $.cookie("userid");
6 6
	var exculdeIds=[];
7 7
	var exculdeId2s=[];
8
	var rows="20"
9
	var sortColumn=["3","7","10","4","5","6","8"]//发现栏目显示顺序
8 10
	//轮播加载页面
9 11
	$.ajax({
10 12
		"url":"/data/inc/col_banner.html",
@ -210,6 +212,67 @@ $(function() {
210 212
			}
211 213
		});
212 214
	}
215
	function getWenda(){
216
		$.ajax({
217
			"url" :"/ajax/question/answer/byTime",
218
			"type" :  "GET" ,
219
			"dataType" : "json",
220
			"traditional": true,
221
			"data" :{
222
				"time":obj,
223
				"id":colNum,
224
				"rows":rows
225
			},
226
			"beforeSend": function() {
227
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
228
			},
229
			"success" : function(data) {
230
				if (data.success){
231
					var idItem=0
232
					if(colNum!=0){
233
						idItem=index;
234
					}
235
					$("#table-item-"+idItem).html("");
236
					var strNo='<div class="nodatabox"><div class="nodata"><div class="picbox picNull"></div>'
237
						strNo+='<div class="txtbox"><p class="noContip">该栏目暂时没有任何动态</p></div></div></div>'
238
					var dataStr=data.data.data;
239
					if(dataStr.length>0){
240
						for(var i=0;i<dataStr.length;i++) {
241
							if(colNum>0){
242
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-"+idItem));
243
								otherColum(dataStr[i],listLi);
244
							}else{
245
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-0"));
246
								lastestColum(dataStr[i],listLi);
247
							}
248
						}
249
						if(colNum==0 && isbind==true){
250
							importNews(exculdeIds);
251
						}
252
					}else{
253
						$("#table-item-"+idItem).html(strNo);
254
						$("#table-item-"+idItem).parent().find(".tcdPageCode").hide();
255
					}
256
					//分页
257
					if(isbind==true){
258
						$("#table-item-"+idItem).parent().find(".tcdPageCode").off("click").createPage({
259
							pageCount: Math.ceil(data.data.total / 10),
260
							current: data.data.pageNo,
261
							backFn: function(p) {
262
								$("#table-item-"+idItem).html("");
263
								listShow(obj,p,colNum,false,idItem);
264
								document.body.scrollTop = document.documentElement.scrollTop = 0;
265
							}
266
						});
267
					}
268
					$(".loading").remove();
269
				}
270
			},
271
			"error":function(){
272
				$.MsgBox.Alert('提示','链接服务器超时')
273
			}
274
		});
275
	}
213 276
	function lastestColum(dataStr,listLi,iftop){
214 277
		var madiaHead="../images/default-artical.jpg";
215 278
		if(dataStr.articleImg) {
@ -287,6 +350,102 @@ $(function() {
287 350
			cmpFun(dataStr.orgId, $strAdd);
288 351
		}
289 352
	}
353
	
354
	function lastestQa(dataStr,listLi){
355
    	var dataStr = data.data;
356
        var baImg = "../images/default-q&a.jpg";
357
        var subs = new Array();
358
        if(dataStr.img) {
359
            if(dataStr.img.indexOf(',')) {
360
                subs = dataStr.img.split(',');
361
            } else {
362
                subs[0] = dataStr.img;
363
            }
364
            baImg = baseUrl + "/data/question"+ subs[0];
365
        }
366
        var hd = "";
367
        if (dataStr.replyCount > 0) {
368
            hd = '<span>' + dataStr.replyCount + '回答</span>'
369
        }
370
        listLi.setAttribute("data-id", dataStr.id);
371
        listLi.setAttribute("data-type",3);
372
        listLi.className = "mui-table-view-cell";
373
        
374
        var strAdd = '<a target="_blank" href="/'+ pageUrl('a',dataStr) +'" class="flexCenter urlgo">'+
375
        	'<div class="flexCenter OflexCenter mui-clearfix">' +
376
            '<div class="madiaHead qa-Head" style="background-image:url(' + baImg + ')"></div>' +
377
            '<div class="madiaInfo OmadiaInfo">' +
378
            '<p class="mui-ellipsis-2 h1Font">' + dataStr.title + '</p>' +
379
            '<p class="show-item mui-ellipsis h2Font"><span class="column columnOther">问答</span>' + hd + '<span class="attendCount"></span></p>' +
380
            '</div></div></a>'
381

382
		var $str = $(strAdd);
383
		listLi.append($str);
384
		attendCount(dataStr.id, $str);
385
	}
386
	function otherQa(dataStr,listLi){
387
    	var dataStr = data.data;
388
        var hd = "";
389
        if (dataStr.replyCount > 0) {
390
            hd = '<span>' + dataStr.replyCount + '回答</span>'
391
        }
392
        listLi.setAttribute("data-id", dataStr.id);
393
        listLi.setAttribute("data-type",3);
394
        listLi.className = "mui-table-view-cell";
395
        var strAdd = '<a target="_blank" href="qa-question-show.html?id='+dataStr.id+'" class="flexCenter urlgo">'+
396
        			'<div class="madiaInfo" style="padding-left:0">'+
397
					'<p class="h1Font ellipsisSty qa-question"></p>' +
398
					'<div class="flexCenter qa-owner"></div>' +
399
					'<p class="qa-con ellipsisSty-3">' + (dataStr.cnt).replace(/\n/g,"<br />") + '</p>'+
400
					'<div class="showspan"><span>' + commenTime(dataStr.createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span></div>'+
401
					'</div></a>'
402
		var $str = $(strAdd);
403
		listLi.append($str);
404
		questioninfo(dataStr.qid, $str);
405
        proinfo(dataStr.uid, $str);
406
		leaveMsgCount(dataStr.id, $str);
407
	}
408
	
409
	function leaveMsgCount(id, $str) {
410
		$.ajax({
411
			"url":"/ajax/leavemsg/count",
412
			"type": "GET",
413
			"dataType": "json",
414
			"data": {
415
				sid:id,
416
				stype: "4"
417
			},
418
			"success": function(data) {
419
				if(data.success) {
420
					if(data.data > 0) {
421
						$str.find(".leaveMsgCount").html(data.data + "留言");
422
					}
423
				}
424
			},
425
			"error": function() {
426
			}
427
		});
428
	}
429
	function attendCount(id, $str) {
430
		$.ajax({
431
			"url":"/ajax/watch/countProfessor",
432
			"type": "GET",
433
			"dataType": "json",
434
			"data": {
435
				id:id,
436
				type: 8
437
			},
438
			"success": function(data) {
439
				if(data.success) {
440
					if(data.data > 0) {
441
						$str.find(".attendCount").html(data.data + "关注");
442
					}
443
				}
444
			},
445
			"error": function() {
446
			}
447
		});
448
	}
290 449
	//查文章留言数
291 450
	function commentnum(articleId, $itemlist) {
292 451
		$.ajax({
@ -305,10 +464,72 @@ $(function() {
305 464
				}
306 465
			},
307 466
			"error": function() {
308
				$.MsgBox.Alert('提示', '链接服务器超时')
309 467
			}
310 468
		});
311 469
	}
470
	function proinfo(pid, $str) {
471
		$.ajax({
472
			"url":"/ajax/professor/baseInfo/" + pid,
473
			"type": "GET",
474
			"dataType": "json",
475
			"data": {},
476
			"success": function(data) {
477
				if(data.success) {
478
					var dataStr = res.data
479
		            var baImg = "../images/default-photo.jpg";
480
		            if (dataStr.hasHeadImage == 1) {
481
		                baImg = baseUrl + "/images/head/" + dataStr.id + "_l.jpg";
482
		            }
483
		            var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
484
		            var os = "";
485
		            if (dataStr.title) {
486
		                if (dataStr.orgName) {
487
		                    os = dataStr.title + "," + dataStr.orgName;
488
		                } else {
489
		                    os = dataStr.title;
490
		                }
491
		            } else {
492
		                if (dataStr.office) {
493
		                    if (dataStr.orgName) {
494
		                        os = dataStr.office + "," + dataStr.orgName;
495
		                    } else {
496
		                        os = dataStr.office;
497
		                    }
498
		                } else {
499
		                    if (dataStr.orgName) {
500
		                        os = dataStr.orgName;
501
		                    }
502
		                }
503
		            }
504
		            var str = '<div class="owner-head useHead" style="background-image:url(' + baImg + ')"></div>' +
505
		                '<div class="owner-info">' +
506
		                '<div class="owner-name"><span class="h1Font">' + dataStr.name + '</span><em class="authicon ' + userType.sty + '" title="' + userType.title + '"></em></div>' +
507
		                '<div class="owner-tit mui-ellipsis h2Font">' + os + '</div>' +
508
		                '</div>'
509
		            $str.find(".qa-owner").html(str)
510
				}
511
			},
512
			"error": function() {
513
			}
514
		});
515
    }
516
  	function questioninfo(qid, $str) {
517
  		$.ajax({
518
			"url":"/ajax/question/qo",
519
			"type": "GET",
520
			"dataType": "json",
521
			"data": {
522
				id:qid
523
			},
524
			"success": function(data) {
525
				if(data.success) {
526
					$str.find(".qa-question").html(res.data.title);
527
				}
528
			},
529
			"error": function() {
530
			}
531
		});
532
    }
312 533
	/*用户信息*/
313 534
	function userFun(id,$listItem) {
314 535
		$.ajax({

+ 97 - 0
js/qa-show.js

@ -0,0 +1,97 @@
1
$(function() {
2
	loginStatus();//判断个人是否登录
3
	var userid = $.cookie("userid");
4
	var professorId = GetQueryString("professorId");
5
	if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
6
	 	location.href="http://" + window.location.host + "/e/p.html?id="+professorId;
7
	}
8
	var oArray=[];
9
	var watchType=1;
10
	
11
	
12
		//点击关注按钮
13
		$("#attentBtn").on('click', function() {
14
			if(userid && userid != null && userid != "null") {
15
				if($(this).is('.attenedSpan')){
16
					cancelCollectionAbout(professorId,$(this), 1)
17
				} else {
18
					collectionAbout(professorId,$(this), 1);
19
				}
20
				attentCount();//关注者数量刷新
21
				attentMy();
22
			}else{
23
				quickLog();
24
				operatTab();
25
				closeLog();
26
			}
27
		});
28
		
29
		
30
31
32
	//相关文章信息
33
	function relevantarticalList(){
34
		$.ajax({
35
			"url" : "/ajax/article/byAssProfessor",
36
			"type" :  "GET" ,
37
			"dataType" : "json",
38
			"data" :{"id":professorId},
39
			"traditional": true, //传数组必须加这个
40
			"success" : function(data) {
41
				console.log(data);
42
				if (data.success && data.data!=""){
43
					$("#relateArt").parents(".conBlock").removeClass("displayNone");
44
					var itemlist = '';
45
					$("#relateArt").html("");
46
					for(var i = 0; i < data.data.length; i++) {
47
						var itemlist = '<li class="flexCenter"><a  target="_blank" href="/'+ pageUrl('a',data.data[i]) +'" class="urlgo">';
48
							itemlist += '<p class="h2Font ellipsisSty-2"><em class="circlePre"></em>'+data.data[i].articleTitle+'</p>';
49
							itemlist += '</a></li>';
50
							$itemlist = $(itemlist);
51
						$("#relateArt").append($itemlist);
52
					}
53
				}
54
			},
55
			"error":function(){
56
				$.MsgBox.Alert('提示','链接服务器超时')
57
			}
58
		});
59
	}
60
61
62
	
63
	//纠错反馈
64
	$(".correctSubmit").on("click",function(){
65
		var cntCon=$(this).siblings(".correctCon").val();
66
		var cntUser="";
67
		if(userid && userid != null && userid != "null") {
68
			cntUser = userid;
69
		}
70
		if(cntCon.length>500){
71
			$.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
72
			return;
73
		}else{
74
			$.ajax({
75
				"url": "/ajax/feedback/error/professor",
76
				"type": "POST",
77
				"dataType": "json",
78
				"async": true,
79
				"data": {
80
					"id": professorId,
81
					"cnt":cntCon,
82
					"user":cntUser
83
				},
84
				"success": function(data) {
85
					if(data.success) {
86
						backSuccessed();
87
					}
88
				},
89
				"error": function() {
90
					$.MsgBox.Alert('提示', '链接服务器超时')
91
				}
92
			});
93
		}
94
	})
95
	
96
})
97

+ 188 - 0
qa-show.html

@ -0,0 +1,188 @@
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
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
13

14
</head>
15

16
<body>
17
<header id="header">
18
	<script src="js/header.js"></script>
19
</header>
20
<div id="container">
21
	<div class="containerCon">
22
		<div class="contentCon clearfix">
23
			<div class="leftconBox leftconBoxbg floatL">
24
				<div class="list-main scroll-view">
25
					<section class="listbg list_content">
26
						<ul class="tagList">
27
							<li><span class="h2Font">快递分类设计稿既然</span></li>
28
						</ul>
29
						<div class="item_detail" id="questionId">
30
							<h3 class="h1Font hWeight" id="questionTit">打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮?</h3>
31
							<div class="list_con" id="questionCnt">打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮打开网页后点击屏幕右上角“分享”按钮</div>
32
							<ul class="list_image">
33
								<li><span class="imgspan" style="background-image: url(images/banner/banner0307.png);"></span></li>
34
								<li><span class="imgspan" style="background-image: url(images/banner/banner01.jpg);"></span></li>
35
								<li><span class="imgspan" style="background-image: url(images/banner/banner0307.png);"></span></li>
36
							</ul>
37
							<div class="list_hander clearfix">
38
								<div class="goSpan floatL">
39
				                	<span>我来回答</span>
40
									<span>邀请回答</span>
41
								</div>
42
								<div class="operateBlock bottomShow floatL">
43
				            		<ul class="clearfix">
44
				            			<li><span>阅读量</span> <span id="pageview">1000</span></li>
45
				            			<li id="attention"><span>收藏</span> <em class="operateicon operateicon2 icon-collect" id="collectBtn"></em></li>
46
										<li>
47
											<span>分享到</span>
48
											<a href="" id="weibo" target="_blank"><em class="operateicon operateicon2 icon-sina"></em></a>
49
											<em class="operateicon operateicon2 icon-wechat shareWeixin">
50
												<div class="shareCode clearfix">
51
													<div class="floatL" id="qrcode"></div>
52
													<div class="shareWord floatR">
53
														<p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p>
54
													</div>
55
												</div>
56
											</em>
57
										</li>
58
				            		</ul>
59
				            	</div>
60
				            	<div class="operateBlock tip-offs floatR">
61
				            		<span>举报</span>
62
				            	</div>
63
							</div>
64
						</div>
65
					</section>
66
					<section class="listbg">
67
						<div class="list-hold-count">
68
							<span><em id="replyCount">N</em>个回答</span>
69
							<ul>
70
								<li class="active" data-type="1"><span>默认</span></li>
71
								<li data-type="2"><span>最新</span></li>
72
							</ul>
73
						</div>
74
					</section>	
75
					<section class="list-hold">
76
						<div class="list-hold-list">
77
							<ul class="myAllneeds partLine" id="curAnswers">
78
								<li>
79
									<div class="madiaInfo">
80
										<div class="flexCenter qa-owner">
81
											<div class="owner-head useHead"></div>
82
											<div class="owner-info">
83
												<div class="owner-name"><span>张某某</span><em class="authiconNew authicon-pro" title="科袖认证专家"></em></div>
84
												<div class="owner-tit ellipsisSty h2Font">职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构职称/职位,所在机构</div>
85
											</div>
86
											<div class="goSpan">
87
							                	<span class="attenSpan">关注</span>
88
											</div>
89
										</div>
90
										<p class="qa-con ellipsisSty-3">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进, 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进, 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出
91
										</p>
92
										<div class="item_info">
93
											<span class="time">发布于 20分钟之前</span>
94
										</div>
95
										<div class="list_hander clearfix">
96
											<div class="holdSpan floatL">
97
							                	<div class="zan active"><em class="hold-icon icon-zan"></em><span>45</span></div>
98
												<div><em class="hold-icon icon-cai"></em></div>
99
											</div>
100
											<div class="operateBlock bottomShow floatL">
101
							            		<ul class="clearfix">
102
							            			<li><span>留言</span> <span class="pageview">1000</span></li>
103
							            			<li class="attention"><span>收藏</span> <em class="operateicon operateicon2 icon-collect" id="collectBtn"></em></li>
104
													<li>
105
														<span>分享到</span>
106
														<a class="weiboQA" href="" target="_blank"><em class="operateicon operateicon2 icon-sina"></em></a>
107
														<em class="operateicon operateicon2 icon-wechat shareWeixin">
108
															<div class="shareCode clearfix">
109
																<div class="floatL qrcodeQA"></div>
110
																<div class="shareWord floatR">
111
																	<p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p>
112
																</div>
113
															</div>
114
														</em>
115
													</li>
116
							            		</ul>
117
							            	</div>
118
							            	<div class="operateBlock tip-offs floatR">
119
							            		<span>举报</span>
120
							            	</div>
121
										</div>
122
									</div>
123
								</li>
124
							</ul>
125
							<!--加载更多按钮-->
126
    						<div class="js-load-more">加载更多</div>
127
						</div>
128
					</section>
129
				</div>
130
			</div>
131
			<div class="rightconBox floatR">
132
				<div class="conItem advertBox advertItem">
133
					<script src="js/adverts/ad_pap.js"></script>
134
				</div>
135
				<div class="conBlock conItem">
136
					<div class="form-item">
137
						<div class="aboutTit">等您回答</div>
138
						<div class="form-result form-M0 currentArt currentArt2">
139
							<ul id="relateArt">
140
								<li class="flexCenter">
141
									<a target="_blank" href="/'+ pageUrl('a',data.data[i]) +'" class="urlgo">
142
										<p class="h2Font ellipsisSty-2"><em class="circlePre"></em>台北故宫将起诉北京故宫侵权,是“贼喊捉贼”吗?</p>
143
									</a>
144
								</li>
145
							</ul>
146
						</div>
147
					</div>	
148
				</div>
149
			</div>
150
			
151
		</div>
152
	</div>
153
</div>
154
<!--反馈建议-->
155
<script type="text/javascript" src="js/correctBack.js"></script>
156
<footer>
157
	<script type="text/javascript" src="js/footer.js"></script>
158
</footer>
159
<script type="text/javascript" src="js/jquery.cookie.js"></script>
160
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
161
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
162
<script type="text/javascript" src="js/jquery.page.js"></script>
163
<script type="text/javascript" src="js/common.js"></script>
164
<script type="text/javascript" src="js/qa-show.js"></script>
165
<script type="text/javascript" src="js/quickLogin.js"></script>
166
<script type="text/javascript">
167

168
	//分享关注按钮
169
	$('.shareWeixin').hover(function(){$(this).find('.shareCode').stop(true,false).fadeToggle();});
170
	$('.goSpan').hover(function(){$(this).find('.shareCode').stop(true,false).fadeToggle();});
171
	
172
	//微信分享
173
	var qrcode = new QRCode(document.getElementById("qrcode"), {
174
		width : 100,
175
		height : 100
176
	});
177
	function makeCode(){
178
		var hurl = window.location.host;
179
		var patentId =  GetQueryString("patentId");
180
		var elurl = "http://" + hurl + "/e/z.html?id=" + patentId ; 
181
		qrcode.makeCode(elurl);
182
	}
183
	makeCode();
184

185
	
186
</script>
187
</body>
188
</html>