Blame view

admin-web-master/src/api/privacy.js 1.28 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  import request from '@/utils/request'
  
  // 发送二次隐私认证验证码
  export function getPrivacyCode(data) {
      return request({
          url: 'admin/getPrivacyCode',
          method: 'post',
          data
      })
  }
  
  // 填写验证码点击确认
  export function verifyPrivacyCode(data) {
      return request({
          url: 'admin/verifyPrivacyCode',
          method: 'post',
          data
      })
  }
  
  // 获取管理员手机号
  export function getAdminPhone(data) {
      return request({
          url: 'admin/getAdminPhone',
          method: 'post',
          data
      })
  }
  
  // 获取旧手机号
  export function getCurrentUserPhone(data) {
      return request({
          url: 'platform_user/getCurrentUserPhone',
          method: 'post',
          data
      })
  }
  
  // 发送修改管理员手机号验证码
  export function getUpdatePhoneCode(data) {
      return request({
          url: 'admin/getUpdatePhoneCode',
          method: 'post',
          data
      })
  }
  
  // 修改管理员手机号
  export function updatePhone(data) {
      return request({
          url: 'platform_user/updatePhone',
          method: 'post',
          data
      })
  }
  
  // 是否24小时内验证了
  export function getPrivacySwitch(data) {
      return request({
          url: 'platform_user/getPrivacySwitch',
          method: 'post',
          data
      })
  }