金诚优选前端代码
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.

132 lines
3.3 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" @click="$url('/pages/user/my/my')">
  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" @click="$url('/pages/discover/discoverdetails')">
  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. <lf-tabbar></lf-tabbar>
  43. </view>
  44. </template>
  45. <script>
  46. import lfTabbar from '@/components/lf-tabbar/lf-tabbar.vue';
  47. export default {
  48. components: {
  49. lfTabbar
  50. },
  51. data() {
  52. return {
  53. tab_list: [
  54. {name: '最新',id: 1},
  55. {name: '最热',id: 2},
  56. {name: '已关注',id: 3},
  57. {name: '消息',id: 4}
  58. ],
  59. current: 0,
  60. }
  61. },
  62. methods: {
  63. tabChange(index){
  64. this.current = index;
  65. },
  66. }
  67. }
  68. </script>
  69. <style>
  70. page {
  71. background-color: white;
  72. }
  73. </style>
  74. <style lang="scss" scoped>
  75. .tag-father {
  76. position: relative;
  77. }
  78. .head-tag {
  79. color: white;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. text-align: center;
  84. font-size: 24rpx;
  85. width: 36rpx;
  86. height: 36rpx;
  87. border-radius: 50%;
  88. background-color: #15716E;
  89. border: 1rpx solid #FFFFFF;
  90. position: absolute;
  91. left: 66rpx;
  92. top: 70rpx;
  93. z-index: 99;
  94. }
  95. .qzone-img {
  96. width: 220rpx;
  97. height: 220rpx;
  98. border-radius: 10rpx;
  99. margin-right: 12rpx;
  100. &:nth-child(3n) {
  101. margin-right: 0;
  102. }
  103. &:nth-child(n + 4) {
  104. margin-top: 12rpx;
  105. }
  106. }
  107. .head-img {
  108. width: 100rpx;
  109. height: 100rpx;
  110. border-radius: 50%;
  111. }
  112. // tab样式
  113. /deep/.u-scroll-box {
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  118. }
  119. /deep/.u-scroll-box .u-tab-bar {
  120. background-color: #15716E!important;
  121. width: 80rpx!important;
  122. position: absolute;
  123. left: 0;
  124. bottom: -14rpx;
  125. }
  126. /deep/ .u-tab-item {
  127. font-size: 28rpx!important;
  128. }
  129. </style>