From 7f6fc656fe079f4baaf0e7c5bf0fe64965af8c5b Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期四, 22 九月 2022 21:01:41 +0800 Subject: [PATCH] # --- pages/user/user.vue | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/pages/user/user.vue b/pages/user/user.vue index c922769..652c500 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -1,15 +1,41 @@ <template> <view class=""> - <y-popup> - <view style="background-color: aqua;width: 100rpx;height: 100rpx;"></view> - <input type="text" style="background-color: aqua;"> + <scroll-view class="scroll-Y"> + <button @click="open">鐐瑰嚮</button> + <y-popup ref="yPopup" title="杈撳叆鍐呭"> + </y-popup> + </scroll-view> </view> </template> <script> + export default { + data () { + return { + scrollY:true + } + }, + methods: { + open() { + this.$refs.yPopup.open('center') + } + } + + } </script> <style> - + .vv { + width: 100%;height: 100rpx; + + } + .bb { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + } </style> \ No newline at end of file -- Gitblit v1.9.1