peixue-dev/Archive/peidu-temp-files/scripts/🚀立即编译测试-日历统计修复-2026-01-24.bat

58 lines
1.5 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 日历统计数据修复 - 立即编译测试
echo 创建时间: 2026-01-24
echo ========================================
echo.
echo [1/3] 进入前端目录...
cd /d "%~dp0uniapp"
if errorlevel 1 (
echo ❌ 错误: 无法进入uniapp目录
pause
exit /b 1
)
echo ✅ 已进入前端目录
echo.
echo [2/3] 重新编译前端...
echo 正在编译,请稍候...
call npm run build:mp-weixin
if errorlevel 1 (
echo ❌ 错误: 前端编译失败
pause
exit /b 1
)
echo ✅ 前端编译成功
echo.
echo [3/3] 编译完成!
echo.
echo ========================================
echo 📋 下一步操作
echo ========================================
echo.
echo 1. 在微信开发者工具中点击"编译"按钮
echo 2. 或者在手机上删除小程序重新打开
echo.
echo 3. 测试步骤:
echo a. 打开"我的预约"页面,记录统计数字
echo b. 打开"服务日历"页面,记录统计数字
echo c. 对比两个页面的数字是否一致
echo.
echo 4. 预期结果:
echo - 两个页面的"全部"数字应该一致例如62
echo - 两个页面的"待服务"数字应该一致例如60
echo - 两个页面的"已完成"数字应该一致例如2
echo.
echo 5. 如果数字还是不一致:
echo - 检查浏览器控制台日志
echo - 执行 sql\🔍验证日历统计数据-2026-01-24.sql
echo - 查看后端日志
echo.
echo ========================================
echo.
pause