Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
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
lixy
vue-ssr
Commits
247edd86
Commit
247edd86
authored
Aug 30, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间处理
parent
a027ca1d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
3 deletions
+7
-3
xxfczs.jpg
assets/images/xxfczs.jpg
+0
-0
main.css
assets/main.css
+1
-0
menu.vue
components/menu.vue
+1
-1
activity.vue
pages/activity.vue
+1
-1
_id.vue
pages/activityList/_id.vue
+1
-1
news.vue
pages/news.vue
+3
-0
No files found.
assets/images/xxfczs.jpg
View replaced file @
a027ca1d
View file @
247edd86
266 KB
|
W:
|
H:
42 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/main.css
View file @
247edd86
...
...
@@ -31,6 +31,7 @@ body {
background
:
#f6f6f6
;
padding
:
20px
;
margin
:
20px
0
;
width
:
480px
;
}
.hot-t-r
{
border-bottom
:
none
;
...
...
components/menu.vue
View file @
247edd86
<
template
>
<div>
<div
style=
"width: 100%;position: fixed;top: 0;z-index: 1000;border-bottom: 1px solid #eee;"
>
<div
class=
"flex-aic-jcb"
style=
"width: 1200px; margin: 0 auto;font-size:12px;height: 25px;"
>
<div
class=
"flex-aic-jcb"
style=
"width: 1200px; margin: 0 auto;font-size:12px;height: 25px;
color: #666;
"
>
<div>
您好!欢迎进入欣新房车集团官方网站
</div>
<div>
服务热线: 400-0369-369
</div>
</div>
...
...
pages/activity.vue
View file @
247edd86
...
...
@@ -26,7 +26,7 @@
<img
:src=
"item.banner"
alt
style=
"width:438px;height: 243px;"
/>
<div
style=
"margin-left:20px"
class=
"active-r"
>
<h2
class=
"ellipsis2"
>
{{
item
.
title
}}
</h2>
<div
class=
"activity-time"
>
{{
item
.
startTime
|
formatDate
(
'yyyy-MM-dd hh:mm
:ss'
)
}}
~
{{
item
.
endTime
|
formatDate
(
'yyyy-MM-dd hh:mm:ss
'
)
}}
</div>
<div
class=
"activity-time"
>
{{
item
.
startTime
|
formatDate
(
'yyyy-MM-dd hh:mm
'
)
}}
~
{{
item
.
endTime
|
formatDate
(
'yyyy-MM-dd hh:mm
'
)
}}
</div>
<div
class=
"ellipsis2 activity-addr"
><img
src=
"../assets/images/local.png"
alt=
"欣新房车,让生活更美好"
/>
{{
item
.
province
}}{{
item
.
city
}}{{
item
.
town
}}{{
item
.
address
}}
</div>
</div>
</nuxt-link>
...
...
pages/activityList/_id.vue
View file @
247edd86
...
...
@@ -14,7 +14,7 @@
<h1>
{{
detail
.
title
}}
</h1>
<div
class=
"r-cc"
>
<p>
活动人数
<span
style=
"margin-left: 20px;"
>
{{
detail
.
limitNum
}}
</span></p>
<p>
活动时间
<span
style=
"margin-left: 20px;"
>
{{
detail
.
startTime
|
formatDate
(
'yyyy-MM-dd hh:mm
:ss'
)
}}
~
{{
detail
.
endTime
|
formatDate
(
'yyyy-MM-dd hh:mm:ss
'
)
}}
</span></p>
<p>
活动时间
<span
style=
"margin-left: 20px;"
>
{{
detail
.
startTime
|
formatDate
(
'yyyy-MM-dd hh:mm
'
)
}}
~
{{
detail
.
endTime
|
formatDate
(
'yyyy-MM-dd hh:mm
'
)
}}
</span></p>
<p
class=
"ellipsis2"
>
活动地点
<span
style=
"margin-left: 20px;"
>
{{
detail
.
province
}}{{
detail
.
city
}}{{
detail
.
town
}}{{
detail
.
address
}}
</span></p>
</div>
<!--
<div
class=
"buttonDetails"
>
报名参加
</div>
-->
...
...
pages/news.vue
View file @
247edd86
...
...
@@ -119,6 +119,9 @@
}
=
await
axios
.
get
(
`/api/uccn/article/app/unauth/list?type=1&page=1&limit=10000`
);
// console.log(data);
this
.
totalCount
=
data
.
total
;
data
.
list
.
map
(
function
(
item
){
item
.
addTime
=
item
.
addTime
.
substring
(
0
,
10
);
})
this
.
dataDetail
=
data
.
list
;
// this.dataDetail = this.dataDetail.push(data.data);
},
...
...
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