userApi.js
2.22 KB
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
import http from "../request/http";
module.exports = {
/**获取短信 */
getSmsCode (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.sms.get.code", data);
},
/**手机验证码登录 */
smsLogin (data = {}) {
data.projectName = 'boutique'
data.source = 'MINIAPP'
data.productCode = 'PC00c2'
return http.fetch('dj.api.smartcarlife.sms.applogin', data)
},
/**免登 */
autoLogin (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.sms.noSignIn.login", data);
},
// 获取园区店下的4s店
getSceneMerchantRefStoreList (data) {
data.projectName = "boutique";
return http.post({
method: "dj.api.scenemerchantref.query4SRefByYqShopByLogin",
...data,
});
},
/**获取帐号列表 */
getListSelectAccount (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.workWechat.listSelectAccount", data);
},
/**选择帐号登陆 */
selectAccountLogin (data) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.workWechat.selectAccountLogin",
...data,
});
},
// 选择4s店和场景
selectMerchantScene (data) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.selectMerchantScene",
...data,
});
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI (data) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.select.openScene.info",
...data,
});
},
/**退出*/
logout (data = {}) {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.logout', data);
},
/**
* 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他"
*/
getMerchantBrand (data = {}) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantBrand",
...data,
});
},
/**
* 查询门店保险权益
*/
getMerchantInsuranceList (data = {}) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantItem",
...data,
});
},
};