feat(miniprogram): add reusable web-view shell for H5 business pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8fbe0679c9
commit
57a831a36f
4 files changed
+95
-4
No files matched your search
@@ -24,7 +24,8 @@ export const AUTH_API = {
|
||||
LOGOUT: '/web/auth/logout',
|
||||
CURRENT_USER: '/web/auth/current-user',
|
||||
REFRESH_TOKEN: '/web/auth/refresh-token',
|
||||
MENU_CODES: '/web/auth/menu-codes'
|
||||
MENU_CODES: '/web/auth/menu-codes',
|
||||
MP_WEBVIEW_TICKET: '/web/auth/mp-webview-ticket'
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +70,8 @@ export const PAGE_PATHS = {
|
||||
plTransportPlan: '/pages/pl/transport-plan/list',
|
||||
plTransportPlanDetail: '/pages/pl/transport-plan/detail',
|
||||
plDriverPlan: '/pages/pl/driver-plan/list',
|
||||
plDriverPlanDetail: '/pages/pl/driver-plan/detail'
|
||||
plDriverPlanDetail: '/pages/pl/driver-plan/detail',
|
||||
mpWebview: '/pages/common/mp-webview'
|
||||
}
|
||||
|
||||
/** 工作台菜单 code → 页面路径 */
|
||||
@@ -89,7 +91,8 @@ export const WORKBENCH_ROUTE_MAP = {
|
||||
'bx-wf-reimburse': PAGE_PATHS.bxWfReimburse,
|
||||
'pl-fuel-register': PAGE_PATHS.plFuelRegister,
|
||||
'pl-transport-plan': PAGE_PATHS.plTransportPlan,
|
||||
'pl-driver-plan': PAGE_PATHS.plDriverPlan
|
||||
'pl-driver-plan': PAGE_PATHS.plDriverPlan,
|
||||
'pl-plan-webview': PAGE_PATHS.mpWebview + '?path=' + encodeURIComponent('/m/pl/plan')
|
||||
}
|
||||
|
||||
export const TOKEN_KEY = 'sx_token'
|
||||
|
||||
Reference in new issue
Block a user