home.js 3.5 KB
import api from '../common/create-api';

module.exports = {
    getWechatShareCode(params) {
        // return api.get('/erp/wechatCs/getWechatShareCode', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": "db1a9ef9f609c0cd70",
                "md5": "3f4552cccfaefc99e16847cc63b5402e",
                "message": "操作成功"
            });
        })
    },
    getWechatConsultant(params) {
        // return api.get('/erp/wechatCs/getWechatConsultant', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": {
                  "groupName": "其他顾问分组",
                  "machineCode": "99001182249951",
                  "staffName": "刘忙",
                  "wechatCode": "yoho2w1qb",
                  "wechatMobile": "13770769602",
                  "wechatNickName": "红柚",
                  "wechatUid": 500032152,
                  "yohoMobile": "13770769602"
                },
                "md5": "7541dd607cef8dc3345d2ce0af7ce1c4",
                "message": "操作成功"
            })
        });
    },
    getUserInfo(params) {
        // return api.get('/erp/wechatCs/getUserInfo', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": {
                  "birthday": "1995-08-20",
                  "createTimeStr": "2018-04-27 00:28:50",
                  "mobile": "13365289763",
                  "nickName": "admire102",
                  "user_uid": 500031572,
                  "vipLevel": "0",
                  "yearCost": "0"
                },
                "md5": "216a47d172dfc195d992a3151df7c3a0",
                "message": "操作成功"
              })
        });
    },
    bindWechatCSAndUser(params) {
        // return api.get('/erp/wechatCs/bindWechatCSAndUser', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": [],
                "md5": "6d729d4b35f10fc73531210bd7ecff91",
                "message": "操作成功"
              })
        });
    },
    updateUserReminder(params) {
        // return api.get('/erp/wechatCs/updateUserReminder', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": [],
                "md5": "6d729d4b35f10fc73531210bd7ecff91",
                "message": "操作成功"
            })
        });
    },
    getUserUid(params) {
        // return api.get('/erp/wechatCs/getUserUid', params);

        return new Promise(function(resolve, reject) {
            return resolve({
                "alg": "SALT_MD5",
                "code": 200,
                "data": 500031572,
                "md5": "86ac2ee7339487d6211c7629a4ef5432",
                "message": "操作成功"
            })
        });
    },
    getOrderList(params) {
        return api.get('/erp-gateway/erp/order/getOrderList', params);
    },
    getChangeList(params) {
        return api.get('/erp-gateway/erp/order/getChangeList', params);
    },
    getRefundList(params) {
        return api.get('/erp-gateway/erp/order/getRefundList', params);
    }
}