Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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
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
张伯涛
tea_resources_pc
Commits
de01ab43
Commit
de01ab43
authored
Apr 09, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(个人中心): 我的消息
parent
c7faac6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
3 deletions
+102
-3
myMessage.vue
src/views/personalCenter/component/myMessage.vue
+102
-3
No files found.
src/views/personalCenter/component/myMessage.vue
View file @
de01ab43
<
template
>
<
template
>
<div
class=
"my-message"
>
<div
class=
"my-message"
>
我的消息
<div
class=
"head"
>
您共有
<span
style=
"color:#F96F21 "
>
50
</span>
条收藏
</div>
<div>
<el-table
:data=
"myMessageData"
:border=
"false"
style=
"width: 98%"
>
<el-table-column
prop=
"date"
label=
"消息内容"
:show-overflow-tooltip=
"true"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
style=
"color:#3685fc "
>
{{
scope
.
row
.
date
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"状态"
width=
"180"
:show-overflow-tooltip=
"true"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.name"
type=
"success"
>
已读
</el-tag>
<el-tag
v-else
type=
"warning"
>
未读
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"类型"
align=
"center"
/>
<el-table-column
prop=
"address"
label=
"发布时间"
width=
"180"
align=
"center"
/>
</el-table>
</div>
<div
class=
"pagination"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"100"
:page-size=
"6"
@
current-change=
"currentChange"
/>
</div>
</div>
</div>
</template>
</template>
...
@@ -9,7 +59,25 @@ export default {
...
@@ -9,7 +59,25 @@ export default {
name
:
'MyMessage'
,
name
:
'MyMessage'
,
data
()
{
data
()
{
return
{
return
{
myMessageData
:
[
{
date
:
'2016-05-02'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
},
{
date
:
'2016-05-04'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1517 弄'
},
{
date
:
'2016-05-01'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1519 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
}
]
}
}
},
},
created
()
{
created
()
{
...
@@ -17,12 +85,43 @@ export default {
...
@@ -17,12 +85,43 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
currentChange
(
data
)
{}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.my-message
{
.my-message
{
padding
:
20px
;
::v-deep
.el-table
th
.cell
{
justify-content
:
center
;
}
::v-deep
.el-table
td
.cell
{
text-align
:
center
;
}
::v-deep
.el-table
th
{
border-right
:
none
;
}
::v-deep
.el-table
td
{
border-right
:
none
;
}
::v-deep
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
color
:
#fff
;
background
:
#3684fc
;
}
::v-deep
.el-pagination.is-background
.el-pager
li
{
background-color
:
#fff
;
}
.pagination
{
display
:
flex
;
justify-content
:
center
;
margin-top
:
32px
;
}
.head
{
font-size
:
16px
;
font-weight
:
400
;
color
:
#292929
;
margin-bottom
:
24px
;
}
}
}
</
style
>
</
style
>
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