Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaxiu-miniapp
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡亮华(贵阳日报)
jiaxiu-miniapp
Commits
57a27273
Commit
57a27273
authored
Aug 22, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
顶部
parent
37e37bf9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
index.vue
src/pages/mine/index.vue
+17
-1
No files found.
src/pages/mine/index.vue
View file @
57a27273
<
template
>
<!--
<Header
backgroundBox=
"#f8f8f8"
:show=
"false"
></Header>
-->
<div
class=
"header"
:style=
"
{height: contentHeight + 'px'}">
</div>
<div
class=
"container"
v-if=
"userStore.isLogin"
>
<div
class=
"userinfo"
>
<img
class=
"avatar"
mode=
"aspectFill"
...
...
@@ -46,7 +47,7 @@
</div>
</div>
<div
class=
"content"
>
<van-tabs
v-model:active=
"active"
background=
"#f8f8f8"
animated
swipeable
sticky
offset-top=
"50
"
>
<van-tabs
v-model:active=
"active"
background=
"#f8f8f8"
animated
swipeable
sticky
:offset-top=
"contentHeight
"
>
<van-tab
title=
"待发布"
>
<picture-list
ref=
"waitingPublishPicture"
:active=
"0"
@
total=
"setTotal"
@
refresh=
"handleRefreshPublishPicture"
@
publish=
"handlePublishPicture"
></picture-list>
</van-tab>
...
...
@@ -72,6 +73,15 @@ import MoreOperations from './components/MoreOperations/index.vue'
import
Publish
from
'./components/Publish/index.vue'
useInitScroll
()
const
contentHeight
=
ref
(
50
)
onLoad
(()
=>
{
xma
.
xh
.
getMenuButtonBoundingClientRect
({
success
(
res
)
{
contentHeight
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
;
},
});
})
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
const
active
=
ref
(
0
)
...
...
@@ -133,6 +143,12 @@ const handleOperation = (e) => {
</
script
>
<
style
lang=
"scss"
scoped
>
.header
{
position
:
sticky
;
top
:
0
;
background-color
:
#f8f8f8
;
z-index
:
999
;
}
.container
{
background-color
:
#f8f8f8
;
padding
:
38px
12px
0
12px
;
...
...
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