user-cancellation.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!DOCTYPE html>
  2. <html class="h100p">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>个人中心-注销账号-创业帮</title>
  6. <meta name="keywords" content="个人中心-注销账号-创业帮">
  7. <meta name="description" content="个人中心-注销账号-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="个人中心-注销账号-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. <style>
  17. .van-dialog{width:80%;}
  18. .cancellation_panel p{font-size:0.336667rem;}
  19. .cancellation_title{height: 4rem; background-image: linear-gradient(to bottom, #FFD500, #FFD500 30%, #f6f5f8);}
  20. .agreen .van-checkbox__icon--checked .van-icon{background-color: #FFD500;border-color: #FFD500;color:#333;}
  21. .cancellation_btn{width: 100%;margin: .533333rem auto;bottom:0;padding:0 .64rem; box-sizing: border-box;}
  22. .cancellation_btn button{border-radius: .213333rem; background-color: #FFD500 !important;color:#333 !important;}
  23. </style>
  24. </head>
  25. <body class="bgc-back h100p nopb login pt0 ovh" style="padding-top:0;">
  26. <div class="rel h100p" id="app" v-cloak>
  27. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="注销账号" v-if="toptitleisshow" @click-left="goback">
  28. <template #left> <img src="./static/images/left.png" alt=""></template>
  29. </van-nav-bar>
  30. <div class="strong_colorroll ovh-x" ref="wrapper1">
  31. <div class="cancellation_title pb32"><img src="./static/images/user-cancellation.png" alt="" style="width:100%;"></div>
  32. <div class="cancellation_panel bgcfff pl16 pr16 pt16 pb16">
  33. <div class="condition f14 mt">
  34. <div class="title pb8">为保障您的账号权益不受影响,需符合以下条件才可注销:</div>
  35. <p>1、未实名创客;</p>
  36. <p>2、已实名创客,无开通商户;</p>
  37. <p>3、近7天未在商城下单过商品;</p>
  38. <p>4、名下无未绑定机具、机具券,无未申请的循环机;</p>
  39. </div>
  40. <div class="condition f14">
  41. <div class="title pb8 mt16">账号注销后将放弃以下权益:</div>
  42. <p>1、账号无法登录;</p>
  43. <p>2、注销后,账号下收益、余额等资产将被全部清空,无法恢复;</p>
  44. <p>3、创客身份、账户信息、推荐码自动清空、无法恢复;</p>
  45. <p>4、历史机具产生的交易、收益等权益自动清空,无法恢复;</p>
  46. <p>5、个人/团队产生的数据自动清空,无法恢复;</p>
  47. </div>
  48. </div>
  49. <div class="cancellation_btn abs">
  50. <div class="df">
  51. <van-checkbox class="agreen mt52" v-model="ischecked">我已阅读并同意注销条款</van-checkbox>
  52. </div>
  53. <van-button class="mt16" type="primary" block color="#FFD500" :disabled="!ischecked" @click="cancellationfn">提交注销</van-button>
  54. </div>
  55. </div>
  56. <van-dialog style="border-radius:4px;" v-model="cancellation" :before-close="isclose" title="确认注销?" confirm-button-color="#ff502a" show-cancel-button @confirm="diaolignextbtn">
  57. <template #default>
  58. <div class="unbindpop">
  59. <div class="f12" style="padding:12px 20px 0 !important;" v-if="errinfo === ''">注销成功之后,您在创业帮平台所有权益将被清空。</div>
  60. <div class="f12" style="padding:12px 20px 0 !important;color:red;" v-else>{{errinfo}}</div>
  61. <div class="unbindcard tc" @click.stop style="padding:0 !important;width:100%;font-size:12px;">
  62. <input type="text" v-model="Mobile" placeholder="请输入创客手机号码!" @focus="errinfo = ''">
  63. </div>
  64. </div>
  65. </template>
  66. </van-dialog>
  67. </div>
  68. <script src="./static/js/klm-vv.min.js"></script>
  69. <script src="./static/js/appfunc.min.js"></script>
  70. <script src="./static/js/klm-axios-config.js"></script>
  71. <script src="./static/js/publicfn.js"></script>
  72. <script>
  73. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  74. // 可以通过下面的方式手动注册
  75. Vue.use(vant.Lazyload);
  76. // 在 #app 标签下渲染一个按钮组件
  77. let app = new Vue({
  78. el: '#app',
  79. data() {
  80. return {
  81. aaaa:true,
  82. cancellation:false,
  83. Mobile:'',
  84. toptitleisshow,
  85. articleinfo:{
  86. Title: '',
  87. Contents:''
  88. },
  89. ischecked:false,
  90. errinfo:'',
  91. };
  92. },
  93. created() {
  94. },
  95. mounted(){
  96. this.$nextTick(() => {
  97. this.$refs.wrapper1.style.height = `${document.documentElement.clientHeight - 55}px`;
  98. });
  99. },
  100. methods: {
  101. isclose(action, done){
  102. if(action === 'confirm'){
  103. return done(false);
  104. }else{
  105. this.errinfo = '';
  106. return done();
  107. };
  108. },
  109. async diaolignextbtn(){
  110. if(!verificationphonenumber(this.Mobile)){
  111. return tips('手机号码格式错误');
  112. };
  113. const UserId = PublicLib.getCookieInfo('userId');
  114. const res = await getRequest('api/v1/users/delete?t='+Math.random(6),JSON.stringify({UserId,Mobile:this.Mobile}));
  115. if(res.status !== '1'){this.errinfo = res.info; return};
  116. tips('创客注销成功!');
  117. setTimeout(()=>{
  118. this.loginout();
  119. },1000);
  120. },
  121. goback(){
  122. PublicLib.GoBack({Level:1});
  123. },
  124. cancellationfn(){
  125. this.cancellation = true;
  126. },
  127. //- 退出
  128. loginout(){
  129. const id = PublicLib.getCookieInfo('userId');
  130. postRequest('api/v1/users/logout?t='+Math.random(6),JSON.stringify({UserId:id}));
  131. PublicLib.Goto({Url:'user-login'});
  132. PublicLib.putCookieInfo('userId', '');
  133. },
  134. }
  135. });
  136. </script>
  137. </body>
  138. </html>