From b9324e221a0992a5e8c120a833a9ed1ee666a841 Mon Sep 17 00:00:00 2001 From: gpu Date: Mon, 2 Feb 2026 20:25:31 +0800 Subject: [PATCH] 321 --- honey_box/common/server/config.js | 9 ++ honey_box/common/server/coupon.js | 8 ++ honey_box/pages/shouye/index.vue | 86 ++++++++++++++++++- .../Controllers/CouponController.cs | 34 ++++++++ .../Interfaces/ICouponService.cs | 7 ++ .../HoneyBox.Core/Services/CouponService.cs | 21 +++++ .../Models/Coupon/CouponModels.cs | 14 +++ 7 files changed, 177 insertions(+), 2 deletions(-) diff --git a/honey_box/common/server/config.js b/honey_box/common/server/config.js index 0cc0ce27..1869b2f8 100644 --- a/honey_box/common/server/config.js +++ b/honey_box/common/server/config.js @@ -46,3 +46,12 @@ export const getDanYe = async (type) => { export const getDanYeContent = async (type) => { return await RequestManager.getCache('/danye', { type }); } + +/** + * 获取悬浮球配置列表 + * @returns {Promise} 悬浮球配置列表 + */ +export const getFloatBall = async () => { + const res = await RequestManager.get("getFloatBall", {}); + return res.data || []; +} diff --git a/honey_box/common/server/coupon.js b/honey_box/common/server/coupon.js index 522d0b9c..b91c86c3 100644 --- a/honey_box/common/server/coupon.js +++ b/honey_box/common/server/coupon.js @@ -3,6 +3,14 @@ */ import RequestManager from '../request'; +/** + * 获取待领取优惠券数量 + * @returns {Promise} 待领取优惠券数量 + */ +export const getPendingCouponCount = async () => { + return await RequestManager.get('/coupon_pending_count', {}, true); +}; + /** * 获取优惠券列表 * @param {Object} params 查询参数 diff --git a/honey_box/pages/shouye/index.vue b/honey_box/pages/shouye/index.vue index b1cea7d0..95034da8 100644 --- a/honey_box/pages/shouye/index.vue +++ b/honey_box/pages/shouye/index.vue @@ -5,6 +5,15 @@ -->