手机号 密码
This commit is contained in:
parent
1a0490e981
commit
bf8bd880db
@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
密码
|
<view class="pwd">
|
||||||
<u-input v-model="list.personPassword" type="password" placeholder="请输入密码" />
|
输入新密码
|
||||||
|
</view>
|
||||||
|
<u-input v-model="list.personPassword" type="password" placeholder="请输入新密码" />
|
||||||
</view>
|
</view>
|
||||||
<view class="submit" @tap="submit">提交
|
<view class="submit" @tap="submit">提交
|
||||||
|
|
||||||
@ -57,14 +59,15 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: #F1F1F1;
|
||||||
|
|
||||||
.submit {
|
.submit {
|
||||||
width: 496rpx;
|
width: 496rpx;
|
||||||
height: 61rpx;
|
height: 61rpx;
|
||||||
position: absolute;
|
position: fixed;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
bottom: 20%;
|
bottom: 60rpx;
|
||||||
background: #18CBB3;
|
background: #18CBB3;
|
||||||
// border-radius: 5px;
|
// border-radius: 5px;
|
||||||
// width: 20rpx;
|
// width: 20rpx;
|
||||||
@ -83,6 +86,11 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 38rpx;
|
line-height: 38rpx;
|
||||||
|
height:150rpx;
|
||||||
|
background: #fff;
|
||||||
|
.pwd{
|
||||||
|
margin-left: 30rpx
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -93,6 +101,7 @@
|
|||||||
margin: 12rpx auto;
|
margin: 12rpx auto;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
手机号
|
<view class="pwd">
|
||||||
<u-input v-model="list.personPhone" type="number" maxlength="11" placeholder="请输入手机号" />
|
输入新手机号
|
||||||
|
</view>
|
||||||
|
<u-input v-model="list.personPhone" type="number" maxlength="11" placeholder="请输入新手机号" />
|
||||||
</view>
|
</view>
|
||||||
<view class="submit" @tap="submit">提交
|
<view class="submit" @tap="submit">提交
|
||||||
|
|
||||||
@ -33,13 +35,13 @@
|
|||||||
// this.list.id = uni.getStorageSync("id")
|
// this.list.id = uni.getStorageSync("id")
|
||||||
update(this.list).then(res => {
|
update(this.list).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.code==200){
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '修改成功',
|
title: '修改成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
}else{
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -61,10 +63,10 @@
|
|||||||
.submit {
|
.submit {
|
||||||
width: 496rpx;
|
width: 496rpx;
|
||||||
height: 61rpx;
|
height: 61rpx;
|
||||||
position: absolute;
|
position: fixed;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
bottom: 20%;
|
bottom: 60rpx;
|
||||||
background: #18CBB3;
|
background: #18CBB3;
|
||||||
// border-radius: 5px;
|
// border-radius: 5px;
|
||||||
// width: 20rpx;
|
// width: 20rpx;
|
||||||
@ -84,6 +86,10 @@
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
line-height: 38rpx;
|
line-height: 38rpx;
|
||||||
|
|
||||||
|
.pwd {
|
||||||
|
margin-left: 30rpx
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::v-deep .u-input {
|
::v-deep .u-input {
|
||||||
@ -93,6 +99,7 @@
|
|||||||
margin: 12rpx auto;
|
margin: 12rpx auto;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user