From 1b3d60be47ccc687e26ad585f2453828adcd4e17 Mon Sep 17 00:00:00 2001 From: yuan Date: Fri, 5 Jan 2024 19:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=95=B0=E6=8D=AE=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/app.ts | 1 - src/components/Auth.vue | 2 +- src/components/contact/index.vue | 2 +- src/pages/contact/index.vue | 155 ++++++++++++++++++++----------- src/utils/GQLRequest.ts | 23 +---- src/utils/index.ts | 1 + src/utils/pinyin-helper.ts | 21 +++++ 8 files changed, 127 insertions(+), 79 deletions(-) create mode 100644 src/utils/pinyin-helper.ts diff --git a/components.d.ts b/components.d.ts index 79c0f6f..2ade2b7 100644 --- a/components.d.ts +++ b/components.d.ts @@ -29,6 +29,7 @@ declare module 'vue' { NutNavbar: typeof import('@nutui/nutui-taro')['Navbar'] NutRow: typeof import('@nutui/nutui-taro')['Row'] NutSearchbar: typeof import('@nutui/nutui-taro')['Searchbar'] + NutSkeleton: typeof import('@nutui/nutui-taro')['Skeleton'] NutSwitch: typeof import('@nutui/nutui-taro')['Switch'] } } diff --git a/src/app.ts b/src/app.ts index 1909096..06562e4 100644 --- a/src/app.ts +++ b/src/app.ts @@ -4,7 +4,6 @@ import './app.scss' import '@nutui/touch-emulator' import 'taro-icons/scss/FontAwesome.scss' - const App = createApp({ onShow (options) {}, // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖 diff --git a/src/components/Auth.vue b/src/components/Auth.vue index c38fb99..1ba59c7 100644 --- a/src/components/Auth.vue +++ b/src/components/Auth.vue @@ -29,8 +29,8 @@ export default { if (key === 'expires_in') { Session.set('expires_in_timestamp', new Date().getTime() + (value * 60 * 1000)) } - console.log(key, value); } + console.log(Session.all()) auth.isLoggedIn = true if (!Session.has('access_token')) { if (Taro.getCurrentPages().length > 0) { diff --git a/src/components/contact/index.vue b/src/components/contact/index.vue index 0f1b88f..6f8f72b 100644 --- a/src/components/contact/index.vue +++ b/src/components/contact/index.vue @@ -24,7 +24,7 @@ const clickItem = (key: string, item: any) => {