index.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <view class="wrapper" @click="handlePersonalInfo">
  4. <text class="text">个人信息</text>
  5. <up-icon name="arrow-right" class="icon"></up-icon>
  6. <up-divider></up-divider>
  7. </view>
  8. <view class="wrapper">
  9. <text class="text">绑定</text>
  10. <up-icon name="arrow-right" class="icon"></up-icon>
  11. <up-divider></up-divider>
  12. </view>
  13. <view class="wrapper" @click="handlServiceAddress">
  14. <text class="text">被服务地址</text>
  15. <up-icon name="arrow-right" class="icon"></up-icon>
  16. <up-divider></up-divider>
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import {
  22. ref
  23. } from 'vue'
  24. const handlServiceAddress = () => {
  25. uni.navigateTo({
  26. url: '/pages_mine/pages/setupUser/Address'
  27. })
  28. }
  29. const handlePersonalInfo = () => {
  30. uni.navigateTo({
  31. url: '/pages_mine/pages/setupUser/personalInfo'
  32. })
  33. }
  34. </script>
  35. <style scoped>
  36. .wrapper {
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. padding: 24rpx 32rpx;
  41. }
  42. .text {
  43. flex: 1;
  44. /* 文字占据剩余空间 */
  45. font-size: 28rpx;
  46. color: #333;
  47. }
  48. .icon {
  49. margin-left: 16rpx;
  50. /* 图标与文字的间距 */
  51. color: #999;
  52. /* 图标颜色 */
  53. font-size: 28rpx;
  54. /* 与文字大小匹配 */
  55. }
  56. /* 分隔线样式调整 */
  57. .up-divider {
  58. margin: 0 32rpx;
  59. /* 与内容对齐 */
  60. }
  61. </style>