小程序修改代码
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<!-- 显示查询结果 -->
|
||||
<view class="flex-col mt-18">
|
||||
<!-- 审核失败 -->
|
||||
<view wx:if="{{status === '审核失败'}}" class="flex-col section_2">
|
||||
<view wx:if="{{status === '已拒绝'}}" class="flex-col section_2">
|
||||
<view class="flex-row justify-center self-start section_3">
|
||||
<image class="image_2" src="./images/flase.png" />
|
||||
<text class="font text_2 ml-8">审核失败</text>
|
||||
|
@ -10,7 +10,15 @@ Page({
|
||||
confirmPwd: '',
|
||||
countdown: 0,
|
||||
codeButtonText: '发送验证码',
|
||||
_timer: null
|
||||
_timer: null,
|
||||
role: '',
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
console.log(options);
|
||||
this.setData({
|
||||
role: options.role
|
||||
})
|
||||
},
|
||||
|
||||
// 手机号输入
|
||||
@ -92,7 +100,7 @@ Page({
|
||||
|
||||
// 重置密码
|
||||
resetPassword() {
|
||||
const { phone, code, newPwd, confirmPwd } = this.data;
|
||||
const { phone, code, newPwd, confirmPwd, role } = this.data;
|
||||
// 1. 非空校验
|
||||
if (!validate(this.data, {
|
||||
phone: '请输入手机号',
|
||||
@ -117,7 +125,8 @@ Page({
|
||||
verificationCode: code,
|
||||
userPassword: newPwd,
|
||||
userConfirmPassword: confirmPwd,
|
||||
sourceToken: null
|
||||
sourceToken: null,
|
||||
role: role
|
||||
},
|
||||
success: res => {
|
||||
if (res.data.code === 1) {
|
||||
|
@ -183,7 +183,7 @@ Page({
|
||||
|
||||
setTimeout(() => {
|
||||
wx.reLaunch({
|
||||
url: '/pages/projectModule/projectList/projectList',
|
||||
url: '/pages/course/homepage/homepage',
|
||||
})
|
||||
}, 1000); // 1000ms = 1秒
|
||||
} else {
|
||||
@ -201,8 +201,10 @@ Page({
|
||||
|
||||
// 跳转忘记密码
|
||||
gotoForgetPwd() {
|
||||
|
||||
const { role } = this.data;
|
||||
wx.navigateTo({
|
||||
url: '/pages/loginModule/forgetPwd/forgetPwd',
|
||||
url: `/pages/loginModule/forgetPwd/forgetPwd?role=${role}`,
|
||||
})
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user