user-info.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="flex-common-css bgc-f">
  3. <Nav title="个人资料" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  5. <view class="user-img-box">
  6. <image class="user-img" src="@/static/img/my/user-img.png" mode=""></image>
  7. <image @click="goToUrl(0)" class="set-iimg" src="@/static/img/my/pen.png" mode=""></image>
  8. </view>
  9. <view class="item-info-box box-border-box">
  10. <view class="item-box mb-32 flex-justify-space box-border-box">
  11. <view class="item-left fs-32 fc-3">
  12. 昵称
  13. </view>
  14. <view class="item-right align-items-center" @click="goToUrl(1)">
  15. <view class="fc-9198A2 fs-28 mr-6">
  16. 仰看-1883354266
  17. </view>
  18. <uni-icons color="#9198A2" type="right" size="20"></uni-icons>
  19. </view>
  20. </view>
  21. <view class="item-box mb-32 flex-justify-space box-border-box">
  22. <view class="item-left fs-32 fc-3">
  23. 性别
  24. </view>
  25. <view class="item-right align-items-center" @click="goToUrl(2)">
  26. <view class="fc-9198A2 fs-28 mr-6">
  27. 保密
  28. </view>
  29. <uni-icons color="#9198A2" type="right" size="20"></uni-icons>
  30. </view>
  31. </view>
  32. <view class="item-box mb-32 flex-justify-space box-border-box">
  33. <view class="item-left fs-32 fc-3">
  34. 更换手机号
  35. </view>
  36. <view class="item-right align-items-center" @click="goToUrl(3)">
  37. <view class="fc-9198A2 fs-28 mr-6">
  38. 188******88
  39. </view>
  40. <uni-icons color="#9198A2" type="right" size="20"></uni-icons>
  41. </view>
  42. </view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. </template>
  47. <script>
  48. import tools from '@/service/tools';
  49. export default {
  50. components: {},
  51. data() {
  52. return {};
  53. },
  54. onLoad(data) {},
  55. mounted() {},
  56. methods: {
  57. goToUrl(type) {
  58. if (type === 1) {
  59. // 昵称
  60. uni.navigateTo({
  61. url: '/pages-my/set-user-name'
  62. })
  63. } else if (type === 2) {
  64. // 性别
  65. uni.navigateTo({
  66. url: '/pages-my/set-user-sex'
  67. })
  68. } else {
  69. // 更换手机号
  70. }
  71. },
  72. scrolltolower() {
  73. console.log('触底');
  74. },
  75. },
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .user-img-box {
  80. width: 144rpx;
  81. height: 144rpx;
  82. position: relative;
  83. margin: 98rpx auto 80rpx;
  84. }
  85. .user-img {
  86. width: 100%;
  87. height: 100%;
  88. }
  89. .set-iimg {
  90. position: absolute;
  91. right: 10rpx;
  92. bottom: 2rpx;
  93. width: 33rpx;
  94. height: 33rpx;
  95. }
  96. .item-info-box {
  97. padding: 0 0 0 32rpx;
  98. .item-box {
  99. padding: 0 32rpx 32rpx 0;
  100. border-bottom: 1rpx solid #EEEEEE;
  101. }
  102. }
  103. </style>