From dc53c6e8711b91301c23a0be7ce561f3cc5c3ceb Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Thu, 13 Aug 2026 19:17:21 +0800 Subject: [PATCH] feat(mobile-oa-h5): add service-account OAuth bind page for OA notify Co-authored-by: Cursor --- mobile-oa-h5/.env.development | 2 + mobile-oa-h5/.env.example | 5 + mobile-oa-h5/src/router.js | 4 +- mobile-oa-h5/src/views/OaMpBind.vue | 183 ++++++++++++++++++++++++++++ 4 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 mobile-oa-h5/.env.example create mode 100644 mobile-oa-h5/src/views/OaMpBind.vue diff --git a/mobile-oa-h5/.env.development b/mobile-oa-h5/.env.development index 6945e1bd..193f36f1 100644 --- a/mobile-oa-h5/.env.development +++ b/mobile-oa-h5/.env.development @@ -1,3 +1,5 @@ VITE_API_BASE=/api # 与 web-admin `.env.development` / mobile-h5 LOCAL_MINIO 对齐 VITE_MINIO_BASE_URL=http://47.99.164.66:20004/zkxw +# 微信服务号 AppID(OA 审批通知网页授权绑定;勿放 Secret) +VITE_WX_MP_APPID= diff --git a/mobile-oa-h5/.env.example b/mobile-oa-h5/.env.example new file mode 100644 index 00000000..93c790bc --- /dev/null +++ b/mobile-oa-h5/.env.example @@ -0,0 +1,5 @@ +VITE_API_BASE=/api +VITE_MINIO_BASE_URL= +# 微信服务号 AppID(OA 审批通知网页授权绑定;勿放 Secret) +# 运维须在服务号后台配置网页授权回调域名,并在小程序配置业务域名 +VITE_WX_MP_APPID= diff --git a/mobile-oa-h5/src/router.js b/mobile-oa-h5/src/router.js index fb911a68..9f9b5c08 100644 --- a/mobile-oa-h5/src/router.js +++ b/mobile-oa-h5/src/router.js @@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router' import FormSink from './views/FormSink.vue' import OaStart from './views/OaStart.vue' import OaDetail from './views/OaDetail.vue' +import OaMpBind from './views/OaMpBind.vue' export default createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -12,6 +13,7 @@ export default createRouter({ }, { path: '/oa-form-sink', component: FormSink }, { path: '/oa-start', component: OaStart }, - { path: '/oa-detail', component: OaDetail } + { path: '/oa-detail', component: OaDetail }, + { path: '/oa-mp-bind', component: OaMpBind } ] }) diff --git a/mobile-oa-h5/src/views/OaMpBind.vue b/mobile-oa-h5/src/views/OaMpBind.vue new file mode 100644 index 00000000..76375d41 --- /dev/null +++ b/mobile-oa-h5/src/views/OaMpBind.vue @@ -0,0 +1,183 @@ + + + + +