From 85f3246a192cb18bbb86b4d8e78d0d8041bfc46e Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Sat, 11 May 2024 17:52:04 +0800 Subject: [PATCH] aa --- pages/fengxiang/index.vue | 97 ++++++++++++++++++++++++++++++--------- 1 file changed, 75 insertions(+), 22 deletions(-) diff --git a/pages/fengxiang/index.vue b/pages/fengxiang/index.vue index fd9aa61..bd9f1a7 100644 --- a/pages/fengxiang/index.vue +++ b/pages/fengxiang/index.vue @@ -86,39 +86,31 @@ - + 重新命名 X - + - + - - + + --> @@ -306,6 +298,13 @@ } }, methods: { + backToTop() { + // console.log(1); + uni.pageScrollTo({ + scrollTop: 0, // 滚动到页面的顶部 + duration: 1 // 滚动动画的持续时间,单位 ms + }); + } , async loadData() { // 先执行获取数据的方法 await this.getfengchangList(); @@ -554,6 +553,7 @@ }, // 重命名 anewname(item) { + this.backToTop() this.HiddenClick(item) this.updataname.name = item.name this.updataname.id = item.id @@ -680,6 +680,59 @@ /deep/ .u-popup__content{ width: 750rpx; } + .maskname{ + position: fixed; + top: 0; + left: 0; + z-index: 98; + width: 100%; + height: 100vh; + background-color: #000; + opacity: .1; + } + .xiugainame{ + width: 750rpx; + height: 564rpx; + background-color: #fff; + border-radius: 30rpx; + position: fixed; + top: 400rpx; + left: 0; + z-index: 99; + padding: 50rpx; + box-sizing: border-box; + .mm{ + display: flex; + justify-content: space-between; + margin-top: 10rpx; + } + input{ + margin-top: 90rpx; + padding-left: 30rpx; + box-sizing: border-box; + margin-bottom: 90rpx; + width: 90%; + height: 72rpx; + border: 1px solid #ccc; + border-radius: 50rpx; + line-height: 72rpx; + position: fixed; + top: 500rpx; + left: 50%; + transform: translateX(-50%); + } + .btn{ + width: 100%; + height: 72rpx; + margin-top: 270rpx; + border: 1px solid #ccc; + border-radius: 50rpx; + background-color: #23693f; + text-align: center; + line-height: 72rpx; + color: #fff; + } + } .loading { z-index: 10074; width: 224rpx; @@ -899,7 +952,7 @@ .page { height: 100%; width: 100%; - position: absolute; + // position: absolute; background-color: #f7f7f7; width: 100%; overflow-y: auto;