cancellation.vue 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="app">
  3. <view class="app-body fx-h fx-bc fx-ac">
  4. <view class="app-icon fx-h fx-bc fx-ac">
  5. <u-icon name="info-circle-fill" size="80" color="#db292b" ></u-icon>
  6. </view>
  7. <view class="zx-title">将所绑定的账号注销</view>
  8. <view class="app-pannel">
  9. <view class="app-h1">注销后,您留存的信息被清空且无法找回,具体包括</view>
  10. <view class="app-item fx-r fx-bc">
  11. <view class="round"></view>
  12. 个人资料,实名认证信息等身份信息
  13. </view>
  14. <view class="app-item fx-r fx-bc">
  15. <view class="round"></view>
  16. 银行卡的快捷支付(含卡通)服务和交易
  17. </view>
  18. <view style="background: #f1f1f1;height:1px;margin: 10px 0;"></view>
  19. <view class="app-vr">请确保所有交易已完结且无纠纷,账号删除后的历史交易可能产生的资金退回权益等将视为作自动放弃。</view>
  20. </view>
  21. <view class="check-tip fx-r" @click="isRead = !isRead">
  22. <image v-if="isRead" src="/static/img/radio_buttons_btn.png"></image>
  23. <image v-else src="/static/img/radio_buttons.png"></image>请勾选<text @tap.stop="tapPrivacy">《用户注销协议》</text>即代表您已经同意用户注销协议,注销之后将无法恢复,也无备份,请慎重操作。
  24. </view>
  25. <view class="btn" @tap="zxBtn">申请注销</view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import {mapState,mapMutations} from 'vuex';
  31. export default {
  32. computed: mapState(['user','sysData']),
  33. data() {
  34. return {
  35. isRead:true
  36. }
  37. },
  38. methods: {
  39. ...mapMutations(['setUser','loginOut']),
  40. zxBtn(){
  41. this.utils.showModal("确认要注销吗",
  42. ()=>{
  43. uni.showLoading({ title: '注销中..' });
  44. this.request
  45. .post("zxUser")
  46. .then(res=>{
  47. uni.hideLoading();
  48. if(res.code == 200) {
  49. this.utils.showAlert({title:"系统提示","content":res.msg},()=>{
  50. this.loginOut();
  51. uni.$emit('loginout',1);
  52. uni.reLaunch({
  53. url:"/pages/index/home"
  54. })
  55. });
  56. } else {
  57. uni.showToast({ title:res.msg,icon:"none",mask:true});
  58. }
  59. });
  60. });
  61. },
  62. //注销协议
  63. tapPrivacy:function(){
  64. uni.navigateTo({ url:'/pages/operation/cancellation' })
  65. }
  66. }
  67. }
  68. </script>
  69. <style>
  70. .app-icon{padding-top: 40px;}
  71. .app-icon image{width: 40px;height: 40px;}
  72. .zx-title{font-weight: bold;color: #000;margin-top: 20px;}
  73. .app-pannel{background: #fff;padding: 20px;margin: 10px;border-radius: 6px;}
  74. .app-pannel .app-h1{font-size: 14px;}
  75. .app-pannel .app-item{font-size: 12px;margin: 6px 0;}
  76. .app-pannel .app-item .round{background: #db292b;width: 5px;height: 5px;border-radius: 50%;margin-right: 6px;}
  77. .app-vr{font-size: 14px;}
  78. .btn{background: #db292b;height: 40px;width: calc(100% - 20px);border-radius: 10px;text-align: center;line-height: 40px;color: #fff;}
  79. .check-tip{font-size: 12px;color: #aeaeae;padding: 20px 10px;}
  80. .check-tip image{width: 15px;height: 15px;margin: 0px 2px;}
  81. .check-tip text{color: #188aee;display: inline-block;}
  82. </style>