实现部分页面前后端相通

This commit is contained in:
2026-07-16 17:29:27 +08:00
parent 7e45ecd144
commit a9ccdab421
16 changed files with 778 additions and 184 deletions
+34
View File
@@ -0,0 +1,34 @@
const http = require('../utils/request')
/** 获取当前会员信息 */
function getMemberInfo() {
return http.get('/member/info')
}
/** 更新会员信息 */
function updateMemberInfo(data) {
return http.put('/member/info', data)
}
/** 获取活跃会员卡 */
function getActiveCards() {
return http.get('/member-cards/active')
}
/** 获取会员签到统计 */
function getCheckInStatistics() {
return http.get('/checkIn/statistics')
}
/** 获取会员签到记录 */
function getCheckInRecords(params) {
return http.get('/checkIn/records', { params })
}
module.exports = {
getMemberInfo,
updateMemberInfo,
getActiveCards,
getCheckInStatistics,
getCheckInRecords
}