From ad4eb04f49b75685baaaa0b22c9e2ff88e0c80d2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 9 Sep 2023 22:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BD=A3=EF=BC=9A=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=A2=9E=E5=8A=A0=E7=BB=91=E5=AE=9A=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/public.js | 4 ++-- api/trade/brokerage.js | 7 +++++++ components/shareRedPackets/index.vue | 4 ++-- config/app.js | 4 ++-- pages/goods_details/index.vue | 26 +++++++++++++++++--------- 5 files changed, 30 insertions(+), 15 deletions(-) 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 @@