|
|
<template>
|
|
|
<div v-if="showBind" class="third-bind-wrapper">
|
|
|
<div class="bind-dialog">
|
|
|
<p class="bind-title">关联有货UFO账户</p>
|
|
|
<div class="under-row">
|
|
|
<i class="iconfont iconphone2"></i>
|
|
|
<div class="select-block">
|
|
|
<div class="left-row-title">
|
|
|
<CubeSelect class="area-code-select" v-model="code" :options="options" :title="selectTitle"></CubeSelect>
|
|
|
</div>
|
|
|
<CubeInput class="bind-input" v-model="phone" placeholder="请输入手机号"></CubeInput>
|
|
|
<CubeInput class="bind-input" :class="phone ? '' : 'bind-input-phone'" v-model="phone"></CubeInput>
|
|
|
</div>
|
|
|
<div class="under-row">
|
|
|
<i class="iconfont iconyanzhengma"></i>
|
|
|
<CubeInput class="bind-input" v-model="smsCode" placeholder="请输入验证码"></CubeInput>
|
|
|
<div class="left-row-title">
|
|
|
验证码
|
|
|
</div>
|
|
|
<CubeInput class="bind-input" :class="smsCode ? '' : 'bind-input-code'" v-model="smsCode"></CubeInput>
|
|
|
<CubeButton class="send-sms-btn" :disabled="!!sendBtnText" @click="sendSMS">{{sendBtnText || '获取验证码'}}</CubeButton>
|
|
|
</div>
|
|
|
<div class="submit-row">
|
|
|
<CubeButton class="bind-btn" @click="bindSubmit">登录</CubeButton>
|
|
|
<CubeButton class="bind-btn" :disabled="submitDisable" @click="bindSubmit">登录</CubeButton>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -76,6 +78,11 @@ export default { |
|
|
sendBtnText: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
submitDisable() {
|
|
|
return !(this.phone && this.smsCode);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['sendBindSms', 'submitThirdBind']),
|
|
|
show() {
|
...
|
...
|
@@ -96,13 +103,13 @@ export default { |
|
|
let total = 60;
|
|
|
let timer = setInterval(() => {
|
|
|
if (--total) {
|
|
|
this.sendBtnText = '重新获取 ' + total;
|
|
|
this.sendBtnText = '重发' + total;
|
|
|
} else {
|
|
|
this.sendBtnText = '';
|
|
|
clearInterval(timer);
|
|
|
}
|
|
|
}, 1000);
|
|
|
this.sendBtnText = '重新获取 ' + total;
|
|
|
this.sendBtnText = '重发' + total;
|
|
|
|
|
|
this.sendBindSms({
|
|
|
mobile: this.phone,
|
...
|
...
|
@@ -151,42 +158,30 @@ export default { |
|
|
|
|
|
.bind-dialog {
|
|
|
width: 670px;
|
|
|
height: 600px;
|
|
|
padding: 100px 60px;
|
|
|
font-size: 24px;
|
|
|
padding: 64px 48px 80px;
|
|
|
font-size: 28px;
|
|
|
box-sizing: border-box;
|
|
|
background-color: #fff;
|
|
|
color: #444;
|
|
|
}
|
|
|
|
|
|
.bind-title {
|
|
|
font-size: 48px;
|
|
|
line-height: 66px;
|
|
|
font-weight: 500;
|
|
|
margin-bottom: 32px;
|
|
|
}
|
|
|
|
|
|
.under-row {
|
|
|
line-height: 80px;
|
|
|
line-height: 120px;
|
|
|
border-bottom: 1px solid #eaeaea;
|
|
|
margin-bottom: 20px;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
.iconfont {
|
|
|
font-size: 40px;
|
|
|
margin-right: 10px;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.select-block {
|
|
|
min-width: 130px;
|
|
|
position: relative;
|
|
|
margin-right: 10px;
|
|
|
|
|
|
&:after {
|
|
|
content: "";
|
|
|
width: 1px;
|
|
|
background-color: #eaeaea;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
top: 30%;
|
|
|
bottom: 30%;
|
|
|
.left-row-title {
|
|
|
width: 150px;
|
|
|
flex-shrink: 0;
|
|
|
color: #999;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -198,7 +193,7 @@ export default { |
|
|
}
|
|
|
|
|
|
/deep/ .cube-select-text {
|
|
|
font-size: 12px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -206,22 +201,48 @@ export default { |
|
|
flex-grow: 1;
|
|
|
|
|
|
&:after {
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
border: 0;
|
|
|
font-size: 28px;
|
|
|
line-height: 40px;
|
|
|
transform: scale(1);
|
|
|
top: 50%;
|
|
|
margin-top: -20px;
|
|
|
color: #ccc;
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
|
|
|
/deep/ .cube-input-field {
|
|
|
font-size: 12px;
|
|
|
font-size: 20px;
|
|
|
padding: 10px 0;
|
|
|
color: #000;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.bind-input-phone:after {
|
|
|
content: "请输入手机号";
|
|
|
}
|
|
|
|
|
|
.bind-input-code:after {
|
|
|
content: "请输入验证码";
|
|
|
}
|
|
|
|
|
|
.send-sms-btn {
|
|
|
width: 180px;
|
|
|
height: 54px;
|
|
|
line-height: 54px;
|
|
|
font-size: 28px;
|
|
|
padding: 0;
|
|
|
font-size: 12px;
|
|
|
border-radius: 27px;
|
|
|
transform: scale(0.9);
|
|
|
text-align: right;
|
|
|
background: none;
|
|
|
color: #000;
|
|
|
margin-left: 10px;
|
|
|
|
|
|
&.cube-btn_disabled {
|
|
|
color: #999;
|
|
|
}
|
|
|
|
|
|
&:after {
|
|
|
border: 0;
|
...
|
...
|
@@ -233,12 +254,17 @@ export default { |
|
|
}
|
|
|
|
|
|
.bind-btn {
|
|
|
height: 120px;
|
|
|
height: 90px;
|
|
|
font-size: 28px;
|
|
|
background: #022c46;
|
|
|
border-radius: 46px;
|
|
|
|
|
|
&.cube-btn_disabled {
|
|
|
background: #ccc;
|
|
|
}
|
|
|
|
|
|
&:after {
|
|
|
border: 0;
|
|
|
}
|
|
|
}
|
|
|
</style> |
...
|
...
|
|