index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. page{
  2. background: #ececec;
  3. }
  4. .wrapper {
  5. }
  6. .header {
  7. height: 470rpx;
  8. width:100%;
  9. background-image: url("http://bmob-cdn-19734.b0.upaiyun.com/2018/06/13/9ef00714400c425480c36cf004ba68bb.jpg");
  10. background-size: 100%;
  11. z-index: -2;
  12. }
  13. .header .avatar{
  14. flex:1;
  15. z-index: 3;
  16. position:relative;
  17. top:60rpx;
  18. }
  19. .header .avatar image{
  20. width: 120rpx;
  21. height:120rpx;
  22. border-radius:50%;
  23. border: 1rpx solid #fff;
  24. background-color: #eee;
  25. }
  26. .header .btn{
  27. position:absolute;
  28. z-index:1;
  29. width:120rpx;
  30. height:120rpx;
  31. opacity:0;
  32. }
  33. .header .edit{
  34. display:flex;
  35. position:absolute;
  36. right:50rpx;
  37. top: 20rpx;
  38. z-index:3;
  39. color:#fff;
  40. flex-direction:column;
  41. justify-content:center;
  42. align-items:center;
  43. }
  44. .header .edit image{
  45. width: 64rpx;
  46. height: 64rpx;
  47. z-index: 5;
  48. }
  49. .edit_content{
  50. font-size: 24rpx;
  51. }
  52. .weui-cell__hd image{
  53. width:25px;
  54. height:25px;
  55. margin-right:20px;
  56. line-height:70rpx;
  57. position:relative;
  58. top:3px;
  59. }
  60. .weui_content{
  61. font-size:32rpx;
  62. color:#333;
  63. }
  64. .userName{
  65. flex:1;
  66. color:#fff;
  67. font-family:'italic';
  68. font-weight:300;
  69. text-align:center;
  70. font-size:34rpx;
  71. z-index:3;
  72. }
  73. .black{
  74. width: 100%;
  75. height: 100%;
  76. }
  77. .black::after{
  78. content:'';
  79. width: 100%;
  80. height: 470rpx;
  81. opacity: 0.5;
  82. z-index: 1;
  83. background-color: #000;
  84. position: absolute;
  85. top:0rpx;
  86. left: 0rpx;
  87. }
  88. .headerTitle{
  89. display:flex;
  90. flex-direction: column;
  91. justify-content:center;
  92. align-items:center;
  93. }
  94. .title {
  95. font-size: 50rpx;
  96. margin-bottom: 30rpx;
  97. }
  98. .flex {
  99. display: flex;
  100. flex-wrap: wrap;
  101. }
  102. .flex-item {
  103. position: relative;
  104. width: 33.33%;
  105. /*text-align: center;*/
  106. justify-content: center;
  107. }
  108. .flex-item::after {
  109. content: '';
  110. position: absolute;
  111. top: 20rpx;
  112. right: 18rpx;
  113. z-index: -1;
  114. width: 140rpx;
  115. height: 140rpx;
  116. border: 1px solid #ddd;
  117. border-radius: 8rpx;
  118. background-color: #efefef;
  119. }
  120. .flex-item::before{
  121. content: '';
  122. position: absolute;
  123. top: 30rpx;
  124. right: 10rpx;
  125. z-index: -1;
  126. width: 160rpx;
  127. height: 120rpx;
  128. border: 1px solid #ddd;
  129. border-radius: 8rpx;
  130. background-color: #efefef;
  131. }
  132. .img {
  133. width: 180rpx;
  134. height: 180rpx;
  135. }
  136. .img image {
  137. width: 100%;
  138. height: 100%;
  139. border-radius: 4rpx;
  140. }
  141. .txt {
  142. width:180rpx;
  143. text-align:left;
  144. font-size:26rpx;
  145. margin:16rpx 0 40rpx;
  146. overflow:hidden;
  147. text-overflow:ellipsis;
  148. display:-webkit-box;
  149. -webkit-line-clamp:2;
  150. -webkit-box-orient:vertical;
  151. font-family:'MingLiU';
  152. font-weight:800;
  153. }