displayCard.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <template>
  2. <div class="display-card">
  3. <a><img src=""></a>
  4. <div class="content">
  5. <div>
  6. <h4>供应商</h4>
  7. <p>111</p>
  8. </div>
  9. <div>
  10. <h4>交易金额</h4>
  11. <p>111</p>
  12. </div>
  13. <div>
  14. <h4>询价单</h4>
  15. <p>111</p>
  16. </div>
  17. <a class="enter">立即入驻</a>
  18. </div>
  19. </div>
  20. </template>
  21. <!--<script>
  22. export default {
  23. name: 'kind-category',
  24. data () {
  25. return {
  26. activeKindId: 0
  27. // kinds: {}
  28. }
  29. },
  30. methods: {
  31. showChildrenLayout (kind) {
  32. if (!kind.leaf) {
  33. this.activeKindId = kind.id
  34. if (!kind.children) {
  35. this.$emit('loadchild', kind.id)
  36. }
  37. }
  38. },
  39. hideChildrenLayout () {
  40. this.activeKindId = null
  41. }
  42. },
  43. computed: {
  44. kinds () {
  45. return this.$store.state.product.kind.kinds
  46. },
  47. kindsToShow () {
  48. // 只显示前13个根类目
  49. if (this.kinds.data) {
  50. return this.kinds.data.slice(0, 13)
  51. }
  52. }
  53. }
  54. }
  55. </script>-->
  56. <style lang="scss" scoped>
  57. /*@import '~assets/scss/variables';
  58. .kind-children .kind-children-layout{
  59. padding: 15px 0 0 0;
  60. }
  61. .kind-category {
  62. position: absolute;
  63. width: 200px;
  64. height: 477px;
  65. .kind-main {
  66. margin: 0;
  67. padding: 0;
  68. z-index: 10;
  69. .kind-main-item {
  70. height: 34.1px;
  71. line-height: 34.1px;
  72. padding: 0 10px 0 20px;
  73. background: rgba(80, 120, 203, 0.9);
  74. display: block;
  75. > a {
  76. color: #fff;
  77. > .iconfont {
  78. opacity: 0;
  79. }
  80. }
  81. &.item-more {
  82. background-color: #4c66bb;
  83. font-weight: bold;
  84. font-size: 12px;
  85. }
  86. &.active,&:hover {
  87. background-color: #a0b2eb;
  88. > a {
  89. font-weight: bold;
  90. > .iconfont {
  91. opacity: 1;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. .kind-children {
  98. position: absolute;
  99. top: 0;
  100. left: 200px;
  101. z-index: 9;
  102. box-shadow: 1px 0 3px #666;
  103. .kind-children-layout {
  104. background-color: #fff;
  105. width: 990px;
  106. height: 477px;
  107. font-size: 12px;
  108. overflow-y: auto;
  109. a {
  110. color: #000;
  111. }
  112. a:hover {
  113. color: #ff0006;
  114. }
  115. .kind-children-item-wrap {
  116. height: 100%;
  117. width: 100%;
  118. .kind-children-item {
  119. margin-bottom: $md-pad;
  120. dt {
  121. span {
  122. width: 90%;
  123. display: inline-block;
  124. font-weight: bold;
  125. overflow: hidden;
  126. clear: left;
  127. text-align: right;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. i{
  132. font-size: 12px;
  133. }
  134. }
  135. dd {
  136. ul {
  137. margin: 0;
  138. padding: 0;
  139. li {
  140. border-left: $border;
  141. margin-bottom: $pad;
  142. span {
  143. margin: 0 $sm-pad;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. }*/
  153. .display-card{
  154. position: absolute;
  155. width: 144px;
  156. height: 517px;
  157. border: 1px solid black;
  158. a{
  159. }
  160. .content{
  161. width: 130px;
  162. height: 499px;
  163. border-radius: 63px;
  164. background: blue;
  165. div{
  166. height: 110px;
  167. h4{
  168. width: 100%;
  169. text-align: center;
  170. font-size: 18px;
  171. color: #fff000;
  172. font-family: MicrosoftYaHei-Bold;
  173. }
  174. p{
  175. width: 100%;
  176. text-align: center;
  177. font-size: 26px;
  178. color: #fff;
  179. }
  180. }
  181. .enter{
  182. display: inline-block;
  183. font-family: FZSKJW--GB1-0;
  184. font-size: 25px;
  185. color: #ffffff;
  186. }
  187. }
  188. }
  189. </style>