手机号 密码

This commit is contained in:
shidongli 2023-10-24 17:32:04 +08:00
parent 1a0490e981
commit bf8bd880db
2 changed files with 26 additions and 10 deletions

View File

@ -1,8 +1,10 @@
<template>
<view class="app">
<view class="name">
密码
<u-input v-model="list.personPassword" type="password" placeholder="请输入密码" />
<view class="pwd">
输入新密码
</view>
<u-input v-model="list.personPassword" type="password" placeholder="请输入新密码" />
</view>
<view class="submit" @tap="submit">提交
@ -57,14 +59,15 @@
height: 100vh;
background-color: #fff;
position: relative;
background: #F1F1F1;
.submit {
width: 496rpx;
height: 61rpx;
position: absolute;
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: 20%;
bottom: 60rpx;
background: #18CBB3;
// border-radius: 5px;
// width: 20rpx;
@ -83,6 +86,11 @@
font-weight: 400;
color: #333333;
line-height: 38rpx;
height:150rpx;
background: #fff;
.pwd{
margin-left: 30rpx
}
@ -93,6 +101,7 @@
margin: 12rpx auto;
border: none;
border-radius: 5rpx;
background: #fff;
}
.select {

View File

@ -1,8 +1,10 @@
<template>
<view class="app">
<view class="name">
手机号
<u-input v-model="list.personPhone" type="number" maxlength="11" placeholder="请输入手机号" />
<view class="pwd">
输入新手机号
</view>
<u-input v-model="list.personPhone" type="number" maxlength="11" placeholder="请输入新手机号" />
</view>
<view class="submit" @tap="submit">提交
@ -33,13 +35,13 @@
// this.list.id = uni.getStorageSync("id")
update(this.list).then(res => {
console.log(res)
if(res.code==200){
if (res.code == 200) {
this.$refs.uToast.show({
title: '修改成功',
type: 'success',
duration: '1500'
})
}else{
} else {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
@ -61,10 +63,10 @@
.submit {
width: 496rpx;
height: 61rpx;
position: absolute;
position: fixed;
left: 50%;
transform: translateX(-50%);
bottom: 20%;
bottom: 60rpx;
background: #18CBB3;
// border-radius: 5px;
// width: 20rpx;
@ -84,6 +86,10 @@
color: #333333;
line-height: 38rpx;
.pwd {
margin-left: 30rpx
}
::v-deep .u-input {
@ -93,6 +99,7 @@
margin: 12rpx auto;
border: none;
border-radius: 5rpx;
background: #fff;
}
.select {