index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="my-box flex-common-css">
  3. <Nav title="我的" :leftShow='false' titleColor="#333" bgckgroundBox='transparent'></Nav>
  4. <image class="bg-box" src="@/static/img/my/bg.png" mode=""></image>
  5. <view class="user-box align-items-center">
  6. <view class="user-img-box mr-24">
  7. <image class="user-img" src="@/static/img/my/user-img.png" mode=""></image>
  8. <image class="set-iimg" src="@/static/img/my/pen.png" mode=""></image>
  9. </view>
  10. <view class="user-name text-overflow-ellipsis-one">
  11. {{ name }}
  12. </view>
  13. </view>
  14. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  15. </scroll-view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. components: {},
  21. data() {
  22. return {
  23. name:'仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...'
  24. };
  25. },
  26. onLoad(data) {},
  27. mounted() {},
  28. methods: {
  29. scrolltolower() {
  30. console.log('触底');
  31. },
  32. },
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .my-box{}
  37. .bg-box{
  38. width: 100%;
  39. height: 476rpx;
  40. position: fixed;
  41. top: 0;
  42. z-index: -1;
  43. }
  44. .user-img-box{
  45. width: 112rpx;
  46. height: 112rpx;
  47. position: relative;
  48. }
  49. .user-box{
  50. padding: 54rpx 32rpx 52rpx;
  51. }
  52. .user-img{
  53. width: 100%;
  54. height: 100%;
  55. }
  56. .set-iimg{
  57. position: absolute;
  58. right: 4rpx;
  59. bottom: 0;
  60. width: 33rpx;
  61. height: 33rpx;
  62. }
  63. .user-name{
  64. max-width: 388rpx;
  65. }
  66. </style>