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

View File

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

View File

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

View File

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

View File

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