|
@@ -80,11 +80,11 @@ onUnmounted(()=>{
|
|
|
clearTimeout(sendCodeInterval)
|
|
|
})
|
|
|
|
|
|
-const handleLogin=async ()=>{
|
|
|
+const handleLogin=async (type)=>{
|
|
|
let params = {}
|
|
|
if (type === 'phone') {
|
|
|
params = {
|
|
|
- area_num: selectArea.value.value,
|
|
|
+ area_num: Number(selectArea.value.value),
|
|
|
mobile: form.mobile,
|
|
|
verify_code: form.code,
|
|
|
bind_type: 1
|
|
@@ -162,7 +162,7 @@ onMounted(()=>{
|
|
|
<input v-model="form.code" placeholder="请输入验证码" />
|
|
|
<span :class="['send-code-btn',isSendCode&&'send-code-disabled']" @click="handleSendCode('phone')">{{isSendCode?'已发送':'发送验证码'}}</span>
|
|
|
</div>
|
|
|
- <div class="global-main-btn login-btn" @click="handleLogin">登录</div>
|
|
|
+ <div class="global-main-btn login-btn" @click="handleLogin('phone')">登录</div>
|
|
|
<div class="bot-img">
|
|
|
<img src="@/assets/icon-login-email.png" alt="" @click="typeChange('email')">
|
|
|
<div>邮箱登录</div>
|
|
@@ -179,7 +179,7 @@ onMounted(()=>{
|
|
|
<input v-model="form.code" placeholder="请输入验证码" />
|
|
|
<span :class="['send-code-btn',isSendCode&&'send-code-disabled']" @click="handleSendCode('email')">{{isSendCode?'已发送':'发送验证码'}}</span>
|
|
|
</div>
|
|
|
- <div class="global-main-btn login-btn" @click="handleLogin">登录</div>
|
|
|
+ <div class="global-main-btn login-btn" @click="handleLogin('email')">登录</div>
|
|
|
<div class="bot-img">
|
|
|
<img src="@/assets/icon-login-phone.png" alt="" @click="typeChange('phone')">
|
|
|
<div>手机号登录</div>
|