userApi.js
1.38 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
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.login', data)
},
/**获取当前登录账号能查看的园区店列表 */
getYQList () {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.serviceMerchant.curYqList')
},
// 获取园区店下的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.fetch('dj.api.smartcarlife.workWechat.selectAccountLogin', data)
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI (data) {
data.projectName = 'boutique'
return http.post({
method: 'dj.api.smartcarlife.select.openScene.info',
...data,
})
},
}