From 00375d5271f204cebfbbed39f020d31087e65956 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 2 Jan 2025 15:14:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/upkeepOrder/addServiceRecord.vue | 1351 ++++++++++---------- src/plugins/time.js | 2 +- 2 files changed, 674 insertions(+), 679 deletions(-) diff --git a/src/pages/upkeepOrder/addServiceRecord.vue b/src/pages/upkeepOrder/addServiceRecord.vue index 08e0e0f..16d8371 100644 --- a/src/pages/upkeepOrder/addServiceRecord.vue +++ b/src/pages/upkeepOrder/addServiceRecord.vue @@ -1,688 +1,683 @@ \ No newline at end of file +.add-form-container { + min-height: calc(100vh - 140rpx); + background: white; + padding: 0px 0rpx 140rpx; +} +.u-form-item { + padding: 20rpx 30rpx; +} +.disabled { + background: #f5f5f5; +} + +.footer { + position: fixed; + bottom: 0px; + left: 0px; + width: 100%; + z-index: 22; +} + +.btns { + display: flex; + + button { + flex: 1; + } + + .sure { + background: #409eff; + color: white; + border-radius: 0px; + + &::after { + border: 1px solid #409eff; + border-radius: 0px; + } + } + + .reset { + background: #f5f5f5; + border-radius: 0px; + + &::after { + border-radius: 0px; + } + } +} + +.right-button { + background: #409eff; + color: white; + padding: 0rpx 30rpx; + border-radius: 16rpx; + text-align: center; + font-size: 28rpx; +} + +.select { + display: flex; + align-items: center; + height: 72rpx; + width: 100%; + + .input { + flex: 1; + font-size: 28rpx; + color: #000000; + } + + .placeholder { + flex: 1; + font-size: 28rpx; + color: rgb(192, 196, 204); + } +} + +.title { + padding: 32rpx 0px; + position: relative; + + span { + position: absolute; + left: -16rpx; + color: #fa3534; + padding-top: 6rpx; + } +} + +.list { + padding: 0px 30rpx; + .item { + display: flex; + margin-bottom: 20rpx; + + .item-box { + background: #f5f5f5; + border-radius: 12rpx; + flex: 1; + width: 0rpx; + } + + .spare-title { + padding: 20rpx 30rpx; + border-bottom: 1px solid #e4e4e4; + + .title-txt { + color: #409eff; + font-size: 30rpx; + font-weight: bold; + } + } + + .dec { + color: #9c9c9c; + padding: 20rpx 30rpx 20rpx; + } + } +} + +.add-btn { + display: flex; + justify-content: flex-start; + align-items: center; +} + +.popup-title { + text-align: center; + font-size: 32rpx; + font-weight: bold; + color: #409eff; + padding: 30rpx 30rpx 0px; +} + +.popup { + width: 600rpx; + padding: 30rpx 60rpx 30rpx; +} + +.popup-footer { + display: flex; + border-top: 1px solid #e4e4e4; + + view { + line-height: 100rpx; + flex: 1; + text-align: center; + + &.sure { + color: #409eff; + } + } +} + +::v-deep .u-checkbox-group { + display: grid !important; +} +::v-deep .uni-date__x-input { + color: #000; +} + diff --git a/src/plugins/time.js b/src/plugins/time.js index 9f8a11c..c76bb72 100644 --- a/src/plugins/time.js +++ b/src/plugins/time.js @@ -14,6 +14,6 @@ export default { var minutes = dateObj.getMinutes().toString().padStart(2, '0'); var seconds = dateObj.getSeconds().toString().padStart(2, '0'); - return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}` + return `${year}-${month}-${day} ${hour}:${minutes}:${seconds}` } }