setting.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="container">
  3. <view class="menu-item-box" @click="onUpdateTel" v-if="false">
  4. <view class="lebal-box">
  5. 手机号 123xxxxxx4567
  6. </view>
  7. <view class="suffix-box">
  8. <view class="desc">
  9. 更换绑定手机号
  10. </view>
  11. <view class="iconfont icon-chevron-right"></view>
  12. </view>
  13. </view>
  14. <view class="menu-item-box" @click="onUpdatePwd" v-if="false">
  15. <view class="lebal-box">
  16. 修改密码
  17. </view>
  18. <view class="suffix-box">
  19. <view class="iconfont icon-chevron-right"></view>
  20. </view>
  21. </view>
  22. <view class="menu-item-box" @click="onInfoExport" v-if="false">
  23. <view class="lebal-box">
  24. 个人信息副本导出
  25. </view>
  26. <view class="suffix-box">
  27. <view class="iconfont icon-chevron-right"></view>
  28. </view>
  29. </view>
  30. <view class="main-btn" @click="onRemoveInfo">
  31. <image :src="`${FILE_URL}/delete.png`"></image>
  32. <text>删除个人信息</text>
  33. </view>
  34. <view class="main-btn" @click="onCancelAccount">
  35. <image :src="`${FILE_URL}/user-delete.png`"></image>
  36. <text>账号注销</text>
  37. </view>
  38. </view>
  39. </template>
  40. <script setup>
  41. import configService from '@/utils/baseurl.js'
  42. const FILE_URL = configService.FILE_URL;
  43. function onUpdateTel() {
  44. uni.navigateTo({
  45. url: '/pages/setting/updateTel/updateTel'
  46. })
  47. }
  48. function onUpdatePwd() {
  49. uni.navigateTo({
  50. url: '/pages/setting/updatePwd/updatePwd'
  51. })
  52. }
  53. function onInfoExport() {
  54. uni.navigateTo({
  55. url: '/pages/setting/infoExport/infoExport'
  56. })
  57. }
  58. function onRemoveInfo() {
  59. uni.navigateTo({
  60. url: '/pages/setting/removeInfo/removeInfo'
  61. })
  62. }
  63. function onCancelAccount() {
  64. uni.navigateTo({
  65. url: '/pages/setting/cancelAccount/cancelAccount'
  66. })
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. $certificate-width: 220rpx;
  71. $certificate-height: 300rpx;
  72. .container {
  73. height: 100vh;
  74. width: 100vw;
  75. padding: 0 20rpx;
  76. padding-top: 20rpx;
  77. background: rgb(141, 204, 255);
  78. background: -moz-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  79. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  80. background: -o-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  81. background: -ms-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  82. background: linear-gradient(180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  83. .main-btn {
  84. width: 85%;
  85. background-color: #006af4;
  86. border-radius: 20rpx;
  87. margin: 30rpx auto;
  88. padding: 40rpx 30rpx;
  89. display: flex;
  90. align-items: center;
  91. image {
  92. width: 100rpx;
  93. height: 100rpx;
  94. flex: 0 0 auto;
  95. }
  96. text {
  97. margin-left: 20rpx;
  98. color: #fff;
  99. font-size: 40rpx;
  100. }
  101. }
  102. .menu-item-box {
  103. padding: 20rpx 30rpx;
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. background-color: #fff;
  108. margin-bottom: 50rpx;
  109. border: 1px solid #E3E3E3;
  110. border-radius: 10px;
  111. .lebal-box {
  112. width: 60%;
  113. }
  114. .suffix-box {
  115. display: flex;
  116. align-items: center;
  117. justify-content: flex-end;
  118. text-align: end;
  119. }
  120. &:active {
  121. background: #e0e0e0;
  122. /* 按下的背景色 */
  123. }
  124. }
  125. }
  126. </style>