user-info.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. uni.navigateTo({
  71. url: '/pages-my/set-user-phone'
  72. })
  73. }
  74. },
  75. scrolltolower() {
  76. console.log('触底');
  77. },
  78. },
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .user-img-box {
  83. width: 144rpx;
  84. height: 144rpx;
  85. position: relative;
  86. margin: 98rpx auto 80rpx;
  87. }
  88. .user-img {
  89. width: 100%;
  90. height: 100%;
  91. }
  92. .set-iimg {
  93. position: absolute;
  94. right: 10rpx;
  95. bottom: 2rpx;
  96. width: 33rpx;
  97. height: 33rpx;
  98. }
  99. .item-info-box {
  100. padding: 0 0 0 32rpx;
  101. .item-box {
  102. padding: 0 32rpx 32rpx 0;
  103. border-bottom: 1rpx solid #EEEEEE;
  104. }
  105. }
  106. </style>