From ae4cbd46dcde5992056029493336c170630cdfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Sat, 2 Aug 2025 17:10:41 +0800 Subject: [PATCH] =?UTF-8?q?FEAT=20=3D>=20=E6=9C=AC=E6=AC=A1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E4=B8=BA=EF=BC=9A=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E7=8A=B6=E6=80=81=E9=93=BE=E6=8E=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ckApp/pages/index/index.vue | 4 +- ckApp/pages/index/test.vue | 42 ++--- nkebao/src/pages/iframe/init.tsx | 229 +++++++++++++++++++++++++ nkebao/src/router/module/index.tsx | 6 + nkebao/src/store/createPersistStore.ts | 74 +++++++- nkebao/src/store/module/app.ts | 130 ++++++++++++++ nkebao/src/store/module/settings.ts | 4 + nkebao/src/store/module/user.ts | 28 +-- 8 files changed, 474 insertions(+), 43 deletions(-) create mode 100644 nkebao/src/pages/iframe/init.tsx create mode 100644 nkebao/src/store/module/app.ts diff --git a/ckApp/pages/index/index.vue b/ckApp/pages/index/index.vue index a756e8e6..f89c991b 100644 --- a/ckApp/pages/index/index.vue +++ b/ckApp/pages/index/index.vue @@ -42,7 +42,7 @@ export default { data() { return { - baseUrl: 'https://kr-op.quwanzhi.com/iframe', + baseUrl: 'https://kr-op.quwanzhi.com/init', iframeUrl: '', // 动态构建的 URL receivedMessages: [], messageId: 0, @@ -55,7 +55,6 @@ methods: { // 构建 iframe URL,包含参数 buildIframeUrl() { - const params = []; Object.keys(this.urlParams).forEach(key => { const value = this.urlParams[key]; @@ -65,7 +64,6 @@ params.push(`${encodedKey}=${encodedValue}`); } }); - const queryString = params.join('&'); this.iframeUrl = queryString ? `${this.baseUrl}?${queryString}` : this.baseUrl; }, diff --git a/ckApp/pages/index/test.vue b/ckApp/pages/index/test.vue index 979f298b..a756e8e6 100644 --- a/ckApp/pages/index/test.vue +++ b/ckApp/pages/index/test.vue @@ -33,12 +33,12 @@ -