setFocus.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <route lang="json5">
  2. {
  3. style: {
  4. navigationStyle: 'custom',
  5. },
  6. }
  7. </route>
  8. <template>
  9. <view>
  10. <headerTitle title="设置"></headerTitle>
  11. <view class="card-item">
  12. <view class="section" @click="nicknameBtn">
  13. <view class="section-left">更换手机号码</view>
  14. <view class="nickname">
  15. <view class="phone">+8618716785955</view>
  16. <view>
  17. <image style="width: 48rpx; height: 48rpx" src="/src/static/icon/chevron-right.svg" />
  18. </view>
  19. </view>
  20. </view>
  21. <view class="clean" @click="cleanBtn">清除本地缓存</view>
  22. </view>
  23. <view class="baby-Bottom">
  24. <wd-button @click="logOutBnt">退出登录</wd-button>
  25. </view>
  26. </view>
  27. </template>
  28. <script setup>
  29. import headerTitle from './headerTitle.vue'
  30. const cleanBtn = () => {
  31. console.log('清楚缓存')
  32. }
  33. const logOutBnt = () => {
  34. console.log('退出登录')
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. .card-item {
  39. height: calc(100vh - 280rpx);
  40. background: #f2f2f2;
  41. }
  42. .section {
  43. padding: 32rpx;
  44. background: #fff;
  45. border-bottom: 2rpx solid #f1f5f9;
  46. }
  47. .section-left {
  48. display: flex;
  49. align-items: center;
  50. height: 60rpx;
  51. }
  52. .nickname {
  53. display: flex;
  54. align-items: center;
  55. height: 60rpx;
  56. font-size: 28rpx;
  57. .phone {
  58. width: 100%;
  59. }
  60. }
  61. .clean {
  62. padding: 32rpx;
  63. margin-top: 10px;
  64. background: #fff;
  65. }
  66. .baby-Bottom {
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. height: 128rpx;
  71. padding: 16rpx 32rpx;
  72. }
  73. </style>