list.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="https://www.thymeleaf.org ">
  4. <head>
  5. <title>采美365网</title>
  6. <template th:replace="article/components/article-link"></template>
  7. <template th:replace="components/analysis"></template>
  8. </head>
  9. <body class="home listData">
  10. <div class="cm-modal"></div>
  11. <!--导航栏-->
  12. <template th:replace="article/components/article-header"></template>
  13. <div class="tip-bar">
  14. <!--<div class="tip">提示:产品详情请到采美商城搜索</div> -->
  15. <!--面包屑-->
  16. <div th:if="${typeId}>0" class="bar">
  17. <a href="/" target="_blank">首页</a>&gt; <a th:each="type: ${articleType}" th:if="${typeId}==${type.id}" th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>
  18. </div>
  19. </div>
  20. <!--主体内容-->
  21. <div class="content clearfix" id="ArticleContent">
  22. <!--侧边栏Ross广告图-->
  23. <div class="mainData">
  24. <div class="new-list" id="articleList" v-cloak>
  25. <div v-if="!isPC && isRossShow" class="article-right-ross" :class="isRossShow ? 'show' : 'none'"><a href="/supplier-10131.html" ><img src="/img/ross/ross-image@2x.jpg" alt="深圳艾斯佰丽生物科技有限公司"></a></div>
  26. <!-- 产品搜索结果 -->
  27. <div class="search-section" v-show="params.keyword && productRecord > 0">
  28. <div class="search__product_list">
  29. <div class="search__tip">为您找到相关产品<span v-text="productRecord"></span>个</div>
  30. <div class="search__content">
  31. <template v-for="product in productList">
  32. <a :href="'/product-' + product.productId + '.html'" class="search__product" :key="product.productId" target="_blank">
  33. <div class="search__product_cover"><img :src="product.image" :alt="product.name"/></div>
  34. <div class="search__product_name" v-html="product.name"></div>
  35. </a>
  36. </template>
  37. <template v-if="isPC && 8 - productRecord > 0">
  38. <div class="search__product" v-for="i in (8 - productRecord)" :key="'empty' + i">
  39. <div class="search__product_cover"><img src="/img/base/placeholder.png"/></div>
  40. <div class="search__product_name"></div>
  41. </div>
  42. </template>
  43. <div class="search__more" v-if="!isPC && productRecord > 8">
  44. <span class="search__more_tip">更多{{keyword | keywordSlice}}产品</span>
  45. <span class="search__more_line"></span>
  46. <a class="search__more_link" :href="'/product/list.html?productFlag=0&linkageFlag=0&keyword=' + keyword" target="_blank">查看全部</a>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="search__more" v-if="isPC && productRecord > 8">
  51. <span class="search__more_tip">更多{{keyword | keywordSlice}}产品</span>
  52. <span class="search__more_line"></span>
  53. <a class="search__more_link" :href="'/product/list.html?productFlag=0&linkageFlag=0&keyword=' + keyword" target="_blank">查看全部</a>
  54. </div>
  55. </div>
  56. <!-- 文章筛选 -->
  57. <div class="search-filter" v-show="params.keyword">
  58. <div class="search__content">
  59. <div class="search__tip">为您找到相关文章<span v-text="listRecord"></span>条</div>
  60. <div class="search__sort" id="searchSortControl">
  61. <div class="search__sort_current">文章排序</div>
  62. <ul class="search__sort_select">
  63. <li class="selected" data-type="1">综合排序</li>
  64. <li data-type="2">时间排序</li>
  65. </ul>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- 文章列表 -->
  70. <div v-if="listData.length>0" class="dataRousce">
  71. <div class="row" v-for="item in listData">
  72. <div class="new-img">
  73. <a :href="'/info/detail-'+item.id+'-1.html'" target="_blank">
  74. <img :src="item.image"/>
  75. </a>
  76. </div>
  77. <div class="new-blurb">
  78. <a :href="'/info/detail-'+item.id+'-1.html'" target="_blank">
  79. <p class="title" v-html="item.title"></p>
  80. </a>
  81. <p class="introduction" v-html="item.intro"></p>
  82. <p class="xinxi">
  83. <em v-if="!isPC" class="pv icon mIcon" v-text="item.pv"></em>
  84. <em class="write icon mIcon" v-text="item.publisher"></em>
  85. <em v-if="item.publishDate" class="time icon mIcon" v-text="item.publishDate.substr(0,10)"></em>
  86. <em v-if="item.labels.length>0&&item.labels[0]" class="hotspot icon mIcon">
  87. <template v-for="(id,i) in item.labelIds">{{i>0?',':''}}<a v-if="item.labels[i]" v-text="item.labels[i]" :href="'/info/label-' +id+ '-1.html'"></a></template>
  88. </em>
  89. </p>
  90. <p v-if="isPC" class="P_img"><em class="pv icon mIcon" v-text="item.pv"></em></p>
  91. </div>
  92. </div>
  93. </div>
  94. <div v-if="listLoading" class="loading">
  95. <img src="/img/base/loading.gif">
  96. </div>
  97. <!-- 如果没有搜索结果。显示此div -->
  98. <div v-else-if="listRecord==0" class="no-result">
  99. <p><img src="/img/info/kuqi.jpg"></p>
  100. <p class="nofound">很抱歉,没有找到 “<span v-text="params.keyword"></span>” 相关结果!</p>
  101. <p class="change">请修改或者尝试其他搜索词</p>
  102. </div>
  103. <div v-if="(!isPC) && noMore" class="no-more">---- 没有更多了 ----</div>
  104. <!--分页-->
  105. <div v-if="isPC && pageTotal>1" class="pageWrap clear">
  106. <a v-if="params.num>1" class="prev" :href="paginationUrl(params.num*1-1)"></a>
  107. <template v-for="n in showPageBtn">
  108. <a v-if="n" :class="{'on':(n==params.num)}" :href="paginationUrl(n)" v-text="n"></a>
  109. <span v-else>···</span>
  110. </template>
  111. <a v-if="params.num<pageTotal" class="next" :href="paginationUrl(params.num*1+1)"></a>
  112. <span>共<b v-text="pageTotal>1?pageTotal:1"></b>页</span>
  113. <span>跳至</span>
  114. <input v-model="pageInput" @blur="checkNum()"/>
  115. <span>页</span>&nbsp;
  116. <a class="btn" :href="paginationUrl(pageInput)">点击跳转</a>
  117. </div>
  118. </div>
  119. </div>
  120. <!--侧边栏-->
  121. <template th:replace="article/components/article-sidebar"></template>
  122. <div id="scrollTop">
  123. <div class="item">
  124. <span class="toTop icon mIcon">置顶</span>
  125. </div>
  126. </div>
  127. </div>
  128. <template th:replace="article/components/article-footer"></template>
  129. <template th:replace="components/foot-link"></template>
  130. <script charset="utf-8" type="text/javascript" src="/lib/datapicker/moment-2.29.min.js"></script>
  131. <script charset="utf-8" type="text/javascript" src="/lib/datapicker/jquery.daterangepicker.js"></script>
  132. <script charset="utf-8" type="text/javascript" th:src="@{/js/common/ajax.service.js}"></script>
  133. <script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/product.service.js}"></script>
  134. <script charset="utf-8" type="text/javascript" th:src="@{/js/mixins/cmSysMixins.js(v=${version})}"></script>
  135. <script charset="utf-8" type="text/javascript" th:src="@{/js/article/common.js(v=${version})}"></script>
  136. <script charset="utf-8" type="text/javascript" th:src="@{/js/article/list.js(v=${version})}"></script>
  137. </body>
  138. </html>