/*
|
* @Descripttion:该文件用于组织服务器请求,添加请求函数时注意 函数重名!
|
* @Author: TM丶
|
* @LastEditors: 小明丶
|
* @Date: 2019-03-30 08:27:46
|
* @LastEditTime: 2021-01-04 09:34:57
|
*/
|
|
import $http from './config';
|
import oldapi from './oldapi';
|
|
|
const api = {
|
...oldapi,
|
// 获取微信配置
|
getTokenInfo(data) {
|
data.apploading = 1;
|
return $http.post('/wechat/getSign', data);
|
},
|
// 获取微信token
|
getWeChatUserInfo(data) {
|
return $http.post('/wechat/userInfo', data);
|
},
|
setUserOpenId(data) {
|
return Service.post('/wechat/binding', data);
|
},
|
//token登陆
|
loginByToken(data) {
|
return $http.post('/login/loginByToken', data);
|
},
|
loginByMerToken(data){
|
return $http.post('/login/loginByMerToken',data);
|
},
|
//登陆
|
login(data) {
|
return $http.post('/login/login', data);
|
},
|
//登出
|
logout(data) {
|
return $http.post('/login/logout', data);
|
},
|
// 获取角色列表
|
getRole(data) {
|
return $http.post('/user/getUserMgrInfo', data);
|
},
|
getAgencyMerList(data){
|
return $http.post('/user/getAgencyMerList',data)
|
},
|
// 获取用户信息
|
getPowerInfo(mgrId) {
|
return $http.post('/user/mgr/powerInfo', {
|
mgrId
|
});
|
},
|
// 账户管理——获取用户信息
|
getUserDetail(mgrId) {
|
return $http.post('/user/mgr/detail', {
|
mgrId
|
});
|
},
|
//修改密码
|
userUpdatePwd(data) {
|
return $http.post('/user/updatePwd', data);
|
},
|
//获取验证码
|
userSendMsg(data) {
|
return $http.post('/user/sendMsg', data);
|
},
|
//忘记密码
|
userForgetPwd(data) {
|
return $http.post('/user/forgetPwd', data);
|
},
|
|
|
|
// 获取地区列表
|
getArea() {
|
let data = {
|
apploading:1
|
};
|
return $http.post('/public/areaList',data);
|
},
|
|
// 获取机构拥有的地区列表
|
getOrgAreaInfo(orgType) {
|
let data = {
|
apploading:1,
|
orgType
|
};
|
return $http.post('/public/getOrgAreaInfo', data);
|
},
|
/**
|
* 渠道相关
|
*/
|
//列表
|
getChannel() {
|
return $http.post('/chan/chanList');
|
},
|
//添加
|
addChan(data) {
|
return $http.post('/chan/addChan', data);
|
},
|
//切换状态
|
channSwitchStatus(data) {
|
return $http.post('/chan/switchStatus', data);
|
},
|
//更新渠道详细信息
|
updateChan(data) {
|
return $http.post('/chan/updateChan', data);
|
},
|
//查看/加载渠道详细信息
|
getChannelInfo(chanId) {
|
return $http.post('/chan/viewChanInf', {chanId});
|
},
|
|
// 获取审批列表
|
getAuditList(data) {
|
return $http.post('/merchant/auditList', data);
|
},
|
//审批商户
|
merAudit(data){
|
return $http.post('/merchant/audit', data);
|
},
|
|
// /merchant/auditList
|
|
getAuditType(data){
|
return $http.post('/merchant/auditType', data);
|
},
|
setAuditType(data){
|
return $http.post('/merchant/setAuditType', data);
|
},
|
|
|
/**
|
* 门店管理相关
|
*/
|
//门店列表
|
storeStoreList(data) {
|
return $http.post('/store/storeList', data);
|
},
|
//门店详情
|
storeDtl(data) {
|
return $http.post('/store/dtl', data);
|
},
|
//编辑门店
|
storeEdit(data) {
|
return $http.post('/store/edit', data);
|
},
|
//添加门店
|
storeAdd(data) {
|
return $http.post('/store/add', data);
|
},
|
|
|
|
|
|
|
|
|
|
|
// 数据查询相关
|
//获取产品列表
|
getProductList(data) {
|
return $http.post('/prod/typeList', data);
|
},
|
|
// 获取订单初始化数据
|
getOrderInit(data) {
|
return $http.post('/order/init', data);
|
},
|
|
|
|
|
|
// 账号管理——列表
|
getMgrList(data) {
|
return $http.post('/user/getMgrList', data);
|
},
|
// 账户管理——冻结账户
|
userFreezeMgr(mgrId){
|
return $http.post('/user/freezeMgr', {mgrId});
|
},
|
// 账户管理——增加账户
|
userAdd(data){
|
return $http.post('/user/add', data);
|
},
|
// 账户管理——更新账户信息
|
userUpdate(data){
|
return $http.post('/user/update', data);
|
},
|
|
// 花呗订单列表
|
getHBList(data){
|
return $http.post('/order/hbList', data);
|
},
|
// 获取花呗订单详情
|
getHBDetail(orderId){
|
return $http.post('/order/hbOrderDtl', {orderId});
|
},
|
// 花呗订单——退款
|
hbOrderRefund(data){
|
return $http.post('/hbOrder/refund', data);
|
},
|
// 花呗——订单导出
|
hbExport(data){
|
return $http.post('/order/hbExport', data);
|
},
|
// 获取产品订单金额统计
|
getAmtReport(prodId){
|
return $http.post('/order/amtReport', {prodId});
|
},
|
//获取周次商户统计
|
getMerWeeksReport(){
|
return $http.post('/merchant/weeksReport');
|
},
|
// 商户统计
|
getMerReport(data){
|
return $http.post('/merchant/report',data);
|
},
|
// 获取订单统计
|
getOrderReport(data){
|
return $http.post('/order/report',data);
|
},
|
|
|
|
|
|
|
//获取商户列表
|
merList(data) {
|
return $http.post('/merchant/list', data);
|
},
|
//商户详情
|
merDetail(data) {
|
return $http.post('/merchant/merDetail', data);
|
},
|
//商户照片信息
|
merFile(data) {
|
return $http.post('/merchant/file', data);
|
},
|
//商户列表导出
|
merExport(data) {
|
return $http.post('/merchant/export', data);
|
},
|
getUnAuditNb(data){
|
return $http.post('/merchant/unAuditNb',data);
|
},
|
// 信用卡分期订单
|
getCreditOrderList(data){
|
return $http.post('/order/list', data);
|
},
|
// 信用卡分期 导出
|
creditExport(data){
|
return $http.post('/order/export', data);
|
},
|
// 信用卡分期 详情
|
getCreditDetail(orderId){
|
return $http.post('/order/orderDtl', {orderId});
|
},
|
|
|
|
|
// 手机分期订单列表
|
ljOrderList(data){
|
return $http.post('/ljOrder/list', data);
|
},
|
// 手机分期——导出
|
ljOrderExport(data){
|
return $http.post('/ljOrder/export', data);
|
},
|
// 智享花 ——订单
|
getHeydOrder(data){
|
return $http.post('/heydOrder/list', data);
|
},
|
// 智享花 ——导出
|
zxhExport(data){
|
return $http.post('/heydOrder/export', data);
|
},
|
|
// 信用购 ——订单
|
getXygOrder(data){
|
return $http.post('/xygOrder/list', data);
|
},
|
// 信用购 ——导出
|
xygExport(data){
|
return $http.post('/xygOrder/export', data);
|
},
|
getXygDetail(orderId){
|
return $http.post('/xygOrder/orderDtl', {orderId});
|
},
|
// 信用购 ——订单
|
getGzzjOrder(data){
|
return $http.post('/gzzjOrder/list', data);
|
},
|
// 信用购 ——导出
|
gzzjExport(data){
|
return $http.post('/gzzjOrder/export', data);
|
},
|
getGzzjDetail(orderId){
|
return $http.post('/gzzjOrder/orderDtl', {orderId});
|
},
|
// 获取商户收款订单列表
|
getDmfOrderList(data){
|
return $http.post('/dmfOrder/orderList', data);
|
},
|
//商户收款 详情
|
getDmfOrderDetail(orderId){
|
return $http.post('/dmfOrder/orderDetails', {orderId});
|
},
|
//商户收款 退款
|
facepay_refund(data){
|
return $http.post('/dmfOrder/refund', data);
|
},
|
// 商户收款 获取支付状态
|
facepay_getStatus(orderId){
|
return $http.post('/dmfOrder/findOrderSts', {orderId});
|
},
|
|
// 购机直降——订单列表
|
getGjzjList(data){
|
return $http.post('/gjzjOrder/list', data);
|
},
|
// 购机直降——详情
|
getGjzjDetail(orderId){
|
return $http.post('/gjzjOrder/orderDtl', {orderId});
|
},
|
// 购机直降——导出
|
gjzjExport(data){
|
return $http.post('/gjzjOrder/export', data);
|
},
|
|
getZxhDetail(orderId){
|
return $http.post('/heydOrder/orderDtl', {orderId});
|
},
|
|
|
|
|
|
//商户注册
|
merRegist(data) {
|
return $http.post('/user/regist', data);
|
},
|
// 商户筛选条件初始化
|
merInitFilter(data){
|
return $http.post('/merchant/initFilter', data);
|
},
|
|
// 模板列表
|
getTempList(data){
|
return $http.post('/temp/tempList', data);
|
},
|
// 模板 初始化数据
|
// getTempInit(){
|
// return $http.post('/temp/init');
|
// },
|
getTempInit(data){
|
return $http.post('/tempManager/init',data);
|
},
|
// 模板详情
|
// getTempDetail(tempId){
|
// return $http.post('/temp/detail',{tempId});
|
// },
|
getTempDetail(tempId){
|
return $http.post('/tempManager/detail',{tempId});
|
},
|
//模板——保存
|
// tempSave(data){
|
// return $http.post('/temp/save',data);
|
// },
|
tempSave(data){
|
return $http.post('/tempManager/save',data);
|
},
|
tempManagerUpdate(data){
|
return $http.post('/tempManager/update',data)
|
},
|
//模板——商户保存
|
tempSaveMerTemp(data){
|
return $http.post('/temp/saveMerTemp',data);
|
},
|
getTempMerRef(data){
|
return $http.post('/temp/getTempMerRef',data);
|
},
|
tempGetMerRef(data){
|
return $http.post('/temp/getMerRef',data);
|
},
|
//模板——商户列表
|
getTempMerList(data){
|
return $http.post('/temp/tempMerList',data);
|
},
|
//模板 保存商户分配模板
|
saveMerListTemp(data){
|
return $http.post('/temp/saveMerListTemp',data);
|
},
|
|
//红包接口
|
redPacketInit(data){
|
return $http.post('/redPacket/init',data)
|
},
|
redPacketIncomeList(data){
|
return $http.post('/redPacket/incomeList',data)
|
},
|
redPacketExpendList(data){
|
return $http.post('/redPacket/expendList',data)
|
},
|
redPacketBindAliInfo(data){
|
return $http.post('/redPacket/bindAliInfo',data)
|
},
|
redPacketExpend(data){
|
return $http.post('/redPacket/expend',data)
|
},
|
//花呗合约机套餐信息获取
|
categoryList(data){
|
return $http.post('/contract/categoryList',data)
|
},
|
// 信用购花呗导出
|
xygOrderHbExport(data){
|
return $http.post('/xygOrder/hbExport',data)
|
},
|
// 信用购花呗列表获取
|
xygOrderHbList(data){
|
return $http.post('/xygOrder/hbList',data)
|
},
|
// 验证是否需要手动绑定
|
xygOrderCheckInfo(data){
|
return $http.post('/xygOrder/checkInfo',data)
|
},
|
//绑定信息
|
xygOrderBindInfo(data){
|
return $http.post('/xygOrder/bindInfo',data)
|
},
|
//信用购花呗创建订单
|
xygOrderCreateHbOrder(data){
|
return $http.post('/xygOrder/createHbOrder',data)
|
},
|
// 信用购花呗订单详情
|
xygOrderHbOrderDtl(data){
|
return $http.post('/xygOrder/hbOrderDtl',data)
|
},
|
// 信用购花呗 退款
|
xygOrderRefundHb(data){
|
return $http.post('/xygOrder/refundHb',data)
|
},
|
|
// 花呗间联接口
|
hbjlOrderList(data){
|
return $http.post('/hbjlOrder/list',data)
|
},
|
hbjlOrderInit(data){
|
return $http.post('/hbjlOrder/init',data)
|
},//创建订单初始化
|
hbjlOrderExport(data){
|
return $http.post('/hbjlOrder/export',data)
|
},
|
hbjlOrderTrial(data){
|
return $http.post('/hbjlOrder/trial',data)
|
},
|
hbjlOrderOrderDtl(data){
|
return $http.post('/hbjlOrder/orderDtl',data)
|
},
|
/**
|
* 通联接口
|
* **/
|
tltMerOpenInit(data){
|
return $http.post('/tlt/merOpen/init',data)
|
},//页面信息初始化
|
tltMerOpenOpen(data){
|
return $http.post('/tlt/merOpen/open',data)
|
},//商户开通
|
tltMerOpenFindOpenSts(data){
|
return $http.post('/tlt/merOpen/findOpenSts',data)
|
},//查询开通状态
|
tltMerOpenSendSmsCode(data){
|
return $http.post('/tlt/merOpen/sendSmsCode',data)
|
},//获取网商验证码
|
tltMerOpenReOpenMer(data){
|
return $http.post('/tlt/merOpen/reOpenMer',data)
|
},//重置开通状态
|
tltMerOpenQueryElectUrl(data){
|
return $http.post('/tlt/merOpen/queryElectUrl',data)
|
},//进件电子协议URL查询
|
tltMerOpenRepair(data){
|
return $http.post('/tlt/merOpen/repair',data)
|
},//商户资料补录
|
tltMerOpenPayAuth(data){
|
return $http.post('/tlt/merOpen/payAuth',data)
|
},//打款验证接口
|
/**
|
* 通联提现接口
|
* **/
|
tltWalletOpenStatus(data){
|
return $http.post('tlt/wallet/openStatus',data)
|
},
|
tltWalletInit(data){
|
return $http.post('/tlt/wallet/init',data)
|
},//钱包初始化
|
tltWalletSendSmsCode(data){
|
return $http.post('/tlt/wallet/sendSmsCode',data)
|
},//获取网商验证码
|
tltWalletWithdraw(data){
|
return $http.post('/tlt/wallet/withdraw',data)
|
},//提现
|
tltWalletWithdrawDetails(data){
|
return $http.post('/tlt/wallet/withdrawDetails',data)
|
},//提现记录
|
tltWalletWithdrawStatus(data){
|
return $http.post('/tlt/wallet/withdrawStatus',data)
|
},//提现状态
|
tltMerOpenSendAuthFile(data){
|
return $http.post('/tlt/merOpen/sendAuthFile',data)
|
},//获取授权书模板
|
// 风控订单接口
|
riskNum(data){
|
return $http.post('/risk/num',data)
|
},
|
riskInit(data){
|
return $http.post('/risk/init',data)
|
},
|
riskList(data){
|
return $http.post('/risk/list',data)
|
},
|
riskHandle(data){
|
return $http.post('/risk/handle',data)
|
},
|
riskExport(data){
|
return $http.post('/risk/export',data)
|
},
|
// 微信扫码登录
|
loginByOpenId(data){
|
return $http.post('/login/loginByOpenId',data)
|
},//openid登录
|
checkOpenIdIsBind(data){
|
return $http.post('/user/checkOpenIdIsBind',data)
|
},//判断是否绑定openId
|
userAddStoreManager(data){
|
return $http.post('/user/addStoreManager',data)
|
},//资料补充
|
|
// 商户收款接口
|
shskTypeList(data){
|
return $http.post('/prod/dmfTypeList',data)
|
},//获取支付方式列表
|
shskCalAmt(data){
|
return $http.post('/prod/calAmt',data)
|
},
|
shskProdFee(data){
|
return $http.post('/dmfOrder/prodFee',data)
|
},//获取支付方式费率
|
|
// 联通合约机
|
cuccOrderInit(data){
|
return $http.post('/cuccOrder/init',data)
|
},//初始化合约套餐
|
cuccOrderPreCreate(data){
|
return $http.post('/cuccOrder/preCreate',data)
|
},//订单预创建
|
cuccOrderList(data){
|
return $http.post('/cuccOrder/list',data)
|
},//订单列表
|
cuccOrderDetail(data){
|
return $http.post('cuccOrder/detail',data)
|
},//订单详情
|
|
|
}
|
|
export default {
|
install(Vue, opt) {
|
Vue.prototype.$api = api;
|
}
|
}
|