From f61daf18bb5b08e2ab99acf889219f58141c00c5 Mon Sep 17 00:00:00 2001 From: "471615499@qq.com" Date: Thu, 29 Aug 2024 20:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更改UI大小,修复报修页面换行BUG;加入修改个人信息不填姓名时的提醒 --- .../pages/my/personalData/personalData.js | 8 +++++++- .../pages/my/personalData/personalData.json | 4 +++- .../pages/my/personalData/personalData.wxml | 3 ++- .../pages/reportRepair/report/report.wxss | 8 +++----- miniprogram/tabBar.wxss | 16 +++++++++------- 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/miniprogram/pages/my/personalData/personalData.js b/miniprogram/pages/my/personalData/personalData.js index 0ac2d30..0df26ef 100644 --- a/miniprogram/pages/my/personalData/personalData.js +++ b/miniprogram/pages/my/personalData/personalData.js @@ -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() diff --git a/miniprogram/pages/my/personalData/personalData.json b/miniprogram/pages/my/personalData/personalData.json index 7abd7bf..820466c 100644 --- a/miniprogram/pages/my/personalData/personalData.json +++ b/miniprogram/pages/my/personalData/personalData.json @@ -1,4 +1,6 @@ { - "usingComponents": {}, + "usingComponents": { + "van-notify": "@vant/weapp/notify/index" + }, "navigationBarTitleText": "个人信息" } \ No newline at end of file diff --git a/miniprogram/pages/my/personalData/personalData.wxml b/miniprogram/pages/my/personalData/personalData.wxml index c72bbc7..4277cbe 100644 --- a/miniprogram/pages/my/personalData/personalData.wxml +++ b/miniprogram/pages/my/personalData/personalData.wxml @@ -77,4 +77,5 @@ --> 退出登录 - \ No newline at end of file + + \ No newline at end of file diff --git a/miniprogram/pages/reportRepair/report/report.wxss b/miniprogram/pages/reportRepair/report/report.wxss index 1abd029..b1e222c 100644 --- a/miniprogram/pages/reportRepair/report/report.wxss +++ b/miniprogram/pages/reportRepair/report/report.wxss @@ -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; diff --git a/miniprogram/tabBar.wxss b/miniprogram/tabBar.wxss index 6d77a59..e0bbe96 100644 --- a/miniprogram/tabBar.wxss +++ b/miniprogram/tabBar.wxss @@ -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; } - \ No newline at end of file + .bulge .tab-bar-view { + margin-top: 8px; + } \ No newline at end of file