yuan
4 天以前 eca47cecf33c93a7cf711f736f9a4d9be48392f9
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
// 企业门户页面接口
import request from '@/utils/request'
 
// 获取企业信息
export function getEnterpriseInfo() {
    return request({
        url: '/system/enterpriseInfo/getInfo',
        method: 'get'
    })
}
 
// 保存企业信息
export function saveEnterpriseInfo(data) {
    return request({
        url: '/system/enterpriseInfo/save',
        method: 'post',
        data: data
    })
}
 
// 上传Logo
export function uploadLogo(file) {
    const formData = new FormData()
    formData.append('file', file)
    return request({
        url: '/system/enterpriseInfo/uploadLogo',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
 
// 上传二维码
export function uploadQrCode(file) {
    const formData = new FormData()
    formData.append('file', file)
    return request({
        url: '/system/enterpriseInfo/uploadQrCode',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}