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

157 lines
3.9 KiB

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