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
65
| /*
| * @Descripttion:该文件用于组织服务器请求,添加请求函数时注意 函数重名!
| * @Author: TM丶
| * @LastEditors: 小明丶
| * @Date: 2019-03-30 08:27:46
| * @LastEditTime: 2021-01-04 09:34:57
| */
|
| import $http from './config';
| // import oldapi from './oldapi';
|
|
| const api = {
| //绑卡初始化
| bankCardInit(data) {
| return $http.post('/bankCard/init', data);
| },
| //银行卡ocr
| bankCardOcr(data) {
| return $http.post('/bankCard/ocr', data);
| },
| //绑卡验证码
| bankCardAuthMsg(data) {
| return $http.post('/bankCard/authMsg', data);
| },
|
| //绑卡签约
| bankCardAgree(data) {
| return $http.post('/bankCard/agreePayAuth', data);
| },
|
| //绑卡人脸识别
| faceIdUrl(data) {
| return $http.post('/faceId/url', data);
| },
| //人脸识别结果
| faceIdResult(data) {
| return $http.post('/faceId/result', data);
| },
|
| //签约信息
| signContractInfo(data) {
| return $http.post('/signContract/contractInf', data);
| },
| //发送授权验证码
| sendVerifyCode(data) {
| return $http.post('/signContract/sendVerifyCode', data);
| },
| //校验授权码
| checkVerifyCode(data) {
| return $http.post('/signContract/checkVerifyCode', data);
| },
| //签署3号合同
| signContract(data) {
| return $http.post('/signContract/signContract3', data);
| },
| // ========================================
|
| }
|
| export default {
| install(Vue, opt) {
| Vue.prototype.$api = api;
| }
| }
|
|