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
| import Mock from 'mockjs';
| import setupMock, { successResponseWrap } from '@/utils/setup-mock';
|
| setupMock({
| setup() {
| Mock.mock(new RegExp('/api/user/save-info'), () => {
| return successResponseWrap('ok');
| });
| Mock.mock(new RegExp('/api/user/certification'), () => {
| return successResponseWrap({
| enterpriseInfo: {
| accountType: '企业账号',
| status: 0,
| time: '2018-10-22 14:53:12',
| legalPerson: '李**',
| certificateType: '中国身份证',
| authenticationNumber: '130************123',
| enterpriseName: '低调有实力的企业',
| enterpriseCertificateType: '企业营业执照',
| organizationCode: '7*******9',
| },
| record: [
| {
| certificationType: 1,
| certificationContent: '企业实名认证,法人姓名:李**',
| status: 0,
| time: '2021-02-28 10:30:50',
| },
| {
| certificationType: 1,
| certificationContent: '企业实名认证,法人姓名:李**',
| status: 1,
| time: '2020-05-13 08:00:00',
| },
| ],
| });
| });
| Mock.mock(new RegExp('/api/user/upload'), () => {
| return successResponseWrap('ok');
| });
| },
| });
|
|