logOff.vue 3.6 KB

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