diff --git a/api/public.js b/api/public.js index 91144d0e..be4d4843 100644 --- a/api/public.js +++ b/api/public.js @@ -27,7 +27,7 @@ export function wechatAuth(code, spread) { /** * 获取登录授权login - * + * */ export function getLogo() { @@ -113,4 +113,4 @@ export function appleLogin(data) { */ export function iosBinding(data) { return request.post("ios/binding/phone", data, { noAuth : true }); -} \ No newline at end of file +} diff --git a/api/trade/brokerage.js b/api/trade/brokerage.js index bd344a37..40114775 100644 --- a/api/trade/brokerage.js +++ b/api/trade/brokerage.js @@ -51,3 +51,10 @@ export function createBrokerageWithdraw(data) { export function getBrokerageRecordPage(data) { return request.get('app-api/trade/brokerage-record/page', data); } + +// 获得商品的分销金额 +export function getProductBrokeragePrice(spuId) { + return request.get('app-api/trade/brokerage-record/get-product-brokerage-price', { + spuId + }); +} diff --git a/components/shareRedPackets/index.vue b/components/shareRedPackets/index.vue index becb1ed8..5f7522ed 100644 --- a/components/shareRedPackets/index.vue +++ b/components/shareRedPackets/index.vue @@ -1,5 +1,5 @@