logOff.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view>
  3. <view class="icon flex align-center justify-center">
  4. <u-icon name="info-circle-fill" color="#fe6b01" size="100"></u-icon>
  5. </view>
  6. <view class="title">
  7. 注销顺风车服务
  8. </view>
  9. <view class="shuoming">
  10. 顺风车帐号注销后,您将放弃以下权益且无法找回
  11. </view>
  12. <view class="list flex align-center justify-center">
  13. <view class="list-box">
  14. <view class="list-box-item">
  15. ·<text style="margin-left: 10rpx;">您将无法通过该帐号登录、使用顺风车平台;</text>
  16. </view>
  17. <view class="list-box-item">
  18. ·<text style="margin-left: 10rpx;">您将无法访问帐号的个人信息(包括帐号名称、昵称、头像等);</text>
  19. </view>
  20. <view class="list-box-item">
  21. ·<text style="margin-left: 10rpx;">您帐号的所有权益,将视为主动放弃</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="tishi">
  26. 点击【确认注销】即代表您已同意<text @click="goXieOff()">《用户注销协议》</text>
  27. </view>
  28. <view class="submit flex align-center justify-center">
  29. <view class="submit-box flex align-center justify-center" @click="submit()">
  30. 确认注销
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. };
  40. },
  41. methods: {
  42. //用户注销协议
  43. goXieOff() {
  44. uni.navigateTo({
  45. url: '/my/setting/offXieyi'
  46. })
  47. },
  48. //确认注销
  49. submit() {
  50. let that = this
  51. uni.showModal({
  52. title: '提示',
  53. content: '确认注销后,您将退出登录,并清除所有数据!',
  54. cancelText: '我再想想',
  55. confirmText: '确认注销',
  56. confirmColor: '#346EF6',
  57. complete(ret) {
  58. if (ret.confirm) {
  59. let data = {
  60. state: 8,
  61. userId: uni.getStorageSync('userId'),
  62. title: '注销账号',
  63. content: '我要注销账号'
  64. }
  65. that.$Request.postJson('/app/message/insertMessage', data).then(res => {
  66. if (res.code == 0) {
  67. uni.showModal({
  68. title: '提示',
  69. content: '注销申请已提交,等待系统确认',
  70. showCancel: false,
  71. confirmText: '确认',
  72. confirmColor: '#346EF6',
  73. complete(ret) {
  74. // uni.clearStorage();
  75. uni.removeStorageSync("userId")
  76. uni.removeStorageSync("token")
  77. uni.switchTab({
  78. url: '/pages/my/my'
  79. })
  80. }
  81. })
  82. } else {
  83. uni.showToast({
  84. title: res.msg,
  85. icon: 'none'
  86. })
  87. }
  88. })
  89. }
  90. }
  91. })
  92. },
  93. },
  94. }
  95. </script>
  96. <style lang="scss">
  97. .icon {
  98. width: 100%;
  99. padding-top: 100rpx;
  100. }
  101. .title {
  102. width: 100%;
  103. text-align: center;
  104. margin-top: 20rpx;
  105. font-weight: bold;
  106. font-size: 40rpx;
  107. }
  108. .shuoming {
  109. font-size: 16rpx;
  110. color: #333333;
  111. margin-top: 20rpx;
  112. text-align: center;
  113. }
  114. .list {
  115. width: 100%;
  116. // height: 100rpx;
  117. margin-top: 20rpx;
  118. .list-box {
  119. padding: 20rpx;
  120. width: 686rpx;
  121. height: 100%;
  122. border-radius: 24rpx;
  123. background: #ffffff;
  124. .list-box-item {
  125. margin-top: 10rpx;
  126. font-size: 16rpx;
  127. color: #333333;
  128. }
  129. }
  130. }
  131. .tishi {
  132. width: 100%;
  133. text-align: center;
  134. color: #999999;
  135. margin-top: 40rpx;
  136. font-size: 18rpx;
  137. text {
  138. color: #fe6b01;
  139. }
  140. }
  141. .submit {
  142. width: 100%;
  143. height: 88rpx;
  144. margin-top: 60rpx;
  145. .submit-box {
  146. width: 686rpx;
  147. height: 88rpx;
  148. border-radius: 16rpx;
  149. color: #ffffff;
  150. background-color: #fe6b01;
  151. }
  152. }
  153. </style>