feat: implement miniapp C-group pages with real API calls and design tokens

This commit is contained in:
Codex
2026-09-14 10:02:22 +08:00
parent bb380d40f6
commit 63cbbff2de
20 changed files with 300 additions and 23 deletions
+7
View File
@@ -5,6 +5,13 @@ declare const wx: WechatMiniprogram.Wx;
function isDev(): boolean {
try {
const accountInfo = typeof wx.getAccountInfoSync === 'function'
? wx.getAccountInfoSync()
: null;
if (accountInfo?.miniProgram?.envVersion === 'develop') {
return true;
}
const info = (wx.getDeviceInfo ? wx.getDeviceInfo() : wx.getSystemInfoSync()) as any;
return info.platform === 'devtools';
} catch {