init
This commit is contained in:
17
fuintUniapp/api/merchant/coupon.js
Normal file
17
fuintUniapp/api/merchant/coupon.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// api地址
|
||||
const api = {
|
||||
sendCoupon: 'merchantApi/coupon/sendCoupon',
|
||||
search: 'clientApi/coupon/list'
|
||||
}
|
||||
|
||||
// 查询接口
|
||||
export const search = (param) => {
|
||||
return request.post(api.search, param)
|
||||
}
|
||||
|
||||
// 发放卡券
|
||||
export const sendCoupon = (param) => {
|
||||
return request.post(api.sendCoupon, param)
|
||||
}
|
||||
23
fuintUniapp/api/merchant/member.js
Normal file
23
fuintUniapp/api/merchant/member.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// api地址
|
||||
const api = {
|
||||
info: 'merchantApi/member/info',
|
||||
list: 'merchantApi/member/list',
|
||||
save: 'merchantApi/member/save',
|
||||
}
|
||||
|
||||
// 会员详情
|
||||
export function detail(memberId, param) {
|
||||
return request.post(api.info, { memberId, ...param })
|
||||
}
|
||||
|
||||
// 会员列表
|
||||
export function list(param, option) {
|
||||
return request.post(api.list, param, option)
|
||||
}
|
||||
|
||||
// 保存会员信息
|
||||
export const save = (param, option) => {
|
||||
return request.post(api.save, param)
|
||||
}
|
||||
18
fuintUniapp/api/merchant/order.js
Normal file
18
fuintUniapp/api/merchant/order.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// api地址
|
||||
const api = {
|
||||
list: 'merchantApi/order/list',
|
||||
detail: 'merchantApi/order/detail'
|
||||
}
|
||||
|
||||
|
||||
// 订单列表
|
||||
export function list(param, option) {
|
||||
return request.post(api.list, param, option)
|
||||
}
|
||||
|
||||
// 订单详情
|
||||
export function detail(orderId, param) {
|
||||
return request.get(api.detail, { orderId, ...param })
|
||||
}
|
||||
11
fuintUniapp/api/merchant/recharge.js
Normal file
11
fuintUniapp/api/merchant/recharge.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// api地址
|
||||
const api = {
|
||||
doRecharge: 'merchantApi/balance/doRecharge',
|
||||
}
|
||||
|
||||
// 提交充值
|
||||
export const doRecharge = (rechargeAmount, customAmount, memberId) => {
|
||||
return request.post(api.doRecharge, { rechargeAmount, customAmount, memberId })
|
||||
}
|
||||
Reference in New Issue
Block a user