index.vue 2.0 KB

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