6
This commit is contained in:
@@ -5,17 +5,17 @@
|
||||
</view>
|
||||
<view class="title">验证码已发送至手机</view>
|
||||
<view class="sub_title">
|
||||
{{ `+${userInfo.areaCode} ${userInfo.phoneNumber}` }}
|
||||
{{ `+${userInfo.region} ${userInfo.mobile}` }}
|
||||
</view>
|
||||
<view class="code_container">
|
||||
<!-- <view class="code_title">请输入验证码</view> -->
|
||||
<u-code-input fontSize="24" color="#000" :focus="true" v-model="codeValue" hairline space="16"
|
||||
@finish="checkCode" />
|
||||
<view class="code_des">
|
||||
<text>
|
||||
<text v-if="count > 0">
|
||||
{{ `${count}s` }}
|
||||
后
|
||||
</text>
|
||||
后
|
||||
<text @click="getSmsAgain"> 重发验证码 </text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -23,16 +23,9 @@
|
||||
</template>
|
||||
<script>
|
||||
import user from "../../../store/modules/user";
|
||||
import {
|
||||
businessSendSms,
|
||||
businessVerifyCode
|
||||
} from "@/api/login";
|
||||
import {
|
||||
SmsUserFor
|
||||
} from "@/constant";
|
||||
import {
|
||||
checkLoginError
|
||||
} from "@/util/common";
|
||||
import { businessSendSms, businessVerifyCode } from "@/api/login";
|
||||
import { SmsUserFor } from "@/constant";
|
||||
import { checkLoginError } from "@/util/common";
|
||||
let timer;
|
||||
export default {
|
||||
data() {
|
||||
@@ -40,8 +33,8 @@ import {
|
||||
codeValue: "",
|
||||
count: 60,
|
||||
userInfo: {
|
||||
phoneNumber: "",
|
||||
areaCode: "",
|
||||
mobile: "",
|
||||
region: "",
|
||||
email: "",
|
||||
code: "",
|
||||
type: "email",
|
||||
@@ -74,10 +67,10 @@ import {
|
||||
},
|
||||
checkCode(value) {
|
||||
const options = {
|
||||
mobile: this.userInfo.phoneNumber,
|
||||
mobile: this.userInfo.mobile,
|
||||
email: this.userInfo.email,
|
||||
type: this.userInfo.type,
|
||||
areaCode: `+${this.userInfo.areaCode}`,
|
||||
region: `+${this.userInfo.region}`,
|
||||
event: this.isRegister ? 'register' : 'reset_pwd',
|
||||
code: value,
|
||||
};
|
||||
@@ -115,10 +108,10 @@ import {
|
||||
getSmsAgain() {
|
||||
if (this.count === 0) {
|
||||
const options = {
|
||||
mobile: this.userInfo.phoneNumber,
|
||||
mobile: this.userInfo.mobile,
|
||||
email: this.userInfo.email,
|
||||
type: this.userInfo.type,
|
||||
areaCode: `+${this.userInfo.areaCode}`,
|
||||
region: `+${this.userInfo.region}`,
|
||||
event: this.isRegister ? 'register' : 'reset_pwd',
|
||||
};
|
||||
businessSendSms(options)
|
||||
|
||||
Reference in New Issue
Block a user