|
|
@ -127,6 +127,8 @@ export const getDiscountByUserDiscountId = params => { |
|
|
|
export const getUserNormalDiscountList = params => { |
|
|
|
export const getUserNormalDiscountList = params => { |
|
|
|
return POST('GET', `${base}/userDiscount/getUserNormalDiscountList`, params).then(res => res.data); |
|
|
|
return POST('GET', `${base}/userDiscount/getUserNormalDiscountList`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//**门店//
|
|
|
|
export const userLogin = params => { |
|
|
|
export const userLogin = params => { |
|
|
|
return POST('POST', `${brestBase}/login/userLogin`, params).then(res => res.data); |
|
|
|
return POST('POST', `${brestBase}/login/userLogin`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
@ -135,4 +137,20 @@ export const useCouponCode = params => { |
|
|
|
return POSTBREST('POST', `${brestBase}/couponCode/useCouponCode`, params).then(res => res.data); |
|
|
|
return POSTBREST('POST', `${brestBase}/couponCode/useCouponCode`, params).then(res => res.data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//**代理商//
|
|
|
|
|
|
|
|
export const getAgentCount = params => { |
|
|
|
|
|
|
|
return POSTBREST('GET', `${brestBase}/highCouponAgent/getAgentCount`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 查询销售码
|
|
|
|
|
|
|
|
export const getCodeListByAgentCoupon = params => { |
|
|
|
|
|
|
|
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeListByAgentCoupon`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 生成二维码
|
|
|
|
|
|
|
|
export const generateCode = params => { |
|
|
|
|
|
|
|
return POSTBREST('GET', `${brestBase}/highCouponAgent/generateCode`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 查看二维码
|
|
|
|
|
|
|
|
export const getCodeById = params => { |
|
|
|
|
|
|
|
return POSTBREST('GET', `${brestBase}/highCouponAgent/getCodeById`, params).then(res => res.data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|