index.tsx 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import UserApi from '@/apis/userApi';
  2. import Button from '@/component/button';
  3. import Label from '@/component/label';
  4. import Layout from '@/component/layout';
  5. import Padding from '@/component/padding';
  6. import UserHelper from '@/helper/userHelper';
  7. import Taro from '@tarojs/taro';
  8. import './index.scss'
  9. const LogOff = () => {
  10. return (
  11. <Layout>
  12. <Padding>
  13. <Label style={{ marginBottom: 4 }} bold size="lg" >注销须知</Label>
  14. <Label style={{ marginBottom: 4 }} type="secondary" size="sm" >1、若账号存在风险或异常行为无法注销;</Label>
  15. <Label style={{ marginBottom: 4 }} type="secondary" size="sm" >2、账号内若有未完成状态订单无法注销;</Label>
  16. <Label style={{ marginBottom: 4 }} type="secondary" size="sm" >3、本平台仅能注销在本平台注册的账号,若通过本平台申请第三方贷款或其他服务,请联系第三方注销;</Label>
  17. <Label style={{ marginBottom: 24 }} type="secondary" size="sm" >4、账号注销后无法恢复,账户内信息将无法查看,请谨慎注销。</Label>
  18. <Button onClick={() => {
  19. Taro.showModal({
  20. title: "确认注销?",
  21. success: (res) => {
  22. res.confirm && UserApi.logOffUsingPost({
  23. loading: true, errorTips: true
  24. })
  25. .checkSuccess()
  26. .then(p => {
  27. p && UserHelper.outLogin()
  28. })
  29. }
  30. })
  31. }} round={false} >熟知并同意</Button>
  32. </Padding>
  33. </Layout>
  34. )
  35. }
  36. export default LogOff;