supplierList.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="supplier-content clearfix">
  3. <view class="tui-group-name" >
  4. <view class="tui-group-title">
  5. <text> 优质供应商 </text>
  6. </view>
  7. <view class="tui-sub__desc">采美正品联盟 质量保证</view>
  8. </view>
  9. <view class="swiper-goods-box">
  10. <view class="goods-box-item" v-for="(item,index) in goodArray" :key="index">
  11. <image :src="item.image" mode="" class="box-item-image"></image>
  12. <view class="box-item-mask">{{ item.title }}</view>
  13. </view>
  14. </view>
  15. <view class="f-text tui-skeleton-fillet">
  16. <image class="logo" src="../../../static/logo-c@2x.png" mode=""></image>
  17. <text class="txt"> - 采美365网 -</text>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default{
  23. name:"supplierList",
  24. props:{
  25. list:{
  26. type:Array
  27. }
  28. },
  29. data() {
  30. return{
  31. goodArray:[
  32. {image:'https://img.caimei365.com/group1/M00/03/A2/Cmis2F8VTz2AIH2JAAIDFdpGDsE352.jpg',title:'优斐斯术后护理产品搭配应用'},
  33. {image:'https://img.caimei365.com/group1/M00/03/5B/Cmis2F1bq0yATM6SAAEcNkc0bwk054.jpg',title:'肌本演绎·动能精华素'},
  34. {image:'https://img.caimei365.com/group1/M00/03/BF/Cmis2F-GZJOAdquJAADIHkLdHVE324.jpg',title:'科医人第六代王者之冠M22'},
  35. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  36. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  37. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  38. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  39. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  40. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  41. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  42. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  43. {image:'https://img.caimei365.com/group1/M00/03/38/Cmis21yweGSAdSCdAADddSdkc1E158.jpg',title:'赛诺龙360'},
  44. ]
  45. }
  46. },
  47. created(){
  48. },
  49. computed: {
  50. },
  51. methods:{
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. .supplier-content{
  57. background-color: #F7F7F7;
  58. width: 100%;
  59. height: auto;
  60. box-sizing: border-box;
  61. padding: 0 24rpx;
  62. }
  63. .tui-group-name {
  64. width: 100%;
  65. height: 92rpx;
  66. padding: 20rpx 0;
  67. }
  68. .tui-group-title{
  69. width: 100%;
  70. float: left;
  71. font-size: 34rpx;
  72. font-weight: bold;
  73. text-align: left;
  74. line-height: 49rpx;
  75. color: #333;
  76. }
  77. .tui-sub__desc {
  78. width: 100%;
  79. float: left;
  80. color: rgba(153,153,153,0.9);
  81. font-size: $font-size-26;
  82. }
  83. .swiper-goods-box{
  84. width: 100%;
  85. height: auto;
  86. float: left;
  87. .goods-box-item{
  88. width: 160rpx;
  89. height: 200rpx;
  90. float: left;
  91. margin-right: 20rpx;
  92. margin-bottom: 20rpx;
  93. background-color: #FFFFFF;
  94. &:nth-child(4n){
  95. margin-right: 0;
  96. }
  97. .box-item-image{
  98. width: 160rpx;
  99. height: 160rpx;
  100. display: block;
  101. float: left;
  102. }
  103. .box-item-mask{
  104. width: 100%;
  105. height: 40rpx;
  106. line-height: 40rpx;
  107. font-size: $font-size-20;
  108. text-align: center;
  109. color: #999999;
  110. float: left;
  111. box-sizing: border-box;
  112. padding:0 20rpx;
  113. white-space: normal;
  114. word-break: break-all;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. display: -webkit-box;
  118. -webkit-box-orient: vertical;
  119. -webkit-line-clamp: 1;
  120. }
  121. }
  122. }
  123. .f-text{
  124. width: 100%;
  125. height: auto;
  126. float: left;
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. margin-top: 24rpx;
  131. .logo{
  132. width: 80rpx;
  133. height: 80rpx;
  134. margin: 0 auto;
  135. margin: 0 6rpx;
  136. }
  137. .txt{
  138. font-size: $font-size-24;
  139. color: #666666;
  140. line-height: 60rpx;
  141. }
  142. }
  143. </style>