index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 fs-34">
  11. {{ name }}
  12. </view>
  13. </view>
  14. <view class="function-one-box box-border-box">
  15. <view class="function-one b-rad-20 bgc-f box-border-box mb-24">
  16. </view>
  17. <view class="function-two">
  18. </view>
  19. </view>
  20. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  21. </scroll-view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. components: {},
  27. data() {
  28. return {
  29. name:'仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...仰看辉煌煌煌煌煌1111煌...'
  30. };
  31. },
  32. onLoad(data) {},
  33. mounted() {},
  34. methods: {
  35. scrolltolower() {
  36. console.log('触底');
  37. },
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .my-box{}
  43. .bg-box{
  44. width: 100%;
  45. height: 476rpx;
  46. position: fixed;
  47. top: 0;
  48. z-index: -1;
  49. }
  50. .user-img-box{
  51. width: 112rpx;
  52. height: 112rpx;
  53. position: relative;
  54. }
  55. .user-box{
  56. padding: 54rpx 32rpx 52rpx;
  57. }
  58. .user-img{
  59. width: 100%;
  60. height: 100%;
  61. }
  62. .set-iimg{
  63. position: absolute;
  64. right: 4rpx;
  65. bottom: 0;
  66. width: 33rpx;
  67. height: 33rpx;
  68. }
  69. .user-name{
  70. max-width: 388rpx;
  71. }
  72. .function-one-box{
  73. padding: 0 24rpx;
  74. }
  75. .function-one{
  76. padding: 24rpx 34rpx;
  77. }
  78. </style>