From 028255207627f5207a0e4f942003aabeed4db99b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 01 十一月 2022 15:50:27 +0800
Subject: [PATCH] 新增透析方案

---
 src/views/login/index.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index f30bd9c..a71cd46 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -44,14 +44,15 @@
     const onSubmit = (values:any) => {
         console.log('submit', values)
         loadingBUt.value=true
-        ajaxPost('/patient/info/wechatLogin2',`mobile=${username.value}&password=${password.value}`,config).then((re:any)=>{
+        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===''){
                 Toast('登录失败,请重新登录')
             } else {
                 console.log('得到tokeng')
                 Session.set('token', re)
-                Toast('登录成功。。。。。')
+                Toast('登录成功')
                 getUserinfo()
             }
         }).finally(()=>{
@@ -81,7 +82,7 @@
                 Toast('登录失败,请重新登录')
             } else {
                 Session.set('token', re)
-                Toast('登录成功。。。。。')
+                Toast('登录成功')
                 getUserinfo()
             }
         })
@@ -136,10 +137,10 @@
                         ajaxPost('patient/info/wechatLogin','openId='+openId,config).then((re:any)=>{
                             console.log('openid换的accesstoken=',re)
                             if (re===''){
-                                Toast('请填写表单登录。。')
+                                Toast('请填写表单登录')
                             } else {
                                 Session.set('token', re)
-                                Toast('登录成功。。。。。')
+                                Toast('登录成功')
                                 getUserinfo()
                             }
                         })

--
Gitblit v1.8.0