Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6cc8a31c
authored
Apr 08, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改分页
1 parent
35587655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
components/HomeFrame/components/Message/MessageList.vue
components/HomeFrame/components/Message/MessageList.vue
View file @
6cc8a31
...
@@ -66,6 +66,8 @@
...
@@ -66,6 +66,8 @@
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
>
<
script
>
const
PAGE_SIZE
=
10
const
PAGE_NUM
=
1
import
{
CONTRNT_TYPE
}
from
'./constant'
import
{
CONTRNT_TYPE
}
from
'./constant'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
...
@@ -83,8 +85,8 @@ export default {
...
@@ -83,8 +85,8 @@ export default {
messageList
:
[],
messageList
:
[],
nothing
:
false
,
nothing
:
false
,
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageNum
:
PAGE_NUM
,
pageSize
:
10
,
pageSize
:
PAGE_SIZE
,
tagList
:
[],
tagList
:
[],
tagIndex
:
''
,
tagIndex
:
''
,
scrollTop
:
0
scrollTop
:
0
...
@@ -136,8 +138,8 @@ export default {
...
@@ -136,8 +138,8 @@ export default {
console
.
log
(
index
)
console
.
log
(
index
)
this
.
firstIndex
=
index
this
.
firstIndex
=
index
this
.
total
=
0
this
.
total
=
0
this
.
pageNum
=
1
this
.
pageNum
=
PAGE_NUM
this
.
pageSize
=
5
this
.
pageSize
=
PAGE_SIZE
if
(
tagIndex
)
this
.
tagIndex
=
tagIndex
if
(
tagIndex
)
this
.
tagIndex
=
tagIndex
else
this
.
tagIndex
=
''
else
this
.
tagIndex
=
''
if
(
index
==
0
)
{
if
(
index
==
0
)
{
...
@@ -165,8 +167,8 @@ export default {
...
@@ -165,8 +167,8 @@ export default {
this
.
tagIndex
=
item
.
classCode
this
.
tagIndex
=
item
.
classCode
this
.
scrollTop
=
1
this
.
scrollTop
=
1
this
.
total
=
0
this
.
total
=
0
this
.
pageNum
=
1
this
.
pageNum
=
PAGE_NUM
this
.
pageSize
=
5
this
.
pageSize
=
PAGE_SIZE
this
.
nothing
=
false
this
.
nothing
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
scrollTop
=
0
this
.
scrollTop
=
0
...
@@ -324,7 +326,7 @@ export default {
...
@@ -324,7 +326,7 @@ export default {
.
data
-
container
{
.
data
-
container
{
background
:
#
ffffff
;
background
:
#
ffffff
;
border
-
radius
:
toRpx
(
48
);
border
-
radius
:
toRpx
(
48
);
height
:
calc
(
100
vh
-
#
{
toRpx
(
24
0
)
}
);
height
:
calc
(
100
vh
-
#
{
toRpx
(
24
4
)
}
);
.
type
-
box
{
.
type
-
box
{
position
:
relative
;
position
:
relative
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment