supplierList.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 list" :key="index" @click="NavToDetailPage(item)">
  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. supplierList:[]
  32. }
  33. },
  34. created(){
  35. this.initData(this.list)
  36. },
  37. computed: {
  38. },
  39. methods:{
  40. initData(res){
  41. this.supplierList = res
  42. },
  43. NavToDetailPage(item) {//跳转
  44. this.$api.navigateTo(`/supplier/pages/user/my-shop?shopId=${item.linkParam.id}`)
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .supplier-content{
  51. background-color: #F7F7F7;
  52. width: 100%;
  53. height: auto;
  54. box-sizing: border-box;
  55. padding: 0 24rpx;
  56. }
  57. .tui-group-name {
  58. width: 100%;
  59. height: 92rpx;
  60. padding: 20rpx 0;
  61. }
  62. .tui-group-title{
  63. width: 100%;
  64. float: left;
  65. font-size: 34rpx;
  66. font-weight: bold;
  67. text-align: left;
  68. line-height: 49rpx;
  69. color: #333;
  70. }
  71. .tui-sub__desc {
  72. width: 100%;
  73. float: left;
  74. color: rgba(153,153,153,0.9);
  75. font-size: $font-size-26;
  76. }
  77. .swiper-goods-box{
  78. width: 100%;
  79. height: auto;
  80. float: left;
  81. .goods-box-item{
  82. width: 160rpx;
  83. height: 200rpx;
  84. float: left;
  85. margin-right: 20rpx;
  86. margin-bottom: 20rpx;
  87. background-color: #FFFFFF;
  88. &:nth-child(4n){
  89. margin-right: 0;
  90. }
  91. .box-item-image{
  92. width: 160rpx;
  93. height: 160rpx;
  94. display: block;
  95. float: left;
  96. }
  97. .box-item-mask{
  98. width: 100%;
  99. height: 40rpx;
  100. line-height: 40rpx;
  101. font-size: $font-size-20;
  102. text-align: center;
  103. color: #999999;
  104. float: left;
  105. box-sizing: border-box;
  106. padding:0 20rpx;
  107. white-space: normal;
  108. word-break: break-all;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. display: -webkit-box;
  112. -webkit-box-orient: vertical;
  113. -webkit-line-clamp: 1;
  114. }
  115. }
  116. }
  117. .f-text{
  118. width: 100%;
  119. height: auto;
  120. float: left;
  121. display: flex;
  122. flex-direction: column;
  123. align-items: center;
  124. margin-top: 24rpx;
  125. .logo{
  126. width: 80rpx;
  127. height: 80rpx;
  128. margin: 0 auto;
  129. margin: 0 6rpx;
  130. }
  131. .txt{
  132. font-size: $font-size-24;
  133. color: #666666;
  134. line-height: 60rpx;
  135. }
  136. }
  137. </style>