金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
3.1 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="true" :showIcon="true" title="发现"></lf-nav>
  4. <view>
  5. <u-tabs :list="tab_list" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="current" @change="tabChange"></u-tabs>
  6. </view>
  7. <view v-for="i of 6">
  8. <view class="lf-p-32">
  9. <view class="lf-flex">
  10. <view class="tag-father">
  11. <image src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill" class="head-img"></image>
  12. <view class="head-tag">V</view>
  13. </view>
  14. <view class="lf-flex-column lf-m-l-20">
  15. <view class="lf-font-32 lf-color-black lf-font-bold">最新FUEJFEI</view>
  16. <view class="lf-font-24 lf-color-777 lf-m-t-15">08-28 18:39</view>
  17. </view>
  18. </view>
  19. <view class="lf-font-28 lf-color-333 lf-m-t-20">
  20. 在售商品在售商品在售商品在售商品在售商品在售商品在售商品在售
  21. </view>
  22. <view class="lf-flex-wrap lf-m-t-20">
  23. <image v-for="item in 9" class="qzone-img" src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill"></image>
  24. </view>
  25. <view class="lf-m-t-30 lf-row-between lf-p-l-50 lf-p-r-50">
  26. <view class="lf-row-center">
  27. <text class="lf-iconfont icon-shoucang"></text>
  28. <text class="lf-font-24 lf-color-777 lf-m-l-10">379</text>
  29. </view>
  30. <view class="lf-row-center">
  31. <text class="lf-iconfont icon-fabu"></text>
  32. <text class="lf-font-24 lf-color-777 lf-m-l-10">3579</text>
  33. </view>
  34. <view class="lf-row-center">
  35. <text class="lf-iconfont icon-fenxiang"></text>
  36. <text class="lf-font-24 lf-color-777 lf-m-l-10">63</text>
  37. </view>
  38. </view>
  39. </view>
  40. <self-line/>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. tab_list: [
  49. {name: '最新',id: 1},
  50. {name: '最热',id: 2},
  51. {name: '已关注',id: 3},
  52. {name: '消息',id: 4}
  53. ],
  54. current: 0,
  55. }
  56. },
  57. methods: {
  58. tabChange(index){
  59. this.current = index;
  60. },
  61. }
  62. }
  63. </script>
  64. <style>
  65. page {
  66. background-color: white;
  67. }
  68. </style>
  69. <style lang="scss" scoped>
  70. .tag-father {
  71. position: relative;
  72. }
  73. .head-tag {
  74. color: white;
  75. display: flex;
  76. align-items: center;
  77. justify-content: center;
  78. text-align: center;
  79. font-size: 24rpx;
  80. width: 36rpx;
  81. height: 36rpx;
  82. border-radius: 50%;
  83. background-color: #15716E;
  84. border: 1rpx solid #FFFFFF;
  85. position: absolute;
  86. left: 66rpx;
  87. top: 70rpx;
  88. z-index: 99;
  89. }
  90. .qzone-img {
  91. width: 220rpx;
  92. height: 220rpx;
  93. border-radius: 10rpx;
  94. margin-right: 12rpx;
  95. &:nth-child(3n) {
  96. margin-right: 0;
  97. }
  98. &:nth-child(n + 4) {
  99. margin-top: 12rpx;
  100. }
  101. }
  102. .head-img {
  103. width: 100rpx;
  104. height: 100rpx;
  105. border-radius: 50%;
  106. }
  107. // tab样式
  108. /deep/.u-scroll-box {
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  113. }
  114. /deep/.u-scroll-box .u-tab-bar {
  115. background-color: #15716E!important;
  116. width: 80rpx!important;
  117. position: absolute;
  118. left: 0;
  119. bottom: -14rpx;
  120. }
  121. /deep/ .u-tab-item {
  122. font-size: 28rpx!important;
  123. }
  124. </style>