整合api请求、添加购买会员卡页面、登陆页面

This commit is contained in:
future
2026-06-23 22:17:53 +08:00
parent 1c547a717e
commit 8d8c823616
70 changed files with 7666 additions and 2656 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
const BASE_URL = '/api'
// const BASE_URL = '/api'
const BASE_URL = 'http://192.168.43.89:8084/api'
// 缓存相关常量
const CACHE_PREFIX = 'API_CACHE_'
@@ -171,7 +172,7 @@ export const request = (options) => {
console.log(`[API] 请求开始: ${method} ${BASE_URL + url}`)
console.log(`[API] 请求参数:`, data)
console.log(`[API] 请求头:`, requestHeader)
console.log(`[API] needToken:`, needToken, 'cache:', cache)
uni.request({
url: BASE_URL + url,