修改页面
This commit is contained in:
+47
-1
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="leftback">
|
||||
<u-icon name="arrow-left" color="#000" size="20" @click="leftClick"></u-icon>
|
||||
</view>
|
||||
<view class="title">
|
||||
<image src="/static/image/lingke.png" mode=""></image>
|
||||
</view>
|
||||
@@ -12,6 +15,7 @@
|
||||
<view class="vcode">
|
||||
<u--input
|
||||
type="text"
|
||||
v-model="email"
|
||||
:placeholder="$t('emailinput')"
|
||||
border="none"
|
||||
></u--input>
|
||||
@@ -21,6 +25,7 @@
|
||||
<view class="password">
|
||||
<u--input
|
||||
type="text"
|
||||
v-model="code"
|
||||
:placeholder="$t('code')"
|
||||
border="none"
|
||||
></u--input>
|
||||
@@ -29,6 +34,7 @@
|
||||
<view class="account">
|
||||
<u--input
|
||||
type="password"
|
||||
v-model="password"
|
||||
:placeholder="$t('newpassword')"
|
||||
border="none"
|
||||
></u--input>
|
||||
@@ -36,6 +42,7 @@
|
||||
<view class="password">
|
||||
<u--input
|
||||
type="password"
|
||||
v-model="password1"
|
||||
:placeholder="$t('Confirmpassword')"
|
||||
border="none"
|
||||
></u--input>
|
||||
@@ -58,7 +65,9 @@
|
||||
data() {
|
||||
return {
|
||||
email: "",
|
||||
code: "",
|
||||
password: "",
|
||||
password1: "",
|
||||
pactChecked: false,
|
||||
vcodeTime: 0,
|
||||
vcodeTimer: null
|
||||
@@ -86,8 +95,38 @@
|
||||
});
|
||||
return false
|
||||
}
|
||||
if(this.password != this.password1){
|
||||
uni.showToast({
|
||||
title:this.$t('passworerr1'),
|
||||
icon: 'none'
|
||||
});
|
||||
return false
|
||||
}
|
||||
request({
|
||||
url:'user/savePassword',
|
||||
method:'POST',
|
||||
data:{
|
||||
email: this.email,
|
||||
password: this.password,
|
||||
code: this.code,
|
||||
}
|
||||
}).then(res => {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: 'none'
|
||||
});
|
||||
if(res.data.code ==0){
|
||||
uni.clearStorageSync();
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/index',// 替换为你要跳转的页面路径
|
||||
});
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
},
|
||||
getVcode() {
|
||||
console.log(this.email)
|
||||
if(this.email==''){
|
||||
uni.showToast({
|
||||
title:this.$t('emailerr'),
|
||||
@@ -131,7 +170,14 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
|
||||
.leftback{
|
||||
position: fixed;
|
||||
/* #ifdef APP-PLUS */
|
||||
top: 44px;
|
||||
/* #endif */
|
||||
top: 30px;
|
||||
left: 15px;
|
||||
}
|
||||
.title {
|
||||
padding-top: 220rpx;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user