resourceDetails.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <ion-view style="background-color: #f2f2f2;">
  2. <div class="bar bar-header">
  3. <div class="button button-icon icon pus_blue" ng-click="resDetailGoback()"></div>
  4. <button class="button button-icon icon goback" ng-click="goback()"></button>
  5. <h3 class="DockingTheme_h3 resource_h3" ng-bind="resource.title"></h3>
  6. <!--<button class="button ShengButton" ng-click="openShare()"></button>-->
  7. </div>
  8. <ion-content class="has-header push_detail_content" delegate-handle="calenderContent" style="background-color: #fff;">
  9. <p class="resoureDetailTitle" ng-bind="resource.title"></p>
  10. <h6 class="resoureDetailSubTitle" ng-if="resource.categoryname!=undefined&&resource.categoryname!=''">
  11. <span>行业:</span>
  12. <span ng-bind="resource.categoryname"></span>
  13. </h6>
  14. <h6 class="resourceBuilder">
  15. <span class="resourceBuilder-span-img" ng-if="resource.creatorUser.photo!=undefined&&resource.creator!=0"><img src="{{imgUrl+resource.creatorUser.photo}}" onerror="javascript:this.src='./img/admin_picter.jpg'"></span>
  16. <span class="resourceBuilder-span-img" ng-if="resource.creator==0"><img src="./img/icon.png" onerror="javascript:this.src='./img/admin_picter.jpg'"></span>
  17. <span class="resourceBuilder-span-theme">{{resource.creator!=0?resource.creatorUser.userName:'普适科技'}}<br><a href="#" ng-bind="resource.publishTime"></a></span>
  18. <span class="resourceBuilder-span-t" ng-click="focusUser()" ng-if="resource.Focus&&resource.creator!=undefined&&resource.creator!=0">已关注</span>
  19. <span class="resourceBuilder-span-t" ng-click="focusUser()" ng-if="!resource.Focus&&resource.creator!=undefined&&resource.creator!=0">+关注</span>
  20. </h6>
  21. <!--企业-->
  22. <div class="addEnterP" ng-if="type=='6'">
  23. <img width="auto" height="55px" style="margin:20px auto;display: block;" ng-if="resource.logo!=undefined&&resource.logo!=''" ng-src="{{imgUrl+resource.logo}}" onerror="javascript:this.src='./img/admin_picter.jpg'">
  24. <h4 class="erterTitle" ng-bind="resource.contentorgname"></h4>
  25. <ul class="enterArea_ul">
  26. <li ng-if="resource.enterprisetypename!=undefined&&resource.enterprisetypename!=''"><span>类型:</span>{{resource.enterprisetypename}}<b>|</b></li>
  27. <li ng-if="resource.enterprisescalename!=undefined&&resource.enterprisescalename!=''"><span>规模:</span>{{resource.enterprisescalename}}<b>|</b></li>
  28. <li ng-if="resource.star_type_name!=undefined&&resource.star_type_name!=''"><span>高企认定:</span>{{resource.star_type_name}}</li>
  29. </ul>
  30. <div class="enterArea" ng-if="resource.domain!=undefined&&resource.domain!=''"><span>领域:</span><p>{{resource.domain}}</p></div>
  31. </div>
  32. <!--高校-->
  33. <div class="addEnterP" ng-if="type=='7'">
  34. <img class="resourceDetailImg" ng-if="resource.logo!=undefined&&resource.logo!=''" ng-src="{{imgUrl+resource.logo}}" onerror="javascript:this.src='./img/admin_picter.jpg'">
  35. <h4 class="erterTitle" ng-bind="resource.contentorgname"></h4>
  36. <ul class="enterArea_ul">
  37. <li ng-if="resource.region!=undefined&&resource.region!=''"><span>地区:</span>{{resource.region}}<b>|</b></li>
  38. <li ng-if="resource.starTypeValue!=undefined&&resource.starTypeValue!=''"><span>学校类别:</span>{{resource.starTypeValue}}<b></b></li>
  39. </ul>
  40. </div>
  41. <!--人才-->
  42. <div class="addEnterP" ng-if="type=='8'">
  43. <img class="resourceDetailImg" ng-if="resource.logo!=undefined&&resource.logo!=''" ng-src="{{imgUrl+resource.logo}}" onerror="javascript:this.src='./img/admin_picter.jpg'">
  44. <h4 class="erterTitle" ng-bind="resource.contentexpertname"></h4>
  45. <ul class="enterArea_ul">
  46. <li ng-if="resource.sex!=undefined&&resource.sex!=0"><span>性别:</span>{{sex[resource.sex]}}<b>|</b></li>
  47. <li ng-if="resource.birthday!=undefined&&resource.birthday!=''"><span>年龄:</span>{{resource.birthday}}<b>|</b></li>
  48. <li ng-if="resource.academicdegreename!=undefined&&resource.academicdegreename!=''"><span>学位:</span>{{resource.academicdegreename}}</li>
  49. </ul>
  50. <div>
  51. <ul class="enterArea_ul" style="overflow: visible;">
  52. <li ng-if="resource.rank!=undefined&&resource.rank!=0"><span>职称:</span>{{resource.rank}}<b>|</b></li>
  53. <li ng-if="resource.domain!=undefined&&resource.domain!=''" style="position: relative;height: auto;">
  54. <span style="position: absolute;left: 0;top:0;width: 42px;">领域:</span>
  55. <p class="resourceArea_p">{{resource.domain}}</p>
  56. </li>
  57. </ul>
  58. </div>
  59. </div>
  60. <ion-scroll scroll="true" has-bouncing="true" direction="x" scrollbar-x="false" delegate-handle="scrollimage" class="photo_div" ng-show="imagelist.length>0;" style="overflow-x:hidden;overflow-y:hidden;">
  61. <a class="photo_img" ng-repeat="image in imagelist track by $index">
  62. <img ng-src="{{imgUrl+image.photo_name}}" width="100%" height="85" ng-click="shouBigImage($index)">
  63. <span class="photo_delect delect_cammer" ng-click="deletePhoto($index)"></span>
  64. </a>
  65. </ion-scroll>
  66. <!--成果、需求-->
  67. <div class="resource_result_div">
  68. <h6 ng-if="(type=='1'||type=='2')&&resource.domain!=undefined&&resource.domain!=''"><span>领域&nbsp;:&nbsp;</span><b href="#" ng-bind="resource.domain"></b></h6>
  69. <h6 ng-if="type=='2'&&resource.proficiency!=undefined&&resource.proficiency!=0"><span>成熟度&nbsp;:&nbsp;</span><b ng-bind="chooesMaturity[resource.proficiency]"></b></h6>
  70. <h6 ng-if="type=='1'&&resource.capitalScale!=undefined"><span>投入预算&nbsp;:&nbsp;</span><b ng-bind="resource.capitalScale==-1?'面议':resource.capitalScale+'万元'"></b></h6>
  71. <h6 ng-if="(type=='1'||type=='2')&&resource.cooperationmodelname!=undefined&&resource.cooperationmodelname!=''"><span>合作模式&nbsp;:&nbsp;</span><b ng-bind="resource.cooperationmodelname"></b></h6>
  72. <h6 ng-if="type=='2'&&resource.isipr!=undefined&&resource.isipr!=-1"><span>知识产权&nbsp;:&nbsp;</span><b ng-bind="chooesRight[resource.isipr]"></b></h6>
  73. </div>
  74. <p class="detail_content" ng-bind-html="contenthtml">
  75. </p>
  76. <div class="detail_connectMessage">
  77. <h6 ng-if="type=='8'&&resource.schName!=undefined&&resource.schName!=''"><i class="ascription"></i><span ng-bind="resource.schName"></span></h6>
  78. <h6 ng-if="(type=='1'||type=='2')&&resource.orgName!=undefined&&resource.orgName!=''"><i class="ascription"></i><span ng-bind="resource.orgName"></span></h6>
  79. <h6 ng-if="type=='2'&&resource.contactor!=undefined&&resource.contactor!=''" ng-click="goRelResource(resource)">
  80. <i class="connectP"></i><span ng-bind="resource.contactor" ng-class="{'relative_color':resource.resourceid!=undefined}"></span>
  81. </h6>
  82. <h6 ng-if="(type=='1'||type=='6')&&resource.contactor!=undefined&&resource.contactor!=''"><i class="connectP"></i><span ng-bind="resource.contactor"></span></h6>
  83. <h6 ng-if="type!='7'&&resource.tel!=undefined&&resource.tel!=''" ng-click="openTel(resource.tel)"><i class="phoneT"></i><span ng-bind="resource.tel" style="color: #3385ff;"></span></h6>
  84. <h6 ng-if="type!='7'&&resource.email!=undefined&&resource.email!=''"><i class="mailM"></i><span ng-bind="resource.email"></span></h6>
  85. <h6 ng-if="(type=='7'||type=='6')&&resource.address!=undefined&&resource.address!=''"><i class="address"></i><span ng-bind="resource.address"></span></h6>
  86. <h6 ng-if="type=='7'&&resource.url!=undefined&&resource.url!=''"><i class="website"></i><span ng-bind="resource.url"></span></h6>
  87. </div>
  88. <!--点赞区域-->
  89. <p class="detail_connectLikes" ng-if="!resource.Like&&resource.favourcount!=undefined" ng-click="dianZan()"><span><i></i>{{resource.favourcount}}</span></p>
  90. <p class="detail_connectLikes resource_zan" ng-if="resource.Like&&resource.favourcount!=undefined" ng-click="dianZan()"><span><i></i>{{resource.favourcount}}</span></p>
  91. <!--相关资源-->
  92. <h6 style="position: relative;" ng-if="resource.ifhasmatch==1&&(relativerecord!=undefined||relativelist.length>0)">
  93. <span class="resource_relative">相关资源:</span>
  94. <span class="resource_relative_right" ng-click="getRelativeResource()"><i class="synUpload_blue"></i>换一换</span>
  95. </h6>
  96. <a class="item item-thumbnail-right item-text-wrap push_home_a resourceContent" style="min-height: 110px;width: 95%;" ng-if="resource.ifhasmatch==1" ng-repeat="relative in relativelist track by $index">
  97. <img ng-src="{{imgUrl+relative.logo}}" onerror="javascript:this.src='./img/admin_picter.jpg';" style="width: 74px;;height:65px;position: absolute;top: 15px;left:12px;">
  98. <div class="resourceList" ng-click="goRelativeResource(relative)">
  99. <h3 class="pus_h1 resourceH3 new_push_h1" style="height: 39px;line-height: 30px;" ng-bind="relative.title"></h3>
  100. <span class="ownerResource">发布者:<small ng-bind="relative.creatorname"></small></span>
  101. <p class="lab_sub" style="width: 100%;float:left;top:0px;">
  102. <span class="lab_one"><i></i><small ng-bind="relative.commcount"></small></span>
  103. <span class="lab_two"><i></i><small ng-bind="relative.visitcount"></small></span>
  104. <span class="lab_three"><span class="favourate"><i></i><small ng-bind="relative.favourcount"></small></span></span>
  105. <span class="lab_five" ng-bind="relative.publishTime"></span>
  106. </p>
  107. </div>
  108. <button class="resource_detail_button" ng-click="goResourceMatch(relative)" ng-if="relative.type == '1'">匹配更多需求>></button>
  109. <button class="resource_detail_button" ng-click="goResourceMatch(relative)" ng-if="relative.type == '2'">匹配更多成果>></button>
  110. <button class="resource_detail_button" ng-click="goResourceMatch(relative)" ng-if="relative.type == '6'">匹配更多企业>></button>
  111. <button class="resource_detail_button" ng-click="goResourceMatch(relative)" ng-if="relative.type == '8'">匹配更多人才>></button>
  112. </a>
  113. <a class="item item-thumbnail-right item-text-wrap push_home_a resourceContent" style="min-height: 110px;" ng-if="resource.ifhasmatch==1&&relativerecord!=undefined">
  114. <img ng-src="{{imgUrl+relativerecord.logo}}" onerror="javascript:this.src='./img/admin_picter.jpg';" style="width: 74px;;height:65px;position: absolute;top: 15px;left:12px;">
  115. <div class="resourceList" ng-click="goRelativeResource(relativerecord)">
  116. <h3 class="pus_h1 resourceH3 new_push_h1" style="height: 39px;line-height: 30px;" ng-bind="relativerecord.title"></h3>
  117. <span class="ownerResource">发布者:<small ng-bind="relativerecord.creatorname"></small></span>
  118. <p class="lab_sub" style="width: 100%;float:left;top:0px;">
  119. <span class="lab_one"><i></i><small ng-bind="relativerecord.commcount"></small></span>
  120. <span class="lab_two"><i></i><small ng-bind="relativerecord.visitcount"></small></span>
  121. <span class="lab_three"><span class="favourate"><i></i><small ng-bind="relativerecord.favourcount"></small></span></span>
  122. <span class="lab_five" ng-bind="relativerecord.conntime"></span>
  123. </p>
  124. </div>
  125. <button class="resource_detail_button" ng-click="goResourceMatch(relativerecord)">匹配更多记录>></button>
  126. </a>
  127. <!--热门评论-->
  128. <span id="all_discuss" style="background-color: #fff;top: 15px;width: 92%;margin: 0 auto;" ng-if="commentlist.length>0">
  129. <p style="font-size:14px;margin: 15px 0 15px;font-weight: 500;" ng-if="commentlist.length>0">热门评论</p>
  130. <a style="width: 100%;height:auto;display: block;overflow: hidden;" ng-repeat="comment in commentlist track by $index">
  131. <img ng-src="{{imgUrl+comment.photo}}" onerror="javascript:this.src='./img/admin_picter.jpg';" style="border-radius: 50%;width:35px;height: 35px;float: left;position: relative;" ng-click="go('publisher',{Id:comment.userId})"/>
  132. <p class="content-node">{{comment.userName}}
  133. <span class="content-zan du_discuss" ng-if="!comment.Like" ng-click="content_zan(comment,$index);" style=" float: right;color:#979fac;width:auto;height: 25px;line-height:25px;text-indent: 28px;font-size: 14px;text-align:center;background-position:0 47%;display: inline-block;">
  134. <b style="top:0px;left: -5px;">{{comment.favourcount}}</b>
  135. <span style=" width: 49px;position:absolute; right:34px; top:2px; color:transparent; text-align: left; height: 20px;line-height: 20px;">+1</span>
  136. </span>
  137. <span class="content-zan du_discuss w_zan" ng-if="comment.Like" ng-click="content_zan(comment,$index);" style=" float: right;color:#979fac;width:auto;height: 25px;line-height:25px;text-indent: 28px;font-size: 14px;text-align:center;background-position:0 47%;display: inline-block;">
  138. <b style="top:0px;left: -5px;">{{comment.favourcount}}</b>
  139. <span style=" width: 49px;position:absolute; right:34px; top:2px; color:transparent; text-align: left; height: 20px;line-height: 20px;">+1</span>
  140. </span>
  141. </p>
  142. <p class="content-node" style="margin: 12px 0;" ng-if="comment.commenttag!=undefined">
  143. <span class="discussCard {{comment.commenttag.color+'_bg'}}" ng-bind="comment.commenttag.name">合同签订</span>
  144. </p>
  145. <p class="comment-content" style="padding-left: 35px;width: 94%;text-align: justify;" ng-click="goCommentDetail(comment)" ng-bind="comment.content"></p>
  146. <ion-scroll scroll="true" has-bouncing="true" direction="x" scrollbar-x="false" delegate-handle="scrollimage" class="photo_div" ng-show="comment.pic.length>0" style="overflow-x:hidden;overflow-y:hidden;width: 88%;">
  147. <span class="photo_img" ng-repeat="image in comment.pic track by $index">
  148. <img src="{{imgUrl+image.photo_name}}" style="width:100%;height:85px;" class="back-img" ng-click="shouBigImage(comment.pic,$index)"/>
  149. </span>
  150. </ion-scroll>
  151. <span class="review_data" ng-click="goCommentDetail(comment)">{{comment.createTime}}<span>{{comment.replyNumber==0?'':comment.replyNumber+'条'}}回复&gt;</span></span>
  152. <span ng-click="delectToolDis(comment.id)" class="delectToolDis" ng-if="comment.userId == userid">删除</span>
  153. </a>
  154. <div ng-if="MoreComment" style="width: 100%;height:30px;line-height: 30px;position: relative;text-align: center;font-size: 12px;margin-bottom: 25px;">
  155. <span style="color:#2095ee; height: 100%;float: left;width: 110px;position:absolute;left: 35%;" ng-click="goCommentList()">继续查看更多评论></span>
  156. </div>
  157. </span>
  158. <!--暂无评论-->
  159. <div style="width: 100%;height:120px;position: relative;top:8px;" ng-if="commentlist.length==0;" ng-click="hadSoft()">
  160. <i id="empty_discuss"></i>
  161. <p class="empty_p">暂无评论,点击抢沙发</p>
  162. </div>
  163. <!--没有权限去申请-->
  164. <div ng-if="false" class="null_zan null_authority">
  165. <span>没有权限</span>
  166. <a class="null_zan_a" ui-sref="resourceApply">去申请</a>
  167. </div>
  168. <br>
  169. <br>
  170. <br>
  171. </ion-content>
  172. <!--底部标签区域-->
  173. <div class="comment_bottom" ng-if="showComment">
  174. <label class="item-input-wrapper">
  175. <input type="text" placeholder="写评论..." class="write_p" id="write_see" ng-focus="focus_write()">
  176. </label>
  177. <div>
  178. <button class="pus_button" ng-click="goCommentList()">
  179. <span class="pin_lun">
  180. <!--<span ng-if="commentlist.length>0" ng-class="{'red-number':commentlist.length>0}" >{{commentlist.length}}</span>-->
  181. </span>
  182. </button>
  183. <span id="five_xin" ng-class="{'five_xin':resource.Enshrine}" ng-click="collectResource()"></span>
  184. <span id="z_fa" ng-click="openShare()"></span>
  185. </div>
  186. </div>
  187. <!--简单回复区域-->
  188. <ion-footer-bar ng-if="!showComment" class="comment_div" keyboard-attach style="height: 170px;">
  189. <textarea autofocus style="top:0;" class="my_comment" name="comment" placeholder="优质评论将会被优先展示" required ng-model="comment.content" ng-change="commentValue()"></textarea>
  190. <div id="commentform">
  191. <button class="comment_phone" ng-click="releaseComment()"></button>
  192. <button class="comment_submit" ng-style="commentNotnull" ng-click="publishComment();" ng-disabled="comment.content==undefined||comment.content.length==0;">发表</button>
  193. </div>
  194. </ion-footer-bar>
  195. <div ng-if="!showComment" class="comment_background" ng-click="hiddenComment()"></div>
  196. <!--图片放大区域-->
  197. <div id="rightDisplay" ng-show="bigImage" class="popover-backdrop" >
  198. <ion-slide-box auto-play="false" does-continue="false" show-pager="true" delegate-handle="slide_detail">
  199. <ion-slide ng-repeat="image in commentpiclist track by $index" style="background-color:#000;">
  200. <span><em></em>/</span>
  201. <div class="viewOldImg">
  202. <span ng-if="!image.loadsource" ng-click="viewOldImg($index);">
  203. 查看原图
  204. <em ng-bind="'('+image.source_size+')'"></em>
  205. </span>
  206. <span ng-if="image.loadsource">
  207. 已完成
  208. </span>
  209. </div>
  210. <div class="loadImg" ng-click="loadImg(image);"></div>
  211. <div class="pinch-zoom" style="width: 100%;height:100%;">
  212. <img class="img-responsive bigimage" src="{{imgUrl+image.photo_name}}" ng-click="hideBigImage()"/>
  213. </div>
  214. </ion-slide>
  215. </ion-slide-box>
  216. </div>
  217. <!--分享区域-->
  218. <div class="detail_ionicpop" ng-if="shareflg">
  219. <div class="closeShare" ng-click="closeShare()"></div>
  220. <div class="ionicPop_div">
  221. <ion-scroll direction="x" scrollbar-x="false" class="p_Chanel">
  222. <span class="share_path">分享到:</span>
  223. <!--<a ng-click="openCollectShare()"><i class="share_source"></i><span>我的资源库</span></a>-->
  224. <a ng-click="shareMessage(3)"><i class="share_first"></i><span>微信朋友圈</span></a>
  225. <a ng-click="shareMessage(2)"><i class="share_second"></i><span>微信好友</span></a>
  226. <a ng-click="shareMessage(0)"><i class="share_third"></i><span>手机QQ</span></a>
  227. <a ng-click="shareMessage(1)"><i class="share_four"></i><span>QQ空间</span></a>
  228. </ion-scroll>
  229. <div class="cancelPop" ng-click="closeShare()">取消</div>
  230. </div>
  231. </div>
  232. </ion-view>