|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <div class="container-login100-form-btn"> | 
|---|
|  |  |  | <div class="wrap-login100-form-btn"> | 
|---|
|  |  |  | <div class="wrap-login100-form-btn" :class="{'login-loading': isLoging}" v-loading="isLoging" element-loading-background="rgb(0 0 0 / 0%);" element-loading-custom-class="login-loading-class"> | 
|---|
|  |  |  | <div class="login100-form-bgbtn"></div> | 
|---|
|  |  |  | <button class="login100-form-btn" @click="login">登录</button> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | isLoging: false, | 
|---|
|  |  |  | showPassword: false, | 
|---|
|  |  |  | loginLoading: false, | 
|---|
|  |  |  | username: '', | 
|---|
|  |  |  | password: '' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | params: loginParam | 
|---|
|  |  |  | }).then(function (res) { | 
|---|
|  |  |  | console.log(JSON.stringify(res)); | 
|---|
|  |  |  | if (res.data == "success") { | 
|---|
|  |  |  | if (res.data.code == 0 && res.data.msg == "success") { | 
|---|
|  |  |  | that.$cookies.set("session", {"username": that.username}) ; | 
|---|
|  |  |  | //登录成功后 | 
|---|
|  |  |  | that.cancelEnterkeyDefaultAction(); | 
|---|