merchant.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <div class="merchant">
  3. <div class="container">
  4. <div class="top clearfix">
  5. <div class="title">
  6. <p>High quality dealer</p>
  7. <h2>供应商列表</h2>
  8. </div>
  9. <div class="search">
  10. <div class="input-group">
  11. <input type="search" class="form-control" title="code" placeholder="名称/地址/行业/型号/品牌"
  12. v-model="searchCode" @search="goodsSearch(searchCode)"/>
  13. <span class="input-group-btn">
  14. <button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">&nbsp;查 询</button>
  15. </span>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="list_info">
  20. <ul class="list-inline">
  21. <li>
  22. <div class="has_shop">已开店</div>
  23. <div class="enterprise_name">
  24. 深圳英优软科技有限公司
  25. </div>
  26. <div class="select_btn">
  27. 添加为<br/>供应商
  28. </div>
  29. <div class="popups">
  30. <p>企业执照号:</p><p>hjfhqei</p>
  31. <p>地址:</p><p></p>
  32. <p>邮箱:</p><p>hjfhqei</p>
  33. <p>电话:</p><p></p>
  34. <p>行业:</p><p>hjfhq4333333333333333333333333333333333333333ei</p>
  35. </div>
  36. </li>
  37. </ul>
  38. <div style="float: right;">
  39. <page :total="pageParams.total" :page-size="pageParams.count"
  40. :current="pageParams.page" v-on:childEvent="handleCurrentChange">
  41. </page>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. import Page from '~components/common/page/pageComponent.vue'
  49. export default {
  50. name: 'MerchantView',
  51. data () {
  52. return {
  53. searchCode: '',
  54. pageParams: {
  55. count: 20,
  56. page: 1,
  57. total: 100
  58. }
  59. }
  60. },
  61. components: {
  62. Page
  63. },
  64. methods: {
  65. goodsSearch (type) {
  66. console.log('1', type)
  67. },
  68. handleCurrentChange () {
  69. console.log('22')
  70. }
  71. }
  72. }
  73. </script>
  74. <style scoped type="text/scss" lang="scss">
  75. .merchant{
  76. background: #ecf1f1 url(/images/supplier/banner.jpg)no-repeat;
  77. border-top:3px solid #000;
  78. padding-bottom:25px;
  79. margin-top:-1.5em;
  80. .top{
  81. padding-top:30px;
  82. margin-bottom:40px;
  83. .title{
  84. margin:0 auto;
  85. text-align: center;
  86. width:215px;
  87. border-bottom:1px solid #ff5151;
  88. color:#fff;
  89. p{
  90. margin:0;
  91. }
  92. h2{
  93. font-size: 32px;
  94. margin:0;
  95. line-height: 46px;
  96. }
  97. &:before{
  98. content: '';
  99. display:block;
  100. position:relative;
  101. left:55px;
  102. top:61px;
  103. width:105px;
  104. height:1px;
  105. background: #ff8a00;
  106. }
  107. &:after{
  108. content: '';
  109. display:block;
  110. position:relative;
  111. left:55px;
  112. top:4px;
  113. width:105px;
  114. height:1px;
  115. background: #fff600;
  116. }
  117. }
  118. .search{
  119. float:right;
  120. width:310px;
  121. text-align: right;
  122. margin-right:10px;
  123. .btn{
  124. width:68px;
  125. background: #ffa200;
  126. color:#fff;
  127. }
  128. }
  129. }
  130. .list_info{
  131. padding: 0 10px;
  132. ul{
  133. margin-left:5px;
  134. li{
  135. position:relative;
  136. vertical-align: top;
  137. width:267px;
  138. height:115px;
  139. border-radius:5px;
  140. margin-right:32px;
  141. margin-bottom:60px;
  142. background: #ffffff;
  143. box-shadow: 0 3px 10px rgba(0,0,0,.8);
  144. &:nth-child(4n) {
  145. margin-right:0;
  146. }
  147. &:after{
  148. content: '';
  149. display:block;
  150. position:absolute;
  151. top:99%;
  152. left:50%;
  153. z-index:200;
  154. width:88px;
  155. height:22px;
  156. margin-left:-44px;
  157. background: url(/images/supplier/icon/bottom_center_img.png)no-repeat;
  158. }
  159. .has_shop {
  160. position:absolute;
  161. right:0;
  162. top:0;
  163. width:68px;
  164. height:22px;
  165. background: url(/images/supplier/icon/top_right_img.png)no-repeat;
  166. color:#fff;
  167. font-weight: bold;
  168. text-align: center;
  169. line-height: 22px;
  170. }
  171. .enterprise_name{
  172. padding-top:15px;
  173. width:98%;
  174. overflow: hidden;
  175. text-overflow: ellipsis;
  176. white-space:nowrap;
  177. border-bottom:1px solid #b9def7;
  178. font-weight: bold;
  179. color:#1891e4;
  180. font-size: 18px;
  181. line-height: 48px;
  182. text-align: center;
  183. }
  184. .select_btn{
  185. position:absolute;
  186. bottom:-10px;
  187. left:50%;
  188. z-index:250;
  189. width:56px;
  190. height:56px;
  191. padding:10px 0;
  192. margin-left:-28px;
  193. text-align: center;
  194. line-height: 18px;
  195. background: #1891e4;
  196. border-radius:50%;
  197. color:#fff;
  198. }
  199. &:hover{
  200. cursor:pointer;
  201. .popups{
  202. top:99%;
  203. opacity:1;
  204. z-index:100;
  205. min-height:125px;
  206. }
  207. }
  208. .popups{
  209. position:absolute;
  210. top:0;
  211. left:0;
  212. background: #6c6c6c;
  213. width:267px;
  214. height:110px;
  215. padding:25px 15px 15px 10px;
  216. transition: all .3s ease;
  217. opacity: 0;
  218. color:#fff;
  219. overflow: hidden;
  220. p{
  221. float:left;
  222. white-space:pre-wrap;
  223. word-wrap:break-word;
  224. margin: 0 !important;
  225. line-height: 18px;
  226. height:18px;
  227. &:nth-child(2n-1){
  228. width:42px;
  229. }
  230. &:first-child{
  231. width:85px;
  232. }
  233. &:nth-child(2n){
  234. width:200px;
  235. }
  236. &:nth-child(2){
  237. width:155px;
  238. }
  239. &:last-child{
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. white-space: nowrap;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. }
  249. }
  250. </style>