zhaoxiaoqiang
2022-08-05 e47967c1f39a1b679227f8dbbec377e7698b3b3e
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
 * @Descripttion:该文件用于组织服务器请求,添加请求函数时注意 函数重名!
 * @Author: TM丶
 * @LastEditors: Please set LastEditors
 * @Date: 2019-03-30 08:27:46
 * @LastEditTime: 2021-10-29 16:49:16
 */
 
import $http from './config';
const api = {
    uploadFile(data){
        return $http.post('/public/uploadFile',data)
    },//文件上传
    areaOptions(data){
        return $http.post('/public/areaOptions',data)
    },//获取读取
    wechatUserInfo(data){
        return $http.post('/wechat/userInfo',data)
    },//获取微信openId
    wechatGetUserInfo(data){
        return $http.post('/wechat/getUserInfo',data)
    },//获取微信用户信息
    wechatgetSign(data){
        return $http.post('/wechat/getSign',data)
    },//获取微信签名
    login(data){
        return $http.post('/login/login',data)
    },//登录 
    openIdLogin(data){
        return $http.post('/login/openIdLogin',data)
    },//openId登录
    logout(data){
        return $http.post('/login/logout',data)
    },//退出登录
    getVerCode(data){
        return $http.post('/user/verCode',data)
    },
    // 订单创建相关
    orderCreateStep(data){
        return $http.post('/order/create/createStep',data)
    },//获取订单创建步骤
    createTrial(data){
        return $http.post('/order/create/trial',data)
    },//订单详情已经还款试算获取
    orderCreate(data){
        return $http.post('/order/create/create',data)
    },//订单创建模块
    createInitIdInfo(data){
        return $http.post('order/create/initIdInfo',data)
    },//初始化身份证信息
    getIdCardInfo(data){
        return $http.post('/order/create/getIdCardInfo',data)
    },//获取身份证信息
    saveIdInfo(data){
        return $http.post('/order/create/saveIdInfo',data)
    },//保存身份证信息
    getFaceUrl(data){
        return $http.post('/order/create/getFaceUrl',data)
    },//获取人脸识别地址
    findFaceResult(data){
        return $http.post('/order/create/findFaceResult',data)
    },//获取人脸识别结果
    createInitImgInfo(data){
        return $http.post('/order/create/initImgInfo',data)
    },//初始化影像资料
    saveImgInfo(data){
        return $http.post('/order/create/saveImgInfo',data)
    },//保存影像资料
    initUserInfo(data){
        return $http.post('/order/create/initUserInfo',data)
    },//初始化个人信息
    saveUserInfo(data){
        return $http.post('/order/create/saveUserInfo',data)
    },//保存个人信息
    initContInfo(data){
        return $http.post('/order/create/initContInfo',data)
    },//初始化合同签署页面
    bankVerCode(data){
        return $http.post('/order/create/bankVerCode',data)
    },//获取银行验证码
    getContInfo(data){
        return $http.post('/order/create/getContInfo',data)
    },//获取合同信息
    saveContInfo(data){
        return $http.post('/order/create/saveContInfo',data)
    },//保存合同签署页面
    initImgInfo(data){
        return $http.post('/order/create/initImgInfo',data)
    },//初始化图片上传页面
    saveImgInfo(data){
        return $http.post('/order/create/saveImgInfo',data)
    },//图片上传保存
    initAuditInfo(data){
        return $http.post('/order/create/initAuditInfo',data)
    },//初始化审核结果
 
    // 订单记录相关
    orderUserList(data){
        return $http.post('/order/user/list',data)
    },//订单列表
    orderUserDetail(data){
        return $http.post('/order/user/detail',data)
    },//订单详情
    orderUserCancel(data){
        return $http.post('/order/user/cancel',data)
    },//取消订单
    initPreClose(data){
        return $http.post('/order/user/initPreClose',data)
    },//初始化提前结清
    preClose(data){
        return $http.post('/order/user/preClose',data)
    },//提前结清
    initRepay(data){
        return $http.post('/order/user/initRepay',data)
    },//主动还款初始化
 
    repay(data){
        return $http.post('/order/user/repay',data)
    },//主动还款
 
    repayTrial(data){
        return $http.post('/order/user/repayTrial',data)
    },//主动还款试算
 
    preSettleStatus(data){
        return $http.post('/order/user/preSettleStatus',data)
    },//查询提前结清支付是否成功
    findRepayResult(data){
        return $http.post('/order/user/findRepayResult',data)
    },//查询主动还款支付是否成功
    // ===========银行卡信息===========
    bankCardInfo(data){
        return $http.post('/user/bankCardInfo',data)
    },//用户银行卡信息
    bankVerCode(data){
        return $http.post('/user/bankVerCode',data)
    },//发送银行卡验证码
    bindBankCard(data){
        return $http.post('/user/bindBankCard',data)
    },//绑定银行卡
    baseInfo(data){
        return $http.post('/user/baseInfo',data)
    },//绑定银行卡
}
 
export default {
    install(Vue, opt) {
        Vue.prototype.$api = api;
    }
}