user-content.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <template>
  2. <view class="user-content-box">
  3. <view class="content-top">
  4. <view class="top-left">“</view>
  5. <view class="top-right">
  6. <image class="right-img" mode="aspectFill" src="/static/img/index/authentication.png" ></image>
  7. <view class="right-text sys-color-white sys-weight-400">108喜欢</view>
  8. </view>
  9. </view>
  10. <view class="user-signature sys-color-white sys-weight-400">崇尚自由,热爱生活,足以!</view>
  11. <view class="user-tag">
  12. <view class="tag-item" v-for="i in 5">
  13. <image class="tag-img" mode="aspectFill" src="/static/img/index/tag-img.png" ></image>
  14. <view class="tag-text sys-color-gray-3 sys-weight-400">认识朋友</view>
  15. </view>
  16. </view>
  17. <view class="user-wire"></view>
  18. <view class="gift-box">
  19. <view class="gift-title">
  20. <view class="gift-title-left sys-weight-600">心动礼物</view>
  21. <view class="gift-title-right">
  22. <view class="gift-right-text sys-color-white sys-weight-400">全部</view>
  23. <image class="gift-right-img" mode="aspectFill" src="/static/img/index/authentication.png" ></image>
  24. </view>
  25. </view>
  26. <view class="gift-list">
  27. <view class="gift-item" v-for="giftItem in giftList">
  28. <image class="gift-item-img" :class="{'gift-item-img-gray':giftItem.num<=0}" mode="aspectFill" :src="giftItem.url" ></image>
  29. <view class="gift-num sys-color-white" v-if="giftItem.num>0">
  30. <text>X</text>
  31. <text>{{giftItem.num}}</text>
  32. </view>
  33. <view class="gift-but sys-background-yellow sys-color-black sys-weight-500" v-else>点亮</view>
  34. </view>
  35. </view>
  36. <view class="dynamic-list">
  37. <view class="dynamic-item">
  38. <view class="dynamic-title">
  39. <view class="dynamic-title-left">
  40. <text class="dynamic-title-text sys-color-white sys-weight-400">12</text>
  41. <text class="dynamic-title-text sys-color-white sys-weight-400">04月</text>
  42. <text class="dynamic-title-text sys-color-white sys-weight-400">2020年</text>
  43. </view>
  44. <view class="dynamic-title-right">
  45. <image class="dynamic-right-img" mode="aspectFill" src="/static/img/index/dynamic-all.png" ></image>
  46. </view>
  47. </view>
  48. <view class="dynamic-data">
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. name: "user-content",
  58. components: {},
  59. props: {},
  60. data() {
  61. return {
  62. giftList:[
  63. {'num':1,'url':'/static/img/temporary/gift1.png'},
  64. {'num':0,'url':'/static/img/temporary/gift2.png'},
  65. {'num':0,'url':'/static/img/temporary/gift3.png'},
  66. {'num':1,'url':'/static/img/temporary/gift1.png'},
  67. {'num':0,'url':'/static/img/temporary/gift2.png'},
  68. {'num':0,'url':'/static/img/temporary/gift3.png'},
  69. ]
  70. }
  71. },
  72. watch: {},
  73. mounted() {
  74. },
  75. methods: {}
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .user-content-box{
  80. background: #333333;
  81. padding: 40rpx 28rpx;
  82. .content-top{
  83. display: flex;
  84. justify-content: space-between;
  85. .top-left{
  86. font-size: 48rpx;
  87. color: rgba(255,255,255,0.3);
  88. }
  89. .top-right{
  90. display: flex;
  91. justify-content: center;
  92. .right-img{
  93. width: 36rpx;
  94. height: 36rpx;
  95. margin-right: 6rpx;
  96. }
  97. .right-text{
  98. font-size:26rpx ;
  99. }
  100. }
  101. }
  102. .user-signature{
  103. font-size: 32rpx;
  104. }
  105. .user-tag{
  106. display: flex;
  107. flex-wrap: wrap;
  108. margin-bottom: 62rpx;
  109. .tag-item{
  110. margin-top: 26rpx;
  111. margin-right: 20rpx;
  112. border-radius: 200rpx;
  113. background: rgba(255,255,255,0.4);
  114. display: flex;
  115. justify-content: center;
  116. padding: 6rpx 12rpx;
  117. .tag-img{
  118. width: 32rpx;
  119. height: 32rpx;
  120. margin-right: 8rpx;
  121. }
  122. .tag-text{
  123. font-size: 28rpx;
  124. height: 32rpx;
  125. line-height: 32rpx;
  126. }
  127. }
  128. }
  129. .user-wire{
  130. height: 2rpx;
  131. border-radius: 200rpx;
  132. opacity: 0.2;
  133. background-color: #4D4C4C;
  134. }
  135. .gift-box{
  136. margin-top: 64rpx;
  137. .gift-title{
  138. height: 56rpx;
  139. display: flex;
  140. justify-content: space-between;
  141. .gift-title-left{
  142. font-size: 40rpx;
  143. line-height: 56rpx;
  144. height: 56rpx;
  145. color: rgba(255,255,255,0.4);
  146. }
  147. .gift-title-right{
  148. display: flex;
  149. justify-content: center;
  150. .gift-right-text{
  151. font-size: 24rpx;
  152. margin-right: 8rpx;
  153. }
  154. .gift-right-img{
  155. height: 24rpx;
  156. width: 24rpx;
  157. }
  158. }
  159. }
  160. .gift-list{
  161. margin-top: 32rpx;
  162. display: flex;
  163. justify-content: flex-start;
  164. overflow-y: scroll;
  165. .gift-item{
  166. border-radius: 16rpx;
  167. background: #3D3D3D;
  168. width: 198rpx;
  169. height: 232rpx;
  170. margin-right: 14rpx;
  171. .gift-but{
  172. margin-left: 43rpx;
  173. width: 112rpx;
  174. height: 44rpx;
  175. line-height: 44rpx;
  176. font-size:28rpx ;
  177. border-radius: 200rpx;
  178. text-align: center;
  179. }
  180. .gift-num{
  181. text-align: center;
  182. font-size: 20rpx;
  183. height: 28rpx;
  184. line-height: 28rpx;
  185. text:first-child{
  186. font-size: 16rpx;
  187. }
  188. text:last-child{
  189. font-size: 30rpx;
  190. }
  191. }
  192. .gift-item-img{
  193. margin: 32rpx 49rpx 28rpx 49rpx;
  194. width: 100rpx;
  195. height: 100rpx;
  196. }
  197. .gift-item-img-gray{
  198. filter: grayscale(100%);
  199. }
  200. }
  201. .gift-item:last-child{
  202. margin-right: 0;
  203. }
  204. }
  205. }
  206. .dynamic-list{
  207. margin-top: 44rpx;
  208. .dynamic-item{
  209. margin-top: 16rpx;
  210. .dynamic-title{
  211. display: flex;
  212. justify-content: space-between;
  213. .dynamic-title-left{
  214. display:table-cell;
  215. vertical-align:bottom;
  216. .dynamic-title-text{
  217. font-size: 28rpx;
  218. }
  219. .dynamic-title-text:first-child{
  220. font-size: 48rpx;
  221. margin-right: 12rpx;
  222. }
  223. }
  224. .dynamic-title-right{
  225. .dynamic-right-img{
  226. width: 6rpx;
  227. height: 26rpx;
  228. }
  229. }
  230. }
  231. }
  232. }
  233. }
  234. </style>