From e26771454f101a7ac90fcd1a81d511d1899d34e3 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 11:58:05 +0800
Subject: [PATCH] 修改登录

---
 src/views/login/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 3929c5f..f5dc8c5 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -45,7 +45,7 @@
     const onSubmit = (values:any) => {
         console.log('submit', values)
         loadingBUt.value=true
-        const openid='odFja56xfwSZDHhAEMn-JotSzlRc'
+        // const openid='odFja56xfwSZDHhAEMn-JotSzlRc'
         ajaxPost('/patient/info/wechatLogin2',`mobile=${username.value}&password=${password.value}&openId=${openid}`,config).then((re:any)=>{
             console.log(re)
             if (re===''){
@@ -72,9 +72,9 @@
         })
     }
     const onSubmit3=(values:any)=>{
-        userInfo.info.openid='odFja56xfwSZDHhAEMn-JotSzlRc'
+        // userInfo.info.openid='odFja56xfwSZDHhAEMn-JotSzlRc'
         if (userInfo.info.openid===''){
-            Toast('没有获取到openid33')
+            Toast('没有获取到openid')
             return
         }
         console.log('提交表单',ruleForm3.value,values)
@@ -132,6 +132,7 @@
         // Session.remove('token')
         // 判断是否有token 和userinfo
         const token=Session.get('token')
+        alert(token)
         if (token && userInfo.info.openid!==''){
             console.log('已经登录了')
             getUserinfo()

--
Gitblit v1.8.0