更改UI大小,修复报修页面换行BUG;加入修改个人信息不填姓名时的提醒
This commit is contained in:
471615499@qq.com 2024-08-29 20:26:34 +08:00
parent 315f501292
commit f61daf18bb
5 changed files with 24 additions and 15 deletions

View File

@ -1,5 +1,5 @@
let app = getApp()
import Notify from '@vant/weapp/notify/notify';
import {
userProfile,
getUserInfoRq
@ -81,7 +81,13 @@ Page({
confirm() {
let that = this
console.log(this.data.name)
if (this.data.name == '姓名') {
console.log(that.data)
if(!that.data.nickname || that.data.nickname == '') {
Notify('请输入姓名!');
return
}
app.AjaxRequest('POST', {
'content-type': 'application/json',
'Authorization': 'Bearer ' + app.Getopenid()

View File

@ -1,4 +1,6 @@
{
"usingComponents": {},
"usingComponents": {
"van-notify": "@vant/weapp/notify/index"
},
"navigationBarTitleText": "个人信息"
}

View File

@ -77,4 +77,5 @@
</view> -->
</view>
<view class="submitBtn" bindtap="exitaccount">退出登录</view>
</view>
</view>
<van-notify id="van-notify" />

View File

@ -7,8 +7,6 @@
background: #f6f6f6;
}
.contentView {}
.contentView .rowView.self {
padding: 28rpx 28rpx 28rpx 30rpx;
justify-content: flex-start;
@ -89,11 +87,12 @@
.contentView .rowView .label,
.contentView .rowColumnView .label {
display: inline-block;
white-space: nowrap;
/* display: inline-block; */
position: relative;
font-size: 34rpx;
color: #000000;
/* max-width: 160rpx; */
/* min-width: 160rpx; */
margin-right: 30rpx;
}
@ -112,7 +111,6 @@
font-size: 34rpx;
}
.uploadImgView {
padding: 0 40rpx;
background-color: #ffffff;

View File

@ -32,18 +32,18 @@
.bulge .tab-bar-bulge{
position: absolute;
z-index: -1;
width: 64px;
height: 64px;
top: -24px;
width: 100px;
height: 100px;
top: -34px;
border-radius: 50%;
border-top: 1px solid #e6e6e6;
background-color: #FFF;
}
.bulge .image{
position: absolute;
width: 50px;
height: 50px;
top: -16px;
width: 64px;
height: 64px;
top: -26px;
}
.bulge .tab-bar-view{
position: relative;
@ -55,4 +55,6 @@
font-size: 12px;
margin-top: 4px;
}
.bulge .tab-bar-view {
margin-top: 8px;
}