Browse Source

修改请求方式

lex-xin 5 years ago
parent
commit
b0f15613c2

+ 1 - 0
dist/css/AppLogin.52fce880.css

@@ -0,0 +1 @@
+.login[data-v-4b00ebee]{min-height:100vh;background:-webkit-gradient(linear,left top,left bottom,from(#15938b),to(#6dbeba));background:linear-gradient(180deg,#15938b,#6dbeba)}.container[data-v-4b00ebee]{padding:0 .48rem}.logo[data-v-4b00ebee]{padding-top:1rem;padding-bottom:.9rem;width:1.6rem;margin:0 auto}.logo img[data-v-4b00ebee]{width:inherit}.input-group[data-v-4b00ebee]{position:relative;height:.44rem;border-radius:.5rem;border:.02rem solid #fff;margin-bottom:.2rem;padding-left:.3rem;padding-right:.3rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.input-group .input[data-v-4b00ebee]{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:.14rem;color:#fff;background:transparent;border:none}.input-group .input[data-v-4b00ebee]::-webkit-input-placeholder{color:#fff}.input-group .input[data-v-4b00ebee]::-moz-placeholder{color:#fff}.input-group .input[data-v-4b00ebee]:-ms-input-placeholder{color:#fff}.input-group .input[data-v-4b00ebee]::-ms-input-placeholder{color:#fff}.input-group .input[data-v-4b00ebee]::placeholder{color:#fff}.input-group .code-text[data-v-4b00ebee]{position:absolute;right:0;-webkit-box-flex:1;-ms-flex:1;flex:1;display:block;width:.94rem;text-align:center;border-left:.02rem solid #fff}.input-group .code-text[data-v-4b00ebee],[data-v-4b00ebee] .van-count-down{font-size:.14rem;color:#fff;line-height:.3rem;height:.3rem}[data-v-4b00ebee] .van-button--large{height:.44rem;line-height:.42rem;color:#14928a;border:0}[data-v-4b00ebee] .van-button:active:before{opacity:.05}[data-v-4b00ebee] .van-button--disabled{opacity:1;color:rgba(0,0,0,.25)}.login-change[data-v-4b00ebee]{padding-top:.08rem;font-size:.14rem;color:#fff;float:right}

+ 0 - 1
dist/css/AppLogin.856ccd37.css

@@ -1 +0,0 @@
-.login[data-v-b94c668c]{min-height:100vh;background:-webkit-gradient(linear,left top,left bottom,from(#15938b),to(#6dbeba));background:linear-gradient(180deg,#15938b,#6dbeba)}.container[data-v-b94c668c]{padding:0 .48rem}.logo[data-v-b94c668c]{padding-top:1rem;padding-bottom:.9rem;width:1.6rem;margin:0 auto}.logo img[data-v-b94c668c]{width:inherit}.input-group[data-v-b94c668c]{position:relative;height:.44rem;border-radius:.5rem;border:.02rem solid #fff;margin-bottom:.2rem;padding-left:.3rem;padding-right:.3rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.input-group .input[data-v-b94c668c]{-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:.14rem;color:#fff;background:transparent;border:none}.input-group .input[data-v-b94c668c]::-webkit-input-placeholder{color:#fff}.input-group .input[data-v-b94c668c]::-moz-placeholder{color:#fff}.input-group .input[data-v-b94c668c]:-ms-input-placeholder{color:#fff}.input-group .input[data-v-b94c668c]::-ms-input-placeholder{color:#fff}.input-group .input[data-v-b94c668c]::placeholder{color:#fff}.input-group .code-text[data-v-b94c668c]{position:absolute;right:0;-webkit-box-flex:1;-ms-flex:1;flex:1;display:block;width:.94rem;text-align:center;border-left:.02rem solid #fff}.input-group .code-text[data-v-b94c668c],[data-v-b94c668c] .van-count-down{font-size:.14rem;color:#fff;line-height:.3rem;height:.3rem}[data-v-b94c668c] .van-button--large{height:.44rem;line-height:.42rem;color:#14928a;border:0}[data-v-b94c668c] .van-button:active:before{opacity:.05}[data-v-b94c668c] .van-button--disabled{opacity:1;color:rgba(0,0,0,.25)}.login-change[data-v-b94c668c]{padding-top:.08rem;font-size:.14rem;color:#fff;float:right}

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/AppLogin.33899616.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/AppLogin.88888065.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.765799a1.js


+ 11 - 7
src/views/app/AppLogin.vue

@@ -73,13 +73,6 @@ export default {
                 return
             }
 
-            queryUserByPhone({ mobile: this.phoneNumber }).then(res => {
-                let result = res.data
-                if(result.code == 200) {
-                    this.isRegister = result.data
-                }
-            })
-
             sendSms({
                 mobile: this.phoneNumber
             }).then(res => {
@@ -93,6 +86,17 @@ export default {
             })
         },
         onCodeLogin() { // 短信登录
+            
+            queryUserByPhone({ mobile: this.phoneNumber }).then(res => {
+                let result = res.data
+                if(result.code == 200) {
+                    this.isRegister = result.data
+                }
+                this.onLogin()
+            })
+            
+        },
+        onLogin() {
             let params = {
                 clientId: 'student',
                 clientSecret: 'student',

Some files were not shown because too many files changed in this diff