App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-23 7b76391180904d58156aef13abcac0256ff7fcc1
pages/login/index.html
@@ -50,7 +50,8 @@
                  </van-field>
               </div>
               <div style="margin-top:30px;">
                  <van-button type="info" style="border-radius: 10px;" @click='loginClick' size="large">立即登录
                  <van-button type="info" style="border-radius: 10px;" :disabled="username===''||password===''"
                     @click='loginClick' size="large">立即登录
                  </van-button>
               </div>
            </div>
@@ -73,7 +74,7 @@
         },
         mounted() {
            console.log(formatParams(),1)
         },
         methods: {
            loginClick() {
@@ -105,18 +106,12 @@
                        username: res.data.username,
                        usertype: res.data.usertype
                     }
                     post('Login/ForcedOffline?userid=' + res.data.userid + '&usercode=' + res.data
                        .usercode + '&username=' + res.data.username + '&usertype=' + res.data
                        .usertype).then(res2 => {
                     post('Login/ForcedOffline' + formatParams(data2)).then(res2 => {
                        if (res2.code === '200') {
                           this.loginClick()
                        }
                     })
                  }
               }).catch(err => {
                  console.log(err);
               });