introduction.vue 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view>
  3. <view class="bg-img flex align-center" style="background-image: url('/static/userBgImg.png');height: 450upx;"></view>
  4. <view class="container" style="margin: -60upx 20upx 20upx 20upx;">
  5. <view class="text-center">
  6. <view class="cu-avatar avatar round" :style="[{backgroundImage:'url('+ avatar +')'}]"></view>
  7. <view class="padding-tb-xs" style="font-size: 38upx;font-family: PingFang SC;font-weight: 800;color: #222222;">易烊千玺</view>
  8. <view class="flex justify-center align-center">
  9. <view class="padding-right-sm" style="font-size: 30upx;font-family: PingFang SC;font-weight: 800;color: #222222;">184056</view>
  10. <view class="tag">
  11. <image src="/static/crown.png" style="width: 22upx;height: 19upx;margin-right: 10upx;"></image>
  12. <view class="text-sm text-white">热力榜第1</view>
  13. </view>
  14. </view>
  15. </view>
  16. <view style="padding: 0 60upx;">
  17. <view>歌手简介:易烊千玺,2000年11月28日生于湖南省怀化市,中国内地男演员、歌手、舞者,演唱组合TFBOYS成员,就读于中央戏剧学院。</view>
  18. </view>
  19. <view class="flex justify-around padding">
  20. <button class="theme-bg-color text-white round cu-btn" style="width: 200upx;height: 70upx;">转发好友</button>
  21. <button class="theme-bg-color text-white round cu-btn" style="width: 200upx;height: 70upx;">生成海报</button>
  22. </view>
  23. </view>
  24. <view class="container margin-sm">
  25. <block v-for="(item, index) in boostList" :key="index">
  26. <view class="flex align-center justify-between padding-lr-sm">
  27. <view class="flex align-center" style="width: 40%;">
  28. <view class="padding-sm">
  29. <u-avatar :src="item.image" size="82"></u-avatar>
  30. </view>
  31. <view class="name">{{item.name}}</view>
  32. </view>
  33. <view class="text-sm" style="color: #757575;">{{item.type}}</view>
  34. <view class="name padding-right flex justify-end" style="width: 180upx;">{{item.hotValue}}热力值</view>
  35. </view>
  36. </block>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. avatar: '/static/avatar.png',
  45. boostList: [
  46. {image: '/static/avatar.png', name: '易烊千玺', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '12'},
  47. {image: '/static/avatar2.png', name: '许嵩', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  48. {image: '/static/avatar.png', name: '林俊杰', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '188'},
  49. {image: '/static/avatar2.png', name: '沈以诚', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '88'},
  50. {image: '/static/avatar.png', name: '颜人中', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  51. {image: '/static/avatar.png', name: '毛不易', time: '2021-6-7 10:28:46', type: '转发', hotValue: '1'},
  52. {image: '/static/avatar2.png', name: '陈奕迅', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '5'}
  53. ],
  54. }
  55. },
  56. methods: {
  57. }
  58. }
  59. </script>
  60. <style>
  61. .container {
  62. background-color: #ffffff;
  63. border-radius: 30upx;
  64. box-shadow: 10upx 10upx 60upx #d0d0d0;
  65. }
  66. .avatar {
  67. width: 145upx;
  68. height: 145upx;
  69. margin-top: -60upx;
  70. }
  71. .tag {
  72. padding: 0 10upx;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. background: linear-gradient(90deg, #7355F4 0%, #573BE5 100%);
  77. margin-top: 8upx;
  78. border-radius: 30upx;
  79. }
  80. .name {
  81. font-size: 26upx;
  82. font-family: PingFang SC;
  83. font-weight: bold;
  84. color: #111111;
  85. }
  86. </style>