first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<template>
<!-- 认证1 页面 -->
<view class="content"></view>
</template>
<script>
import verification from '../../common/verification.js' //正则验证
export default {
data() {
return {
get_code: false,
count_time: 60,
phone: '',
code: '',
new_password: '',
sure_password: '',
}
},
// 跳过按钮的回调函数
onNavigationBarButtonTap(e) {
},
methods: {
// 获取验证码
getCode() {
this.get_code = !this.get_code
this.timer();
},
// 验证码计时器
timer() {
if (this.count_time > 0) {
this.count_time--;
this.get_code = true
setTimeout(this.timer, 1000);
} else {
this.count_time = 60;
this.get_code = false
}
},
sure() {
verification.isNull(this.phone, this.code, this.new_password, this.sure_password) // 非空验证
if (verification.isNull.prototype.the_Null == true) {
verification.isPhone(this.phone); // 手机号格式验证
}
if (verification.isPhone.prototype.the_isPhone == true) {
verification.isSamePsd(this.new_password, this.sure_password); // 两次密码是否相同
}
if (
verification.isNull.prototype.the_Null == true &&
verification.isPhone.prototype.the_isPhone == true &&
verification.isSamePsd.prototype.the_isSamePsd == true
) {
uni.navigateTo({
url: 'authentication'
});
}
}
}
}
</script>
<style>
</style>