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 @@ -->