From 5e2ef0f25caec9e295d527af021260f40f0439d5 Mon Sep 17 00:00:00 2001 From: leiyun Date: Sat, 21 Mar 2026 16:51:16 +0800 Subject: [PATCH] save --- pages.json | 7 ++ pages/profile/profile.vue | 42 +++++-- pages/sign/sign.vue | 135 +++++++-------------- pages/sign/signature.vue | 239 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 322 insertions(+), 101 deletions(-) create mode 100644 pages/sign/signature.vue diff --git a/pages.json b/pages.json index 0edfd05..4bb6d6e 100644 --- a/pages.json +++ b/pages.json @@ -55,6 +55,13 @@ "navigationBarTitleText": "授权签名" } }, + { + "path": "pages/sign/signature", + "style": { + "navigationStyle": "default", + "navigationBarTitleText": "手写签名" + } + }, { "path": "pages/message/message", "style": { diff --git a/pages/profile/profile.vue b/pages/profile/profile.vue index 3aed32b..9b231be 100644 --- a/pages/profile/profile.vue +++ b/pages/profile/profile.vue @@ -38,7 +38,7 @@ 已驳回 - + @@ -46,7 +46,7 @@ - + @@ -141,26 +141,48 @@ const fetchUnreadCount = async () => { } catch (e) {} } -const goTo = (url) => { - uni.navigateTo({ url }) +const checkLogin = () => { + if (!isLoggedIn.value) { + uni.showToast({ title: '请先登录', icon: 'none' }) + setTimeout(() => goLogin(), 1500) + return false + } + return true } -const goMyInfo = () => { +const checkAuth = () => { + if (!checkLogin()) return false if (!isAuthed.value) { uni.showToast({ title: '请先完成实名认证', icon: 'none' }) - return + return false } + return true +} + +const goTo = (url) => { + uni.navigateTo({ url }) +} + +const goMyInfo = () => { + if (!checkAuth()) return uni.navigateTo({ url: '/pages/myinfo/myinfo' }) } const goChangePhone = () => { - if (!isAuthed.value) { - uni.showToast({ title: '请先完成实名认证', icon: 'none' }) - return - } + if (!checkAuth()) return uni.navigateTo({ url: '/pages/change-phone/change-phone' }) } +const goMessage = () => { + if (!checkLogin()) return + uni.navigateTo({ url: '/pages/message/message' }) +} + +const goVerify = () => { + if (!checkLogin()) return + uni.navigateTo({ url: '/pages/verify/verify' }) +} + const goLogin = () => { uni.navigateTo({ url: '/pages/login/index' }) } diff --git a/pages/sign/sign.vue b/pages/sign/sign.vue index 6bd77a1..0bd4fcf 100644 --- a/pages/sign/sign.vue +++ b/pages/sign/sign.vue @@ -1,6 +1,5 @@ + +