restapi.js
1.25 KB
const restapi = require('../../../utils/restapi.js');
module.exports = {
/** 获取主页数据*/
getIndexModules: function (merchantId, success, fail) {
restapi.req('/web-dj-weapp/home/getIndexModules', { merchantId: merchantId }, {}, 'GET', '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)
},
/**
* 获得个人中心模块配置
*/
getMyModules(merchantId, success, fail) {
restapi.req('/web-dj-weapp/personal/getPersonalModules', { merchantId: merchantId }, {}, 'GET', 'json', 'text', success, fail);
},
/**
* 返回用户信息列表
*/
getAccountListByPhone(phone, success, fail) {
restapi.req('/web-dj-weapp/myactivity/getAccountListByPhone', { phone: phone }, {}, 'GET', 'json', 'text', success, fail)
},
/** 获取车辆信息 */
getVehicle: function (success, fail) {
restapi.req('/web-dj-weapp/home/getVehicles', {}, {}, 'GET', 'json', 'text', success, fail);
},
getCustomerMessageNew: restapi.getCustomerMessageNew
}