user.vue 756 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. <view class="user-header">
  4. <view class="header-bg"><image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/hero-grid.png" mode="widthFix"></image></view>
  5. <cu-custom>
  6. <block slot="content">我的</block>
  7. </cu-custom>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. },
  15. onLoad() {
  16. },
  17. methods: {
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. page{background-color: #f8f8f8;}
  23. .user-header{position: relative;background: linear-gradient(180deg, #87e0ff 9.04%, rgba(207, 238, 248, 0.35) 62.55%, rgba(245, 245, 245, 0) 100%);height: 560rpx;}
  24. .user-header .header-bg{position: absolute;top: 0;left: 0;right: 0;z-index: 9999;}
  25. .user-header .header-bg image{width: 100%;}
  26. </style>