|
@@ -13,13 +13,8 @@
|
|
icon-prefix="my-icon"
|
|
icon-prefix="my-icon"
|
|
icon="weixin"
|
|
icon="weixin"
|
|
@click="weixinLogin"
|
|
@click="weixinLogin"
|
|
- >微信授权登录</van-button
|
|
|
|
- >
|
|
|
|
- <p
|
|
|
|
- class="mt-4 text-gray-400 text-sm"
|
|
|
|
- style="font-size: 1rem; line-height: 2rem"
|
|
|
|
- @click="mimaLogin"
|
|
|
|
- >
|
|
|
|
|
|
+ >微信授权登录</van-button>
|
|
|
|
+ <p class="mt-4 text-gray-400 text-sm" style="font-size: 1rem; line-height: 2rem" @click="mimaLogin">
|
|
账号密码登录
|
|
账号密码登录
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
@@ -83,7 +78,7 @@ export default {
|
|
wxID: 1,
|
|
wxID: 1,
|
|
code: "",
|
|
code: "",
|
|
loginLoading: false,
|
|
loginLoading: false,
|
|
- showLoginType: true,
|
|
|
|
|
|
+ showLoginType: false,
|
|
countDownTime: 60000,
|
|
countDownTime: 60000,
|
|
loginForm: {
|
|
loginForm: {
|
|
phone: "",
|
|
phone: "",
|
|
@@ -169,6 +164,10 @@ export default {
|
|
},
|
|
},
|
|
onSubmit() {
|
|
onSubmit() {
|
|
this.loginLoading = true;
|
|
this.loginLoading = true;
|
|
|
|
+
|
|
|
|
+ this.loginForm.login_type = 2;
|
|
|
|
+ this.showLoginType = false;
|
|
|
|
+
|
|
adminLogin;
|
|
adminLogin;
|
|
this.$store
|
|
this.$store
|
|
.dispatch("user/login", this.loginForm)
|
|
.dispatch("user/login", this.loginForm)
|