my.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="gg-container">
  3. <view class="gg-tit">
  4. <view class="gg-title">
  5. 我的吉农宝
  6. </view>
  7. <view>
  8. <image class="userinfo-avatar" :src="userInfo.avatarUrl" mode="cover"></image>
  9. <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. components: {
  17. },
  18. data() {
  19. return {
  20. userInfo: {}
  21. }
  22. },
  23. onLoad() {
  24. this.userInfo = getApp().globalData.userInfo
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. .gg-container {
  32. background-color: #fff;
  33. display: flex;
  34. flex-direction: column;
  35. }
  36. .gg-tit {
  37. width: 100%;
  38. position: relative;
  39. top: 0;
  40. height: 40vh;
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. }
  45. .gg-body {
  46. display: flex;
  47. position: absolute;
  48. bottom: 25rpx;
  49. width: 728rpx;
  50. height: 80rpx;
  51. background: linear-gradient(0deg, #90BDFF, #3F93FD, #20B9D5);
  52. border-radius: 40rpx;
  53. justify-content: center;
  54. align-items: center;
  55. .gg-body-tt {
  56. text-align: left;
  57. margin-left: 5px;
  58. width: 25%;
  59. display: flex;
  60. align-items: center;
  61. color: #FFFFFF;
  62. font-weight: bold;
  63. font-size: 30rpx;
  64. }
  65. }
  66. .content {
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. justify-content: center;
  71. }
  72. .background {
  73. border: 15px solid hsla(0, 0%, 100%, .5);
  74. background: white;
  75. background-clip: padding-box;
  76. /*从padding开始往外面裁剪背景*/
  77. }
  78. .container {
  79. display: flex;
  80. margin-left: 10px;
  81. margin-top: 10px;
  82. margin-right: 10px;
  83. align-items: flex-start;
  84. justify-content: space-between;
  85. }
  86. .gg-title {
  87. width: 100%;
  88. position: absolute;
  89. z-index: 1;
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. font-size: 40rpx;
  94. font-weight: bold;
  95. color: #FFFFFF;
  96. }
  97. .notice {
  98. margin: 20rpx;
  99. padding: 20rpx;
  100. background: #FFFFFF;
  101. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  102. border-radius: 10rpx;
  103. }
  104. .text {
  105. border-left: 15rpx solid #3857F3;
  106. padding-left: 20rpx;
  107. }
  108. </style>