|
@@ -63,11 +63,14 @@ export default {
|
|
|
// });
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- // this.form.loginPwd = crypto.Encrypt(this.form.loginPwd)
|
|
|
- this.$u.api.getLogin(this.form).then(res=>{
|
|
|
+ // this.form.password = crypto.Encrypt(this.form.password)
|
|
|
+ let askParms = Object.assign({}, this.form);
|
|
|
+ askParms.password = crypto.Encrypt(askParms.password);
|
|
|
+ this.$u.api.getLogin(askParms).then(res=>{
|
|
|
if(res.code==200){
|
|
|
this.$u.vuex('vuex_user', res.data);
|
|
|
this.jumpIndex();
|
|
|
+ uni.setStorageSync('session_login_info', JSON.stringify(this.form));
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
icon:'none',
|
|
@@ -140,6 +143,7 @@ export default {
|
|
|
background: linear-gradient(99deg, #7A4398 0%, #5A5DB9 100%);
|
|
|
background-size: 100% auto;
|
|
|
min-height: 100vh;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
.top{
|
|
|
text-align: center;
|
|
@@ -147,7 +151,8 @@ export default {
|
|
|
color: #fff;
|
|
|
line-height: 98rpx;
|
|
|
font-weight: 800;
|
|
|
- padding: 180rpx 0 68rpx;
|
|
|
+ padding: 0 0 68rpx;
|
|
|
+ margin-top: 15vh;
|
|
|
.til{
|
|
|
|
|
|
}
|