diff --git a/common/api/index/index.js b/common/api/index/index.js index a89a35f..f12ef26 100644 --- a/common/api/index/index.js +++ b/common/api/index/index.js @@ -22,9 +22,29 @@ export const APIhome = (data) => { // 获取咖啡 export const userdict = (data) => { return request({ - url: '/account/user/dict', + url: '/account/user/dict', method: 'GET', data: data, toast: false }) } + +// 获取当前店铺会员开通配置信息 +export const getMemberConfig = (data) => { + return request({ + url: '/market/user/member/config', + method: 'GET', + data: data, + toast: false + }) +} + +// 获取充值配置 +export const getRechargeConfig = (data) => { + return request({ + url: '/market/user/recharge/config', + method: 'GET', + data: data, + toast: false + }) +} \ No newline at end of file diff --git a/components/coupon-modal.vue b/components/coupon-modal.vue index eda950c..987b94e 100644 --- a/components/coupon-modal.vue +++ b/components/coupon-modal.vue @@ -2,11 +2,11 @@ @@ -319,6 +319,9 @@ onPageScroll((res) => { isSticky.value = res.scrollTop > elementTop.value ? true : false; uni.$u.debounce((store.scrollTop = res.scrollTop), 500); }); + +const indexsRef = ref(null); + onShow(async () => { try { uni.getLocation({ @@ -343,6 +346,8 @@ onShow(async () => { } } }); + + indexsRef.value.getVipConfig(); } catch (error) { try { let successres = await APIgeocodelocation({ diff --git a/pages/index/indexs.vue b/pages/index/indexs.vue index 2f4bded..57e6e3d 100644 --- a/pages/index/indexs.vue +++ b/pages/index/indexs.vue @@ -1,11 +1,16 @@ \ No newline at end of file +} + diff --git a/pages/user/user.vue b/pages/user/user.vue index b69ceba..176ca84 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -1,25 +1,30 @@ \ No newline at end of file +} +