index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="circle-box">
  3. <view class="circle-title" :style="[{ 'margin-top': statusBarH + 'px'}]">
  4. <view class="title-left">
  5. <view class="title-text sys-height-44 sys-color-gray-9 sys-weight-400" @click="setTitleTag(0)" :class="{'title-text-default':tagNum===0}">好友</view>
  6. <view class="title-text sys-height-44 sys-color-gray-9 sys-weight-400" @click="setTitleTag(1)" :class="{'title-text-default':tagNum===1}">附近</view>
  7. <view class="title-text sys-height-44 sys-color-gray-9 sys-weight-400" @click="setTitleTag(2)" :class="{'title-text-default':tagNum===2}">推荐</view>
  8. </view>
  9. <view class="title-right">
  10. <view class="title-icon">
  11. <image class="title-img" src="/static/img/circle/Group-100345@2x.png"></image>
  12. </view>
  13. <view class="title-icon">
  14. <image class="title-img" src="/static/img/circle/Group-100344@2x.png"></image>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="circle-content" >
  19. <scroll-view :scroll-y="true" :style="{'height':'calc(100vh - '+navHeight+'rpx - var(--window-bottom))'}">
  20. <my-praise></my-praise>
  21. </scroll-view>
  22. </view>
  23. <view class="circle-add sys-background-yellow">
  24. <image class="circle-add-img" src="/static/img/circle/cancel-icon-2@2x.png"></image>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import EnNav from "@/components/en-utils/en-nav/en-nav";
  30. import MyPraise from "@/pages/my/model/my-praise";
  31. export default {
  32. components: {MyPraise, EnNav},
  33. data() {
  34. return {
  35. statusBarH:0,
  36. tagNum:0,
  37. navHeight:44
  38. }
  39. },
  40. methods: {
  41. setTitleTag(num){
  42. if(num!==this.tagNum){
  43. this.tagNum=num
  44. }
  45. }
  46. },
  47. created() {
  48. uni.getSystemInfo({
  49. success: (e) =>{
  50. this.statusBarH = e.statusBarHeight
  51. this.navHeight=(50+this.statusBarH)*2
  52. //e.safeArea.bottom 底部安全距离
  53. }
  54. })
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .circle-box{
  60. .circle-title{
  61. display: flex;
  62. justify-content: space-between;
  63. padding:22rpx 36rpx;
  64. .title-left{
  65. display: flex;
  66. justify-content: flex-start;
  67. .title-text{
  68. font-size: 32rpx;
  69. margin-right: 56rpx;
  70. }
  71. .title-text-default{
  72. font-weight: 600;
  73. color: #141414;
  74. }
  75. }
  76. .title-right{
  77. display: flex;
  78. justify-content: flex-end;
  79. .title-img{
  80. width: 44rpx;
  81. height: 44rpx;
  82. margin-left: 40rpx;
  83. }
  84. }
  85. }
  86. .circle-content{
  87. padding: 0 32rpx;
  88. .circle-item{
  89. margin-top: 32rpx;
  90. margin-bottom: 8rpx;
  91. display: flex;
  92. justify-content: space-between;
  93. .item-left{
  94. width: 80rpx;
  95. height: 80rpx;
  96. position: relative;
  97. .item-head{
  98. width: 80rpx;
  99. height: 80rpx;
  100. border-radius: 50%;
  101. }
  102. .item-auth{
  103. width: 18rpx;
  104. height: 18rpx;
  105. position: absolute;
  106. bottom: 0;
  107. right: 8rpx;
  108. z-index: 10;
  109. }
  110. }
  111. .item-right{
  112. padding-left: 20rpx;
  113. width: calc(100vw - 144rpx);
  114. .circle-top-data{
  115. display: flex;
  116. justify-content: space-between;
  117. .circle-top-left{
  118. .circle-top-left-title{
  119. display: flex;
  120. justify-content: flex-start;
  121. align-items: center;
  122. .left-title-text{
  123. font-size: 32rpx;
  124. margin-right: 8rpx;
  125. }
  126. .left-title-vip-img{
  127. height: 28rpx;
  128. }
  129. }
  130. .left-title-time{
  131. margin-top: 8rpx;
  132. line-height: 34rpx;
  133. font-size: 24rpx;
  134. }
  135. }
  136. .circle-top-right{
  137. height: 40rpx;
  138. border-radius: 200rpx;
  139. border: 2rpx solid #141414;
  140. padding: 8rpx 16rpx;
  141. display: flex;
  142. justify-content: space-between;
  143. .circle-top-right-img{
  144. width: 40rpx;
  145. height: 40rpx;
  146. margin-right: 8rpx;
  147. }
  148. .circle-top-right-text{
  149. font-size: 28rpx;
  150. line-height: 40rpx;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. .circle-add{
  158. position: absolute;
  159. bottom: 70rpx;
  160. right: 22rpx;
  161. border-radius: 50%;
  162. width: 88rpx;
  163. height: 88rpx;
  164. display: flex;
  165. justify-content: center;
  166. align-items: center;
  167. .circle-add-img{
  168. width: 40rpx;
  169. height: 40rpx;
  170. }
  171. }
  172. }
  173. </style>