diff --git a/gym-manage-uniapp/manifest.json b/gym-manage-uniapp/manifest.json
index 33287b1..f5c7cb8 100644
--- a/gym-manage-uniapp/manifest.json
+++ b/gym-manage-uniapp/manifest.json
@@ -50,7 +50,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "touristappid",
+ "appid" : "wx54631042f6754d55",
"setting" : {
"urlCheck" : false
},
diff --git a/gym-manage-uniapp/pages.json b/gym-manage-uniapp/pages.json
index 8227539..da2f516 100644
--- a/gym-manage-uniapp/pages.json
+++ b/gym-manage-uniapp/pages.json
@@ -224,6 +224,13 @@
"style": {
"navigationBarTitleText": "团课列表"
}
+ },
+ {
+ "path": "pages/groupCourse/detail",
+ "style": {
+ "navigationBarTitleText": "课程详情",
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/gym-manage-uniapp/pages/groupCourse/detail.vue b/gym-manage-uniapp/pages/groupCourse/detail.vue
new file mode 100644
index 0000000..38c5df9
--- /dev/null
+++ b/gym-manage-uniapp/pages/groupCourse/detail.vue
@@ -0,0 +1,908 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ course.courseName }}
+
+
+ {{ statusText }}
+
+
+ {{ courseTypeText }}
+
+
+
+
+
+
+ {{ formatDate(course.startTime) }}
+
+
+
+ {{ formatTime(course.startTime) }} - {{ formatTime(course.endTime) }}
+
+
+
+ {{ course.location }}
+
+
+
+
+
+
+
+
+ {{ course.description }}
+
+
+
+
+
+
+
+
+ 课程容量
+
+ {{ course.currentMembers }} / {{ course.maxMembers }}人
+
+
+
+
+ 课程时长
+
+ {{ formatDuration(course.startTime, course.endTime) }}
+
+
+
+
+ 教练
+
+ ID: {{ course.coachId }}
+
+
+
+
+ 支付方式
+
+
+
+ 储值卡
+ ¥{{ course.storedValueAmount }}
+
+
+
+
+
+ 次卡
+ {{ course.pointCardAmount }}次
+
+
+
+
+
+ 免费
+
+
+
+
+
+
+
+
+
+
+ ●
+ 请在课程开始前30分钟到达教室
+
+
+ ●
+ 如需取消预约,请提前2小时操作
+
+
+ ●
+ 课程开始后将无法取消预约
+
+
+ ●
+ 迟到超过15分钟将无法入场
+
+
+
+
+
+
+
+
+ ¥{{ selectedPrice.amount }}
+
+
+
+ {{ selectedPrice.amount }}次
+
+ 免费
+
+
+ {{ canBook ? '立即预约' : (course.currentMembers >= course.maxMembers ? '已满员' : statusText) }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/gym-manage-uniapp/utils/request.js b/gym-manage-uniapp/utils/request.js
index 7fed2bf..e7a1898 100644
--- a/gym-manage-uniapp/utils/request.js
+++ b/gym-manage-uniapp/utils/request.js
@@ -1,4 +1,4 @@
-const BASE_URL = 'http://192.168.43.89:8084/api'
+const BASE_URL = 'http://192.168.5.15:8084/api'
// 缓存相关常量
const CACHE_PREFIX = 'API_CACHE_'
diff --git a/gym-manage-uniapp/vite.config.js b/gym-manage-uniapp/vite.config.js
index 78095c3..879e01c 100644
--- a/gym-manage-uniapp/vite.config.js
+++ b/gym-manage-uniapp/vite.config.js
@@ -14,7 +14,7 @@ export default defineConfig({
proxy: {
// 匹配所有 /api 开头的请求
'/api': {
- target: 'http://localhost:8084', // 你的后端SpringBoot地址
+ target: 'http://192.168.5.15:8084', // 你的后端SpringBoot地址
changeOrigin: true, // 开启跨域伪装
// rewrite: (path) => path.replace(/^\/areyouok/, '')
// 举例:前端请求 /api/login → 代理成 http://localhost:8088/login