CategoryNav.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <template>
  2. <div class="breadcrumbs container">
  3. <ul class="list-unstyled list-inline">
  4. <li class="crumb-item">
  5. <nuxt-link :to="`/product/kind/home`">电子元器件</nuxt-link>
  6. </li>
  7. <li class="crumb-item crumb-item-angle" v-for="k in actives">
  8. <i class="angle"></i>
  9. <nuxt-link :to="`/product/kind/${k.id}`">
  10. <span :title="k.nameCn">{{k.nameCn}}</span> <i class="fa fa-angle-down"></i>
  11. </nuxt-link>
  12. <div class="crumb-drop" v-if="k.bothers">
  13. <ul class="list-unstyled list-inline" role="menu">
  14. <li v-for="b in k.bothers"><nuxt-link :to="`/product/kind/${b.id}`">{{b.nameCn}}</nuxt-link></li>
  15. </ul>
  16. </div>
  17. <i class="icon-glass"></i>
  18. </li>
  19. </ul>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. computed: {
  25. actives () {
  26. return this.$store.state.product.kind.kindsParentWithBother.data
  27. }
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. /* breadcrumbs */
  33. .breadcrumbs {
  34. margin-top: 20px;
  35. }
  36. .breadcrumbs ul.list-unstyled.list-inline {
  37. margin-left: 0px;
  38. margin-bottom: 10px;
  39. }
  40. .breadcrumbs ul.list-inline.list-unstyled li.crumb-item {
  41. position: relative;
  42. padding-left: 0px;
  43. padding-right: 0px;
  44. padding-bottom: 1px;
  45. height: 32px;
  46. line-height: 30px;
  47. background: #fff;
  48. border: solid 1px #6493ff;
  49. }
  50. .breadcrumbs ul li.crumb-item-angle {
  51. margin-left: -5px;
  52. }
  53. .breadcrumbs ul li.crumb-item>a {
  54. display: inline-block;
  55. width: 100%;
  56. height: 100%;
  57. padding-left: 15px;
  58. padding-right: 15px;
  59. cursor: pointer;
  60. text-decoration: none;
  61. color: #323232;
  62. font-size: 16px;
  63. }
  64. .breadcrumbs ul li.crumb-item:hover>a span,.breadcrumbs ul li.crumb-item:hover>a i{
  65. color: #5078cb;
  66. }
  67. .breadcrumbs ul li.crumb-item>a i{
  68. margin-right: 10px;
  69. }
  70. .breadcrumbs ul li.crumb-item:hover>a i{
  71. transform: rotate(-180deg);
  72. }
  73. .breadcrumbs ul li.crumb-item .angle {
  74. position: absolute;
  75. left: -6px;
  76. top: 50%;
  77. margin-top: -5px;
  78. height: 10px;
  79. width: 10px;
  80. border-bottom: 1px solid #6493ff;
  81. border-left: 1px solid #6493ff;
  82. background: white;
  83. transform: rotate(45deg);
  84. -ms-transform: rotate(45deg); /* IE 9 */
  85. -moz-transform: rotate(45deg); /* Firefox */
  86. -webkit-transform: rotate(45deg); /* Safari 和 Chrome */
  87. -o-transform: rotate(45deg); /* Opera */
  88. z-index: 14;
  89. }
  90. .breadcrumbs ul li.crumb-item .crumb-drop {
  91. position: absolute;
  92. display: none;
  93. left: -1px;
  94. top: 30px;
  95. border: #6493ff 1px solid;
  96. background: #fff;
  97. z-index: 100;
  98. width: 200px;
  99. }
  100. .breadcrumbs ul li.crumb-item .crumb-drop li {
  101. line-height: 20px;
  102. }
  103. .breadcrumbs ul li.crumb-item .crumb-drop li a{
  104. font-size: 12px;
  105. }
  106. li{
  107. list-style: none;
  108. }
  109. .breadcrumbs ul li.crumb-item:hover .crumb-drop {
  110. display: block;
  111. }
  112. .breadcrumbs ul li.crumb-item:hover>a {
  113. border-color: #f50;
  114. background: #ffffff;
  115. z-index: 101;
  116. }
  117. .breadcrumbs ul li.crumb-item a{
  118. color: #323232;
  119. }
  120. .breadcrumbs ul li.crumb-item a:hover{
  121. color: #5078cb;
  122. }
  123. /* sl_warp */
  124. .main-content .sl-wrap .sl-key>span {
  125. color: #323232;
  126. font-size: 14px;
  127. }
  128. .main-content .sl-wrap .sl-value ul li a{
  129. color: #323232;
  130. font-size: 14px;
  131. }
  132. .main-content .sl-wrap .sl-value ul li a:hover{
  133. color: #5078cb;
  134. }
  135. .main-content .sl-wrap .sl-value .sl-selected a {
  136. color: #666;
  137. text-decoration: none;
  138. }
  139. .main-content .sl-wrap .sl-value .sl-selected:HOVER a {
  140. color: #f50;
  141. }
  142. .main-content .sl-wrap .sl-value .sl-selected span {
  143. display: inline-block;
  144. position: absolute;
  145. right: 0px;
  146. top: 0px;
  147. height: 100%;
  148. width: 20px;
  149. text-align: center;
  150. background: #ccc;
  151. color: #fff;
  152. }
  153. .main-content .sl-wrap .sl-value .sl-selected:HOVER span {
  154. background: #f50;
  155. }
  156. .main-content .sl-wrap .sl-value ul {
  157. margin-bottom: 0;
  158. }
  159. .main-content .sl-wrap .sl-value ul.list-inline li {
  160. width: 16.6666%;
  161. white-space:nowrap;
  162. overflow:hidden;
  163. text-overflow:ellipsis;
  164. }
  165. .main-content .sl-wrap .sl-value ul, .main-content .sl-set .sl-value ul{
  166. min-height: 25px;
  167. }
  168. .main-content .sl-more a {
  169. position: relative;
  170. display: inline-block;
  171. margin-top: -1px;
  172. height: 30px;
  173. line-height: 30px;
  174. padding: 0 10px 0 10px;
  175. border-width: 1px;
  176. border-style: solid;
  177. border-color: #FFF #DDD #DDD;
  178. background: #fff;
  179. cursor: pointer;
  180. -webkit-transition: border-color .15s ease-in-out;
  181. -moz-transition: border-color .15s ease-in-out;
  182. transition: border-color .15s ease-in-out;
  183. }
  184. .main-content .sl-more:hover a {
  185. color: #f39800;
  186. border-color: #FFF #f39800 #f39800;
  187. text-decoration: none;
  188. }
  189. .main-content .sl-more a:focus {
  190. text-decoration: none;
  191. color: #f39800;
  192. }
  193. .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
  194. .table>thead>tr>td, .table>thead>tr>th {
  195. padding: 10px 5px;
  196. }
  197. .pagging .pagging-count a {
  198. color: white !important;
  199. text-decoration: none !important;
  200. }
  201. .parameter-selection > div:first-child {
  202. display: inline-block;
  203. position: absolute;
  204. top: 50%;
  205. left: 8px;
  206. transform: translateY(-50%);
  207. }
  208. .parameter-selection div:last-child {
  209. display: inline-block;
  210. position: absolute;
  211. top: 50%;
  212. left: 40px;
  213. transform: translateY(-50%);
  214. }
  215. .div-table-right table thead tr td{
  216. width: 140px;
  217. text-align: center;
  218. vertical-align: middle;
  219. padding: 0;
  220. }
  221. thead tr {
  222. /*background-image: url("static/img/product/th-tr-bg.png");
  223. background-repeat: repeat-x;*/
  224. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  225. color: #fff;
  226. height: 48px;
  227. }
  228. .table>thead>tr>th{
  229. padding:5px 5px;
  230. }
  231. /* scroll */
  232. ::-webkit-scrollbar {
  233. width: 10px;
  234. height: 10px;
  235. background: #ededed;
  236. }
  237. ::-webkit-scrollbar-thumb {
  238. background-color: #c1c1c1;
  239. border-radius: 5px;
  240. }
  241. ::-webkit-scrollbar-thumb:hover {
  242. background-color: #959595;
  243. }
  244. .container {
  245. position: relative;
  246. width: 1190px;
  247. }
  248. [split-dropdown] {
  249. position: relative;
  250. }
  251. [split-dropdown-toggle] {
  252. position: absolute;
  253. display: none;
  254. border: 1px solid #ccc;
  255. background: #fff;
  256. z-index: 100;
  257. top: 40px !important;
  258. }
  259. .drop-down-list a{
  260. padding: 0 10px;
  261. }
  262. .drop-down-list li:hover,.dropdown-menu li:hover a{
  263. background: #5078cb;
  264. }
  265. .drop-down-list li:hover a,.dropdown-menu li:hover a{
  266. color: #fff;
  267. }
  268. tr.properties-hint-tr > td.properties-hint-td > div {
  269. /*position: relative;
  270. left: -25em;*/
  271. text-align: left;
  272. margin-left: 38em;
  273. }
  274. /*修改样式*/
  275. .main-content .table-bordered thead tr{
  276. background: none;
  277. line-height: 40px;
  278. height: 40px;
  279. color: #323232;
  280. }
  281. .div-table-left table thead tr td,.div-table-right table thead tr td{
  282. border-bottom: none;
  283. }
  284. .div-table-left table tbody tr td,.div-table-right table tbody tr td{
  285. font-size: 12px;
  286. }
  287. .div-table-left table tr td{
  288. border-right: none;
  289. }
  290. .div-table-right table thead tr td:first-child{
  291. border-left: none;
  292. }
  293. .table-bordered{
  294. border: none;
  295. }
  296. .div-table-right table thead tr td:hover span{
  297. color: #5078cb;
  298. }
  299. .div-table-right table thead tr td:hover span.fa-angle-down{
  300. transform: rotate(-180deg);
  301. }
  302. .div-table-right table .td-properties{
  303. text-align: center;
  304. }
  305. .div-table-right table .td-properties i,.div-table-left table i{
  306. color: #5078cb;
  307. }
  308. .div-table-right table .td-properties{
  309. border-bottom: none;
  310. }
  311. .div-table-left .table{
  312. margin-bottom: 0;
  313. }
  314. .div-table-right tbody tr td:first-child{
  315. border-left: none;
  316. }
  317. .text-length-more{
  318. width: 100px;
  319. display: block;
  320. white-space: nowrap;
  321. overflow: hidden;
  322. text-overflow: ellipsis;
  323. float: left;
  324. }
  325. </style>