付延余
2022-08-23 a88092021b14abc67c2f2e53ce722d609632aeb5
pages/login/login.vue
@@ -22,14 +22,22 @@
   data() {
      return {
         formData:{
            username:'fyy',
            password:'123456!@#'
            username:'',
            password:''
         }
      };
   },
  onShow(){
     // 清除缓存
    if(uni.getStorageSync('userInfo')||uni.getStorageSync('access_token')||uni.getStorageSync('refresh_token')){
      this.$u.toast('成功进入登录页');
      uni.clearStorageSync();
    }
  },
   methods:{
      loginSubmit(){
         // console.log('login');
      console.log('点击登录');
      // console.log('login');
         uni.showLoading({
            title:'登录中...'
         });
@@ -61,7 +69,7 @@
            })
         }
      }
   }
};
</script>
@@ -104,7 +112,7 @@
      }
      .loginBtn {
         margin-top: vww(80);
         button {
            background-color: #007aff;
            color: #ffffff;