restapi.js
3.07 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
import restapi from '../../../utils/restapi.js'
import {api} from '../../../utils/util.js'
module.exports = {
/** 获取主页数据*/
getIndexModules: function (merchantId, success, fail) {
restapi.req('/web-dj-weapp/home/getIndexModules', { merchantId: merchantId }, {}, 'GET', 'json', 'text', success, fail);
},
/**
* 获得门店公告内容
*/
getNotice: function ( success) {
restapi.req('/web-dj-weapp/home/getNotice', {}, {}, 'GET', 'json', 'text', success);
},
/**
* 获取门店信息
*/
getMerchantById(merchantId, success) {
restapi.req('/web-dj-weapp/personal/merchant', { merchantId: merchantId }, {}, 'GET', 'json', 'text', success);
},
/**
* 获取小程序应用信息
* merchantId:商户号
*/
getAppInfo: function (merchantId, success, fail) {
restapi.req('/web-dj-weapp/appinfo/get', { merchantId: merchantId }, {}, 'GET', 'json', 'text', success, fail);
},
/**
* 获取我的顾问
*/
getEmployeeOfAccount(success, fail) {
restapi.req('/web-dj-weapp/servicer/getEmployeeOfAccount', {}, {}, 'GET', 'json', 'text', success, fail);
},
/** 获取车辆信息 */
getVehicles:function(success, fail){
restapi.req('/web-dj-weapp/home/getVehiclesForVerify', {}, {}, 'GET', 'json', 'text', success, fail);
},
/** 获取只能提醒服务列表(首页) */
getRemindServiceList(data, success) {
api.get('remindServiceInfo/getRemindServiceList', data, success)
},
/**
* 获取门店的服务顾问列表
*/
getEmployeesList(merchantId, accountGroupList, success, fail) {
if (!merchantId || merchantId == 'undefined') {
merchantId = 0;
}
restapi.req('/web-dj-weapp/servicer/getEmployeesList', { merchantId: merchantId, accountGroupList: accountGroupList }, { 'content-type': 'application/x-www-form-urlencoded' }, 'POST', 'json', 'text', success, fail);
},
/**
* 获取设备绑定信息
*/
getDeviceBindInfo: function (sourcefrom, success, fail) {
restapi.req('/web-dj-weapp/device/getBindInfo', { sourcefrom: sourcefrom }, { 'content-type': 'application/x-www-form-urlencoded' }, 'GET', 'json', 'text', success, fail)
},
/** 获取直播间详情 */
getLiveInfo: function (requestDTO, success, fail) {
restapi.req('/web-dj-weapp/home/liveplayer/info', requestDTO, { 'content-type': 'application/x-www-form-urlencoded' }, 'POST', 'json', 'text', success, fail);
},
/** 获取直播回放信息 */
getLiveReplay: function (requestDTO, success, fail) {
restapi.req('/web-dj-weapp/home/liveplayer/replay', requestDTO, { 'content-type': 'application/x-www-form-urlencoded' }, 'POST', 'json', 'text', success, fail);
},
/**
* 获取专题列表
*/
listSepcicalSubject(success, fail) {
restapi.req('/web-dj-weapp/popularActivity/listSepcicalSubject', {}, { 'content-type': 'application/x-www-form-urlencoded' }, 'POST', 'json', 'text', success, fail);
},
/**分类 */
getTagList(success) {
api.get('remindServiceInfo/classifytag/list', {}, success)
},
}