logout.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="all">
  3. <u-navbar title="注销账号" >
  4. </u-navbar>
  5. <view class="logout-head">
  6. <img src="../../../assets/img/logout.png" alt="">
  7. <p>注销帐号</p>
  8. </view>
  9. <view class="logout-text">
  10. <p>我们很遗憾您做出注销帐号的决定,在提交申请前请您仔细阅读以下内容:</p>
  11. <p> 1.您应确保您有权决定该账户的注销事宜,不侵犯任何第三方的合法权益,如因此引发任何投诉争议,由您自行承担。</p>
  12. <p> 2.帐号注销后您无法再使用本社区的各项服务,您的个人信息及求助记录也将被清空。</p>
  13. <p> 3.如您已被国家机关调查或正处于诉讼、仲裁程序中,请注意,注销您的帐号并不代表此帐号注销前的帐号行为和相关责任得到豁免或减轻。</p>
  14. </view>
  15. <view class="logout-btn">
  16. <u-button class="logout-btn1" shape="circle" type="" @click="logout">
  17. <span>继续注销</span>
  18. </u-button>
  19. <u-button class="logout-btn2" shape="circle" type="success" @click="toMine">
  20. <span>我再想想</span>
  21. </u-button>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import * as API from '@/apis/index.js'
  27. export default {
  28. data() {
  29. return {
  30. }
  31. },
  32. methods: {
  33. toMine() {
  34. uni.navigateBack({
  35. })
  36. },
  37. logout() {
  38. uni.showLoading({
  39. title: "加载中",
  40. mask: true,
  41. })
  42. API.deleteUser().then((res) => {
  43. uni.hideLoading();
  44. this.carhelp.logoff();
  45. uni.reLaunch({
  46. url: '/pages/parents/login/login'
  47. })
  48. }).catch(error => {
  49. uni.showToast({
  50. title: error,
  51. icon: "none"
  52. })
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style>
  59. page{
  60. background-color: #fff;
  61. }
  62. </style>
  63. <style lang="scss" scoped>
  64. .collapse{
  65. background-color: #fff;
  66. padding:0 10px;
  67. }
  68. .logout-head{
  69. background-color: #FF5E5E ;
  70. padding: 20px 0;
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. img{
  75. height: 52px;
  76. width: 52px;
  77. }
  78. p{
  79. color:#fff;
  80. margin-top: 4px;
  81. line-height: 28px;
  82. }
  83. }
  84. .logout-text{
  85. padding: 24px;
  86. p{
  87. line-height: 28px;
  88. }
  89. }
  90. .logout-btn{
  91. display: flex;
  92. justify-content: space-between;
  93. padding: 0 24px;
  94. }
  95. .logout-btn1{
  96. color:#BBBBBB!important;
  97. background-color:#fff!important;
  98. flex: 0.4;
  99. span{
  100. color:#333;
  101. }
  102. }
  103. .logout-btn2{
  104. background-color:#00B962!important;
  105. flex: 0.4;
  106. border-color: #00B962!important;
  107. color:#fff!important;
  108. }
  109. </style>