diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..ff83c77 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html index 043bc01..71e393f 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,9 @@ + + - + -
- +
+ - + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 71e74da..d3e644d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -78,7 +78,7 @@ const setLocalStorage = async () => { return } } else { - const obj = { expire: "", value: cookiesToken } + const obj = { expire: "604800", value: cookiesToken } localStorage.setItem("app_token", JSON.stringify(obj)); } diff --git a/src/packages/pages/forget_pwd/forget_pwd.vue b/src/packages/pages/forget_pwd/forget_pwd.vue index 5a0f37b..6cc459c 100644 --- a/src/packages/pages/forget_pwd/forget_pwd.vue +++ b/src/packages/pages/forget_pwd/forget_pwd.vue @@ -14,7 +14,8 @@ - + @@ -56,6 +57,15 @@ import { SMSEnum } from '@/enums/appEnums' import { useAppStore } from '@/stores/app' import { reactive, ref, shallowRef, computed } from 'vue' import { onLoad } from '@dcloudio/uni-app' +import { useUserStore } from '@/stores/user' + +const userStore = useUserStore() + + +const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}') + +console.log('userStore', userInfo); + enum ForgotPwdSceneEnum { MOBILE = 2, @@ -89,7 +99,7 @@ const uCodeRef = shallowRef() const codeTips = ref('') const formData = reactive({ mobile: '', - email: '', + email: userInfo.email || '', code: '', scene: 3, password: '', @@ -100,7 +110,7 @@ const isValidMobile = computed(() => uni.$u.test.mobile(formData.mobile)) const isValidMailBox = computed(() => uni.$u.test.email(formData.email)) const isMobile = computed(() => formData.scene == ForgotPwdSceneEnum.MOBILE) const isMailbox = computed(() => formData.scene == ForgotPwdSceneEnum.MAILBOX) -console.log('isMailbox', isMailbox.value); + const codeChange = (text: string) => { codeTips.value = text diff --git a/src/pages/ai_creation/ai_creation.vue b/src/pages/ai_creation/ai_creation.vue index 5e7fa3b..89ea639 100644 --- a/src/pages/ai_creation/ai_creation.vue +++ b/src/pages/ai_creation/ai_creation.vue @@ -8,43 +8,22 @@ - + -