Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
2dbfd447
Commit
2dbfd447
authored
Feb 09, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改动态页面
parent
f99c6417
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
12 deletions
+27
-12
action/utils/dataConvert.js
+2
-1
components/pc/pagination.vue
+3
-3
components/pc/releaseCard.vue
+10
-3
pages/dynamic/index.vue
+12
-5
No files found.
action/utils/dataConvert.js
View file @
2dbfd447
function
dateConvert
(
time
){
let
newDate
=
new
Date
(
time
);
let
newTime
=
time
+
8
*
60
*
60
*
1000
;
let
newDate
=
new
Date
(
newTime
);
let
year
=
newDate
.
getFullYear
();
let
month
=
newDate
.
getMonth
()
+
1
;
let
day
=
newDate
.
getDate
();
...
...
components/pc/pagination.vue
View file @
2dbfd447
...
...
@@ -64,6 +64,7 @@
created
(){
this
.
$emit
(
config
.
event
.
listenPageChange
,
this
.
currentPage
);
if
(
this
.
type
===
2
){
this
.
scrollToGetNext
();
}
...
...
@@ -108,8 +109,7 @@
let
pageConTop
=
this
.
getElementToPageTop
(
this
.
$refs
.
paginationCon
);
let
scrollTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
let
screenTop
=
scrollTop
+
window
.
innerHeight
;
if
(
screenTop
>=
pageConTop
){
if
(
screenTop
>=
pageConTop
&&
this
.
paginationState
===
'over'
){
if
(
this
.
currentPage
<
this
.
pages
){
this
.
currentPage
=
this
.
currentPage
+
1
;
// this.paginationState = 'loading';
...
...
@@ -304,7 +304,7 @@
border-radius
:
4
*$
length
;
color
:
#999
;
font-size
:
12px
;
}
}
...
...
components/pc/releaseCard.vue
View file @
2dbfd447
...
...
@@ -5,11 +5,11 @@
<div
class=
"release-card__bottom"
>
<div
class=
"bottom__l"
>
<div
class=
"func-item"
>
<yun-icon
name=
"emoji"
@
click
.
native=
"showEmojiCard=!showEmojiCard"
size=
"12px"
color=
"#00AAE6"
></yun-icon>
<p
class=
"func-item__name"
@
click=
"showEmojiCard=!showEmojiCard"
>
表情
</p>
<yun-icon
name=
"emoji"
@
click
.
native
.
stop
=
"showEmojiCard=!showEmojiCard"
size=
"12px"
color=
"#00AAE6"
></yun-icon>
<p
class=
"func-item__name"
@
click
.
stop
=
"showEmojiCard=!showEmojiCard"
>
表情
</p>
<transition
name=
"fade"
>
<div
class=
"func-item__abs"
v-if=
"showEmojiCard"
>
<div
class=
"func-item__abs"
v-if=
"showEmojiCard"
ref=
"emojiCard"
>
<div
class=
"header"
>
<yun-icon
name=
"close1"
size=
"12px"
color=
"#999"
@
click
.
native=
"showEmojiCard=false"
></yun-icon>
</div>
...
...
@@ -202,6 +202,11 @@
this
.
showTopicCard
=
false
;
}
}
if
(
this
.
$refs
.
emojiCard
){
if
(
!
this
.
$refs
.
emojiCard
.
contains
(
e
.
target
)){
this
.
showEmojiCard
=
false
;
}
}
})
...
...
@@ -247,6 +252,7 @@
topicName
:
value
}).
then
((
res
)
=>
{
if
(
res
.
code
===
0
){
this
.
releaseWord
=
this
.
releaseWord
+
"#"
+
value
+
"#"
;
this
.
dataGetTopicList
();
close
();
this
.
$message
({
...
...
@@ -285,6 +291,7 @@
},
clickToAddTopic
(
id
,
name
){
this
.
releaseWord
=
this
.
releaseWord
+
"#"
+
name
+
"#"
;
this
.
showTopicCard
=
false
;
},
...
...
pages/dynamic/index.vue
View file @
2dbfd447
...
...
@@ -123,13 +123,20 @@
size
:
10
}
}).
then
((
response
)
=>
{
let
list
=
response
.
data
.
dataList
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
this
.
p
ostList
.
push
(
list
[
i
])
;
if
(
currentPage
===
1
){
this
.
postList
=
response
.
data
.
dataList
;
this
.
p
ages
=
response
.
data
.
totalPage
;
this
.
paginationState
=
'over'
;
}
else
{
let
list
=
response
.
data
.
dataList
;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
this
.
postList
.
push
(
list
[
i
]);
this
.
paginationState
=
'over'
;
}
this
.
pages
=
response
.
data
.
totalPage
;
}
this
.
pages
=
response
.
data
.
totalPage
;
})
},
...
...
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