From 8a9d0a2f95e3ade75706092acf24e095c053a84e Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Tue, 11 Aug 2026 13:39:51 +0800 Subject: [PATCH] feat(mobile-h5): add OA start template list and web-view page Co-authored-by: Cursor --- mobile-h5/pages.json | 16 ++ mobile-h5/pages/oa/start/index.vue | 299 +++++++++++++++++++++++++++ mobile-h5/pages/oa/start/webview.vue | 30 +++ mobile-h5/utils/oa-api.js | 15 ++ 4 files changed, 360 insertions(+) create mode 100644 mobile-h5/pages/oa/start/index.vue create mode 100644 mobile-h5/pages/oa/start/webview.vue create mode 100644 mobile-h5/utils/oa-api.js diff --git a/mobile-h5/pages.json b/mobile-h5/pages.json index 7d82236c..01c02cb7 100644 --- a/mobile-h5/pages.json +++ b/mobile-h5/pages.json @@ -40,6 +40,22 @@ "navigationBarTextStyle": "white" } }, + { + "path": "pages/oa/start/index", + "style": { + "navigationBarTitleText": "发起审批", + "navigationBarBackgroundColor": "#0a9f6d", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/oa/start/webview", + "style": { + "navigationBarTitleText": "填写审批", + "navigationBarBackgroundColor": "#0a9f6d", + "navigationBarTextStyle": "white" + } + }, { "path": "pages/demo/list", "style": { diff --git a/mobile-h5/pages/oa/start/index.vue b/mobile-h5/pages/oa/start/index.vue new file mode 100644 index 00000000..49d46ca8 --- /dev/null +++ b/mobile-h5/pages/oa/start/index.vue @@ -0,0 +1,299 @@ + + + + + diff --git a/mobile-h5/pages/oa/start/webview.vue b/mobile-h5/pages/oa/start/webview.vue new file mode 100644 index 00000000..bced69ea --- /dev/null +++ b/mobile-h5/pages/oa/start/webview.vue @@ -0,0 +1,30 @@ + + + diff --git a/mobile-h5/utils/oa-api.js b/mobile-h5/utils/oa-api.js new file mode 100644 index 00000000..da5fbbfe --- /dev/null +++ b/mobile-h5/utils/oa-api.js @@ -0,0 +1,15 @@ +import { get } from './request.js' +import { getToken } from './auth.js' + +function authHeader() { + const token = getToken() + return token ? { Authorization: 'Bearer ' + token } : {} +} + +export function fetchOaGroupList() { + return get('/web/admin/oa-approval/groups', authHeader()) +} + +export function fetchOaTemplates() { + return get('/web/admin/oa-approval/templates', authHeader()) +}