index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="my-box">
  3. <my-nav @navHeight="setNavHeight"></my-nav>
  4. <view class="my-data" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
  5. <scroll-view :scroll-y="true" :style="{'height':'calc(100% - '+(navHeight+50)+'rpx)'}">
  6. <view class="my-content">
  7. <view class="content-basic">
  8. <view class="basic-left">
  9. <image class="basic-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  10. </view>
  11. <view class="basic-right">
  12. <view class="basic-name">
  13. <view class="name-text sys-color-black-0 sys-weight-600">出江湖救急</view>
  14. <view class="name-vip">
  15. <image class="name-img" src="/static/img/my/svip.png" mode="heightFix"></image>
  16. </view>
  17. <view class="name-ok name-no">
  18. <image class="name-img" src="/static/img/my/open.png" mode="heightFix"></image>
  19. </view>
  20. </view>
  21. <view class="basic-signature sys-color-gray-9">
  22. 都能拿到你
  23. </view>
  24. <view class="basic-wallet">
  25. <view class="wallet-item">
  26. <image class="wallet-img" src="/static/img/my/wallet.png" mode="aspectFill"></image>
  27. <view class="wallet-text sys-color-gray-6">钱包</view>
  28. </view>
  29. <view class="wallet-item">
  30. <view class="wallet-text sys-color-gray-6">波点兑换</view>
  31. <image class="exchange-img" src="/static/img/my/right.png" mode="aspectFill"></image>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="content-statistics">
  37. <view class="statistics-item">
  38. <view class="statistics-num sys-color-black sys-weight-600">431
  39. <view class="statistics-dot sys-color-white">1</view>
  40. </view>
  41. <view class="statistics-text sys-color-gray-9 sys-weight-400">礼物墙</view>
  42. </view>
  43. <view class="statistics-item">
  44. <view class="statistics-num sys-color-black sys-weight-600">431
  45. <view class="statistics-dot sys-color-white">1</view>
  46. </view>
  47. <view class="statistics-text sys-color-gray-9 sys-weight-400">心动足迹</view>
  48. </view>
  49. <view class="statistics-item">
  50. <view class="statistics-num sys-color-black sys-weight-600">431
  51. <view class="statistics-dot sys-color-white">1</view>
  52. </view>
  53. <view class="statistics-text sys-color-gray-9 sys-weight-400">访客</view>
  54. </view>
  55. <view class="statistics-item">
  56. <view class="statistics-num sys-color-black sys-weight-600">
  57. 165
  58. <view class="statistics-dot sys-color-white">..</view>
  59. </view>
  60. <view class="statistics-text sys-color-gray-9 sys-weight-400">谁喜欢我</view>
  61. </view>
  62. </view>
  63. </view>
  64. </scroll-view>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. import MyNav from "@/pages/my/model/my-nav";
  70. export default {
  71. components: {MyNav},
  72. data() {
  73. return {
  74. navHeight:0
  75. }
  76. },
  77. methods: {
  78. setNavHeight(navHeight){
  79. this.navHeight=navHeight
  80. }
  81. }
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .my-box{
  86. background-image: url("/static/img/my/bg.png");
  87. background-repeat: no-repeat;//不平铺
  88. background-position: top center;//居中
  89. background-size: contain;//随容器大小
  90. height: calc(100vh - 50px - env(safe-area-inset-bottom));
  91. .my-data{
  92. background-color: #fff;
  93. border-radius: 30rpx 30rpx 0 0;
  94. padding: 40rpx 32rpx 10rpx 32rpx;
  95. .my-content{
  96. .content-basic{
  97. display: flex;
  98. justify-content: space-between;
  99. height: 168rpx;
  100. .basic-left{
  101. .basic-img{
  102. border-radius: 50%;
  103. width: 168rpx;
  104. height: 168rpx;
  105. }
  106. }
  107. .basic-right{
  108. width: calc(100% - 168rpx);
  109. padding-left: 24rpx;
  110. .basic-name{
  111. display: flex;
  112. justify-content: flex-start;
  113. height: 56rpx;
  114. align-items: center;
  115. .name-text{
  116. font-size: 40rpx;
  117. line-height: 56rpx;
  118. }
  119. .name-img{
  120. height: 28rpx;
  121. }
  122. .name-vip{
  123. margin-left: 8rpx;
  124. }
  125. .name-ok{
  126. margin-left: 8rpx;
  127. }
  128. .name-no{
  129. filter: grayscale(100%);
  130. }
  131. }
  132. .basic-signature{
  133. width: 100%;
  134. display: -webkit-box;
  135. -webkit-line-clamp: 1;
  136. -webkit-box-orient: vertical;
  137. overflow: hidden;
  138. font-size: 28rpx;
  139. height: 40rpx;
  140. line-height: 40rpx;
  141. }
  142. .basic-wallet{
  143. display: flex;
  144. justify-content: flex-start;
  145. margin-top: 24rpx;
  146. .wallet-item{
  147. padding: 0 16rpx;
  148. height: 40rpx;
  149. background: #F2F2F2;
  150. border-radius: 200rpx;
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. margin-right: 20rpx;
  155. .wallet-text{
  156. height: 40rpx;
  157. line-height: 40rpx;
  158. font-size: 26rpx;
  159. }
  160. .wallet-img{
  161. width: 40rpx;
  162. height: 40rpx;
  163. margin-right: 4rpx;
  164. }
  165. .exchange-img{
  166. width: 24rpx;
  167. height: 24rpx;
  168. margin-left: 4rpx;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. .content-statistics{
  175. margin-top: 24rpx;
  176. padding: 16rpx 40rpx 0 40rpx;
  177. display: flex;
  178. justify-content: space-between;
  179. .statistics-item{
  180. .statistics-num{
  181. position: relative;
  182. display: flex;
  183. justify-content: center;
  184. font-size: 40rpx;
  185. .statistics-dot{
  186. position: absolute;
  187. top: -16rpx;
  188. right: -12rpx;
  189. border-radius: 200rpx;
  190. width: 24rpx;
  191. height: 24rpx;
  192. line-height: 24rpx;
  193. text-align: center;
  194. font-size: 18rpx;
  195. background-color: #ED301D;
  196. }
  197. }
  198. .statistics-text{
  199. margin-top: 8rpx;
  200. font-size: 26rpx;
  201. }
  202. }
  203. }
  204. }
  205. }
  206. }
  207. </style>