Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
50006ada
Commit
50006ada
authored
Oct 30, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
8ae5c27e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
SignRuleDes.vue
components/qiandao/SignRuleDes.vue
+22
-1
TaskPop.vue
components/renwu/TaskPop.vue
+21
-0
No files found.
components/qiandao/SignRuleDes.vue
View file @
50006ada
...
...
@@ -19,7 +19,7 @@
</
template
>
<
script
setup
>
import
{
defineProps
,
defineEmits
}
from
'vue'
;
import
{
defineProps
,
defineEmits
,
watch
}
from
'vue'
;
// Props 定义
const
props
=
defineProps
({
...
...
@@ -36,6 +36,27 @@ const props = defineProps({
// Emits 定义
const
emit
=
defineEmits
([
'close'
]);
// 监听 visible 变化,设置页面滚动状态
watch
(()
=>
props
.
visible
,
(
newVal
)
=>
{
// #ifdef MP-WEIXIN
if
(
newVal
)
{
// 弹窗展示时,禁止页面滚动
wx
.
setPageStyle
({
style
:
{
overflow
:
'hidden'
}
});
}
else
{
// 弹窗关闭时,恢复页面滚动
wx
.
setPageStyle
({
style
:
{
overflow
:
'auto'
}
});
}
// #endif
},
{
immediate
:
true
});
// 关闭弹窗
const
handleClose
=
()
=>
{
emit
(
'close'
);
...
...
components/renwu/TaskPop.vue
View file @
50006ada
...
...
@@ -70,6 +70,27 @@ const integralStore = useIntegralStore();
// 任务列表数据
const
taskList
=
ref
([]);
// 监听 visible 变化,设置页面滚动状态
watch
(()
=>
props
.
visible
,
(
newVal
)
=>
{
// #ifdef MP-WEIXIN
if
(
newVal
)
{
// 弹窗展示时,禁止页面滚动
wx
.
setPageStyle
({
style
:
{
overflow
:
'hidden'
}
});
}
else
{
// 弹窗关闭时,恢复页面滚动
wx
.
setPageStyle
({
style
:
{
overflow
:
'auto'
}
});
}
// #endif
},
{
immediate
:
true
});
// 关闭弹窗
const
handleClose
=
()
=>
{
emit
(
'close'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment