feat(M08-D): 补加盟申请与跟进运营
This commit is contained in:
@@ -18,6 +18,7 @@ for (const pattern of [
|
||||
"activeModule = 'devices'",
|
||||
"activeModule = 'platformApps'",
|
||||
"activeModule = 'content'",
|
||||
"activeModule = 'franchise'",
|
||||
'平台运营总览',
|
||||
'StoresRoomsPanel',
|
||||
'OrdersPanel',
|
||||
@@ -27,6 +28,7 @@ for (const pattern of [
|
||||
'DevicesPanel',
|
||||
'PlatformAppsPanel',
|
||||
'ContentManagementPanel',
|
||||
'FranchisePanel',
|
||||
'运营总览',
|
||||
'savedToken',
|
||||
'loadCleaningWorkspace'
|
||||
@@ -208,6 +210,15 @@ assert.match(contentRoutes, /'\/admin-api\/media\/images'/);
|
||||
assert.match(contentRoutes, /'\/admin-api\/decorations'/);
|
||||
assert.match(contentRoutes, /'\/admin-api\/advertisements\/:id'/);
|
||||
|
||||
const franchise = read('admin/src/components/FranchisePanel.vue');
|
||||
for (const pattern of ['listFranchiseApplications', 'getFranchiseApplication',
|
||||
'assignFranchiseApplication', 'addFranchiseFollowUp', '加盟申请与跟进队列', '跟进历史']) {
|
||||
assert.match(franchise, new RegExp(pattern));
|
||||
}
|
||||
const franchiseRoutes = read('backend/src/routes/franchise.ts');
|
||||
assert.match(franchiseRoutes, /'\/app-api\/franchise-applications'/);
|
||||
assert.match(franchiseRoutes, /'\/admin-api\/franchise-applications\/:id\/follow-ups'/);
|
||||
|
||||
const routes = read('backend/src/routes/business-statistics.ts');
|
||||
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
|
||||
|
||||
@@ -249,6 +260,7 @@ for (const pattern of [
|
||||
'.content-metrics',
|
||||
'.asset-gallery',
|
||||
'.component-editor',
|
||||
'.franchise-metrics',
|
||||
'@media (max-width: 980px)',
|
||||
'@media (max-width: 560px)'
|
||||
]) {
|
||||
|
||||
@@ -142,4 +142,11 @@ for (const pattern of [
|
||||
assert.match(cleaner, new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
|
||||
}
|
||||
|
||||
const franchise = read('miniapp/pages/franchise/apply.js')
|
||||
+ read('miniapp/pages/franchise/apply.wxml')
|
||||
+ read('miniapp/pages/franchise/apply.json');
|
||||
for (const pattern of ['/franchise-applications', 'clientRequestId', 'contactPhone', '加盟合作']) {
|
||||
assert.match(franchise, new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
|
||||
}
|
||||
|
||||
console.log('PASS: M08-A/M08-B miniapp customer and cleaner pages use fixed domain and real app-api calls.');
|
||||
|
||||
Reference in New Issue
Block a user