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 @@ </view> <!-- 向上弹窗 --> - <u-popup :closeOnClickOverlay="false" :round="30" :show="flage" mode="center" :safeAreaInsetBottom="true" :negative-top='300' overlayOpacity="0.1"> + <u-popup :closeOnClickOverlay="false" :round="30" :show="flage" mode="center" :safeAreaInsetBottom="true" overlayOpacity="0.1"> <view class="popup-box"> <view class="popup-top-text popup-boder-m"> <view>重新命名</view> <view @click="flageupdate">X</view> </view> <view class="popup-boder-m"> - <u--input shape="circle" placeholder="请输入内容" border="surround" v-model="form.inputvalue" :adjustPosition='true'></u--input> + <u--input shape="circle" placeholder="请输入内容" border="surround" v-model="form.inputvalue" ></u--input> </view> - <view class="popup-button-b" style="margin-bottom: 200rpx;"> + <view class="popup-button-b" > <u-button @click="confirmname" color="#23693f" shape="circle" type="primary" text="确 定"></u-button> </view> </view> </u-popup> - <!-- <u-popup :show="flage" :round="10" mode="bottom" overlayOpacity="0.1" - :closeOnClickOverlay="false" :safeAreaInsetBottom="true" :negative-top='300'> - <view class="popup-box"> - <view class="popup-top-text popup-boder-m"> - <view>重新命名</view> - <view @click="flageupdate">X</view> - </view> - <view class="popup-boder-m"> - <u--input shape="circle" placeholder="请输入内容" border="surround" - v-model="form.inputvalue" :cursorSpacing='150' - :adjustPosition='true'></u--input> - </view> - <view class="popup-button-b"> - <u-button @click="confirmname" color="#23693f" shape="circle" type="primary" - text="确 定"></u-button> - </view> + + <!-- <view class="xiugainame" v-if="flage"> + <view class="mm"> + <text>重新命名</text> <text @click="flageupdate">X</text> + </view> + <input type="text" v-model="form.inputvalue"/> + <view class="btn" @click="confirmname"> + 确定 </view> - </u-popup> --> - + </view> + <view class="maskname" v-if="flage"></view> --> @@ -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;