Commit f1914904 by chenwq

删除不再使用的商城和提现相关API模块

1 parent 6960920b
import wechatApi from './wechat'
import userApi from './user'
import homeApi from './home'
import shopmallApi from './shopmall'
import mineApi from './mine'
import systemApi from './system'
import common from './common'
import withdrawalApi from './withdrawal'
module.exports = {
wechatApi,
userApi,
homeApi,
shopmallApi,
mineApi,
systemApi,
common,
withdrawalApi
}
\ No newline at end of file
import api from '../request/http'
module.exports = {
}
\ No newline at end of file
import api from '../request/http'
module.exports = {
/** 分页查询商城专区的商品信息 */
getGoodsList(data) {
return api.post({
method: `scrm.api.shopmall.zoneInfo.weapp.goodsPage.HMD`,
pageNum: 1,
pageSize: 999,
...data
})
},
/** 添加购物车 */
addShoppingcart(data) {
return api.post({
method: `scrm.api.shopmall.weapp.shoppingcart.add`,
...data
})
},
/** 购物车删除商品 */
delShoppingcart(data) {
return api.post({
method: `scrm.api.shopmall.weapp.shoppingcart.delete`,
...data
})
},
/** 分页获取购物车 */
getShoppingcartList(data) {
return api.post({
method: `scrm.api.shopmall.weapp.shoppingcart.list`,
...data
})
},
/** 购物车商品变更(比如修改数量) */
updateShoppingcart(data) {
return api.post({
method: `scrm.api.shopmall.weapp.shoppingcart.update`,
...data
})
},
/** 领取确认订单最大优惠券 */
getMaxCoupon(orderGoods) {
return api.fetch('scrm.api.shopmall.weapp.order.coupons.get.HMD', {
orderGoods
})
},
/**购物车结算 */
settlementShoppingcart(data) {
return api.post({
method: `scrm.api.shopmall.weapp.shoppingcart.settlement`,
...data
})
},
/** 创建订单(立即购买) */
createOrder(data) {
return api.post({
method: `scrm.api.shopmall.weapp.order.create`,
...data
})
},
/**创建支付订单(去付款) */
payOrder(data) {
return api.post({
method: `scrm.api.shopmall.weapp.order.createPay`,
...data
})
},
/**订单详情 */
getOrderDetail(data) {
return api.post({
method: `scrm.api.shopmall.platform.order.detail`,
...data
})
},
/**获取订单的售后详情 */
getOrderRefundDetail(orderCode) {
return api.post({
method: `scrm.api.shopmall.weapp.orderRefund.detail`,
orderCode
})
},
//取消付款
cancelPay(orderCode) {
return api.fetch('scrm.api.shopmall.weapp.order.cancelPay', {
orderCode
})
},
/** 申请售后-自营商品 */
afterSale(data) {
return api.fetch('scrm.api.shopmall.points.afterSales.add', data)
},
/** 申请售后-云中鹤申请售后 */
afterSalesPlatform(data) {
return api.fetch('scrm.api.shopmall.platform.afterSales.add', data)
},
//申请售后待审核的订单取消售后
cancelOrder(orderCode) {
return api.fetch('scrm.api.shopmall.weapp.orderRefund.cancel', {
orderCode
})
},
/** 售后寄回商品填写快递信息 */
addDelivery(data) {
return api.post({
method: `scrm.api.shopmall.platform.sendBack.goods`,
...data
})
},
/**云中鹤查看物流列表(售后寄回)*/
queryExpressList(data={}){
return api.post({
method: 'scrm.api.shopmall.platform.query.expressList',
...data
})
},
/** 云中鹤-售后订单详情*/
platformSaleDetail(data) {
return api.post({
method: 'scrm.api.shopmall.platform.afterSales.detail',
...data
})
},
/**自营-售后订单详情 */
afterSaleDetail(data) {
return api.post({
method: 'scrm.api.shopmall.points.afterSales.detail',
...data
})
},
/** 确认收货 */
confirmReceipt(subOrderCode) {
return api.post({
method: `scrm.api.shopmall.platform.confirm.receipt`,
subOrderCode
})
},
/**平台商城接口---取消售后 */
platformEditSale(data) {
return api.post({
method: 'scrm.api.shopmall.platform.afterSales.cancel',
...data
})
},
/** 查看物流轨迹 */
queryLogistics(data) {
return api.post({
method: `scrm.api.shopmall.platform.order.queryLogistics`,
...data
})
},
/**云中鹤查看可申请售后的商品数量 */
getYzhAvailableQty(data) {
return api.post({
method: 'scrm.api.shopmall.platform.afterSales.available.qty',
...data
})
},
/**自营查看可申请售后的商品数量(暂无) */
getAvailableQty(data) {
return Promise.resolve(null)
}
}
\ No newline at end of file
import api from '../request/http'
module.exports = {
/**积分汇总查询 */
searchScoreSummary(data) {
return api.fetch(
'scrm.api.shopmall.score.summary.search',
data,
);
},
/**积分明细列表查询 */
getScoreProfitList(data) {
return api.fetch(
'scrm.api.shopmall.score.profit.list',
data
)
},
/**积分明细查询 */
getScoreDetail(data) {
return api.fetch(
'scrm.api.shopmall.score.detail.get',
data
)
},
/**提现列表查询 */
getScoreWithdrawalPage(data) {
return api.fetch(
'scrm.api.shopmall.score.withdrawal.page',
data
)
},
/** 免责协议地址获取*/
getAgreementUrl(data) {
return api.fetch(
'scrm.api.shopmall.score.withdrawal.disclaimer.agreement.get',
data
)
},
/** 积分提现*/
saveWithdrawal(data) {
return api.fetch('scrm.api.shopmall.score.withdrawal.save', data)
},
/**查询税率 */
getTaxRate(data) {
return api.fetch('scrm.api.shopmall.score.get.taxRate', data)
},
/**根据手机号查询员工银行卡列表 */
getStaffBankList(data) {
return api.fetch(
'scrm.api.shopmall.score.bank.list',
data,
);
},
/** 插入或更新员工银行卡信息 */
insetorupdateStaffBank(data) {
return api.fetch('scrm.api.shopmall.score.bank.insertOrUpdate',
data);
},
/**根据id查询银行卡详情 */
getBankDetail(data) {
return api.fetch('scrm.api.shopmall.score.bank.get.detail', data)
},
/**查询上传证件配置信息 */
getConfig(data){
return api.fetch('scrm.api.shopmall.score.bank.get.document.config',data)
},
/**开通积分钱包 */
openPointsWallet(data){
return api.fetch('scrm.api.shopmall.pointswallet.open',data)
},
/**检查银行卡身份信息 */
checkbankConfig(data){
return api.fetch('scrm.api.shopmall.score.bank.check.config',data)
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!