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

158 lines
3.9 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. <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. {name: '消息',id: 4}
  63. ],
  64. current: 0,
  65. }
  66. },
  67. methods: {
  68. tabChange(index){
  69. this.current = index;
  70. },
  71. }
  72. }
  73. </script>
  74. <style>
  75. page {
  76. background-color: white;
  77. }
  78. </style>
  79. <style lang="scss" scoped>
  80. .tag-father {
  81. position: relative;
  82. }
  83. .head-tag {
  84. color: white;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. text-align: center;
  89. font-size: 24rpx;
  90. width: 36rpx;
  91. height: 36rpx;
  92. border-radius: 50%;
  93. background-color: #15716E;
  94. border: 1rpx solid #FFFFFF;
  95. position: absolute;
  96. left: 66rpx;
  97. top: 70rpx;
  98. z-index: 99;
  99. }
  100. .qzone-img {
  101. width: 220rpx;
  102. height: 220rpx;
  103. border-radius: 10rpx;
  104. margin-right: 12rpx;
  105. &:nth-child(3n) {
  106. margin-right: 0;
  107. }
  108. &:nth-child(n + 4) {
  109. margin-top: 12rpx;
  110. }
  111. }
  112. .head-img {
  113. width: 100rpx;
  114. height: 100rpx;
  115. border-radius: 50%;
  116. }
  117. .fixed-right{
  118. position: fixed;
  119. right: 32rpx;
  120. bottom: 188rpx;
  121. width: max-content;
  122. height: max-content;
  123. padding-bottom: constant(safe-area-inset-bottom);
  124. padding-bottom: env(safe-area-inset-bottom);
  125. .fixed-btn{
  126. width: 100rpx;
  127. height: 100rpx;
  128. border-radius: 50%;
  129. background-color: #15716E;
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. color: #FFFFFF;
  134. }
  135. }
  136. // tab样式
  137. /deep/.u-scroll-box {
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  142. }
  143. /deep/.u-scroll-box .u-tab-bar {
  144. background-color: #15716E!important;
  145. width: 80rpx!important;
  146. position: absolute;
  147. left: 0;
  148. bottom: -14rpx;
  149. }
  150. /deep/ .u-tab-item {
  151. font-size: 28rpx!important;
  152. }
  153. </style>