feat(M08-A): 接入顾客端个人中心

This commit is contained in:
Codex
2026-06-25 11:43:25 +08:00
parent c7c869c18b
commit 7446852cca
14 changed files with 476 additions and 4 deletions
+14 -1
View File
@@ -11,7 +11,8 @@ for (const page of [
'pages/store/detail',
'pages/room/detail',
'pages/orders/list',
'pages/orders/detail'
'pages/orders/detail',
'pages/profile/index'
]) {
assert.ok(appJson.pages.includes(page), `${page} must be registered`);
}
@@ -59,4 +60,16 @@ for (const route of [
assert.match(orders, new RegExp(route.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
}
const profile = read('miniapp/pages/profile/index.js')
+ read('miniapp/pages/profile/index.wxml');
for (const pattern of [
'/profile',
'wallet.totalText',
'benefits.availableCoupons',
'benefits.activePackages',
'recentLedger'
]) {
assert.match(profile, new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
}
console.log('PASS: M08-A miniapp customer pages use fixed domain and real app-api calls.');