DelMemConfirm.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view class="page">
  3. <view class="list_info">
  4. <view class="title">为保证你的账号安全,在你提交的注销申请生效前,需同时满足以下条件</view>
  5. <view class="content">
  6. <view class="paragraph">
  7. <view class="subheading">1. 账号处于安全状态</view>
  8. <view class="subtitle">账号处于正常使用状态,无被盗风险</view>
  9. </view>
  10. <view class="paragraph">
  11. <view class="subheading">2.账号权限解除</view>
  12. <view class="subtitle">账号已解除与其他产品的授权登录或绑定关系</view>
  13. </view>
  14. <view class="paragraph">
  15. <view class="subheading">3.账号无任何纠纷,包括投诉举报</view>
  16. <view class="subtitle">本账号及通过本账号接入的第三方产品中没有未完成和/或存在争议的服务
  17. <view style="margin-top: 10rpx;">本账号无任何纠纷,包括投诉举报、侵权等</view>
  18. </view>
  19. </view>
  20. <view class="paragraph red">
  21. 注意:删除账号后,你将无法找回账号信息,你的所有数据和消息也会一并删除
  22. </view>
  23. </view>
  24. <view class="agree">
  25. <checkbox-group @change="agreeChange">
  26. <label>
  27. <checkbox value="agree" :checked="agree" :class="{ 'checked': agree, 'custom-checkbox': true }"
  28. style="display: none;" />
  29. <view class="custom-checkbox-box" :class="{ 'checked': agree }"></view>
  30. </label>
  31. </checkbox-group>
  32. <text @click="goPage()"><text style="color: #7c7c7c;padding-right: 5rpx;">我已阅读并同意</text> 注销协议</text>
  33. </view>
  34. <view class="btn_submit" @click="DelMem()" :class="{ disabled: !agree }">下一步</view>
  35. </view>
  36. <DialogBox ref="DialogBox"></DialogBox>
  37. </view>
  38. </template>
  39. <script>
  40. import DialogBox from '@/components/DialogBox/DialogBox.vue';
  41. export default {
  42. components: {
  43. DialogBox
  44. },
  45. data() {
  46. return {
  47. agree: false,
  48. };
  49. },
  50. methods: {
  51. goPage() {
  52. uni.navigateTo({
  53. url: '/pages/AboutUs/UserLogoutAgreement'
  54. })
  55. },
  56. agreeChange(e) {
  57. this.agree = e.detail.value.includes('agree');
  58. },
  59. nextStep() {
  60. if (this.agree) {
  61. uni.navigateTo({
  62. url: '/pages/my/DelMemVerify',
  63. });
  64. }
  65. },
  66. // 目前逻辑当前页面直接注销
  67. DelMem() {
  68. var that = this;
  69. // 验证原始手机号
  70. var that = this;
  71. this.$refs['DialogBox'].confirm({
  72. title: '警告',
  73. content: '1、注销账号是不可逆操作,该账号下所有一切资料一旦注销无法恢复;\n2、注销后,你账号下所有权益将被清除。',
  74. DialogType: 'inquiry',
  75. btn1: '否',
  76. btn2: '是',
  77. animation: 0
  78. }).then(() => {
  79. uni.request({
  80. url: that.$apiHost + '/My/delete', //检测是否已绑定
  81. data: {
  82. uuid: getApp().globalData.uuid
  83. },
  84. header: {
  85. 'content-type': 'application/json' //自定义请求头信息
  86. },
  87. success: (res) => {
  88. uni.removeStorageSync("wapptoken");
  89. uni.redirectTo({
  90. url: '/pages/login/login',
  91. })
  92. }
  93. })
  94. }).catch(() => {
  95. // 点击取消按钮的回调
  96. })
  97. },
  98. },
  99. };
  100. </script>
  101. <style scoped lang="scss">
  102. .page {
  103. padding: 40rpx;
  104. box-sizing: border-box;
  105. }
  106. .list_info {
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: flex-start;
  110. align-items: center;
  111. color: #1F1F1F;
  112. .title {
  113. margin-top: 60rpx;
  114. font-family: 'PingFang SC-Bold';
  115. font-weight: 400;
  116. font-size: 40rpx;
  117. margin-bottom: 34rpx;
  118. }
  119. .paragraph {
  120. margin-bottom: 36rpx;
  121. .subheading {
  122. font-size: 28rpx;
  123. font-family: 'PingFang SC-Bold';
  124. font-weight: 400;
  125. }
  126. .subtitle {
  127. margin-top: 4rpx;
  128. font-size: 24rpx;
  129. font-family: 'PingFang SC';
  130. font-weight: 400;
  131. color: #7C7C7C;
  132. }
  133. &.red {
  134. color: #FF0000;
  135. font-size: 24rpx;
  136. font-weight: 400;
  137. }
  138. }
  139. .agree {
  140. margin-top: 200rpx;
  141. text-align: left;
  142. width: 626rpx;
  143. color: #333;
  144. font-size: 28rpx;
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. font-size: 24rpx;
  149. font-family: 'PingFang SC-Medium';
  150. .custom-checkbox-box {
  151. display: inline-block;
  152. width: 28rpx;
  153. height: 28rpx;
  154. background-image: url('../../static/icon/wd_icon_gouxuan01.png'); // 未选中状态图片路径
  155. background-size: cover;
  156. margin-right: 10rpx;
  157. vertical-align: middle;
  158. }
  159. .custom-checkbox-box.checked {
  160. background-image: url('../../static/icon/wd_icon_gouxuan02.png'); // 选中状态图片路径
  161. }
  162. }
  163. .btn_submit {
  164. width: 660rpx;
  165. height: 96rpx;
  166. margin: 0 auto;
  167. margin-top: 40rpx;
  168. background: #1f1f1f;
  169. border-radius: 50rpx;
  170. font-weight: bold;
  171. font-size: 32rpx;
  172. color: #ffffff;
  173. display: flex;
  174. flex-direction: row;
  175. justify-content: center;
  176. align-items: center;
  177. &.disabled {
  178. background: #999;
  179. }
  180. }
  181. }
  182. </style>