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
da6662f0
Commit
da6662f0
authored
Sep 03, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
官网-关于欣新-首页
parent
01fea0ae
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
360 additions
and
138 deletions
+360
-138
main.css
assets/main.css
+4
-1
banner.vue
components/banner.vue
+19
-5
footer.vue
components/footer.vue
+1
-0
menu.vue
components/menu.vue
+26
-16
vehicleBanner.vue
components/vehicleBanner.vue
+17
-4
nuxt.config.js
nuxt.config.js
+2
-1
aboutXx.vue
pages/aboutXx.vue
+110
-58
activity.vue
pages/activity.vue
+4
-0
_id.vue
pages/activityList/_id.vue
+1
-1
campsite.vue
pages/campsite.vue
+4
-0
_id.vue
pages/campsiteDetails/_id.vue
+7
-7
index.vue
pages/index.vue
+138
-30
news.vue
pages/news.vue
+4
-0
_id.vue
pages/newsList/_id.vue
+1
-1
tour.vue
pages/tour.vue
+8
-4
_id.vue
pages/tourDetails/_id.vue
+9
-9
vehicle.vue
pages/vehicle.vue
+4
-0
_id.vue
pages/vehicleList/_id.vue
+1
-1
No files found.
assets/main.css
View file @
da6662f0
...
@@ -3,6 +3,9 @@ body {
...
@@ -3,6 +3,9 @@ body {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
}
}
#newBridge
.nb-middle
{
display
:
none
!important
;
}
.min-win
{
.min-win
{
width
:
1200px
;
width
:
1200px
;
}
}
...
@@ -63,7 +66,7 @@ body {
...
@@ -63,7 +66,7 @@ body {
}
}
.main-container
{
.main-container
{
margin-top
:
9
0px
;
margin-top
:
12
0px
;
min-height
:
600px
;
min-height
:
600px
;
}
}
...
...
components/banner.vue
View file @
da6662f0
...
@@ -152,11 +152,25 @@
...
@@ -152,11 +152,25 @@
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.box
{
@media
screen
and
(
min-width
:
1120px
)
and
(
max-width
:
1366px
){
.box
{
position
:
relative
;
position
:
relative
;
height
:
50
0px
;
height
:
35
0px
;
min-height
:
300px
;
}
}
}
@media
screen
and
(
min-width
:
1366px
)
and
(
max-width
:
1920px
){
.box
{
position
:
relative
;
height
:
420px
;
}
}
@media
screen
and
(
min-width
:
1920px
){
.box
{
position
:
relative
;
height
:
560px
;
}
}
span
{
span
{
display
:
block
;
display
:
block
;
height
:
40px
;
height
:
40px
;
...
@@ -180,7 +194,7 @@
...
@@ -180,7 +194,7 @@
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
}
.banner
{
.banner
{
width
:
100%
;
width
:
100%
;
max-height
:
500px
;
overflow
:
hidden
;
}
}
</
style
>
</
style
>
components/footer.vue
View file @
da6662f0
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
position
:
relative
;
position
:
relative
;
background
:
url("../assets/images/footer.jpg")
no-repeat
;
background
:
url("../assets/images/footer.jpg")
no-repeat
;
color
:
#fff
;
color
:
#fff
;
margin-top
:
-5px
;
}
}
.footer
{
.footer
{
font-family
:
sans-serif
;
font-family
:
sans-serif
;
...
...
components/menu.vue
View file @
da6662f0
This diff is collapsed.
Click to expand it.
components/vehicleBanner.vue
View file @
da6662f0
...
@@ -150,9 +150,23 @@
...
@@ -150,9 +150,23 @@
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.box
{
@media
screen
and
(
min-width
:
1120px
)
and
(
max-width
:
1200px
){
position
:
relative
;
.box
{
height
:
500px
;
position
:
relative
;
height
:
150px
;
}
}
@media
screen
and
(
min-width
:
1201px
)
and
(
max-width
:
1920px
){
.box
{
position
:
relative
;
height
:
180px
;
}
}
@media
screen
and
(
min-width
:
1920px
){
.box
{
position
:
relative
;
height
:
240px
;
}
}
}
span
{
span
{
display
:
block
;
display
:
block
;
...
@@ -178,7 +192,6 @@
...
@@ -178,7 +192,6 @@
}
}
.banner
{
.banner
{
width
:
100%
;
width
:
100%
;
height
:
240px
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
</
style
>
</
style
>
nuxt.config.js
View file @
da6662f0
...
@@ -14,7 +14,8 @@ module.exports = {
...
@@ -14,7 +14,8 @@ module.exports = {
{
rel
:
'stylesheet'
,
href
:
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic'
}
{
rel
:
'stylesheet'
,
href
:
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic'
}
],
],
script
:
[
script
:
[
{
src
:
'https://dev.dfangche.com/h5/appHtml/js/util.js'
}
{
src
:
'https://dev.dfangche.com/h5/appHtml/js/util.js'
},
{
src
:
'https://hm.baidu.com/hm.js?672a607e77e242a0b9a090f5aaab7f33'
}
],
],
},
},
css
:
[
css
:
[
...
...
pages/aboutXx.vue
View file @
da6662f0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pages/activity.vue
View file @
da6662f0
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
class=
"mb-50"
>
class=
"mb-50"
>
</vehicle-banner>
</vehicle-banner>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"bread-menu"
style=
"margin-top: 20px;padding: 0"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<span>
欣新活动
</span>
</div>
<div
class=
"total-div"
>
<div
class=
"total-div"
>
共
{{
totalCount
}}
个活动
共
{{
totalCount
}}
个活动
</div>
</div>
...
...
pages/activityList/_id.vue
View file @
da6662f0
<
template
>
<
template
>
<div>
<div>
<menu-modal></menu-modal>
<menu-modal></menu-modal>
<div
class=
"main-container"
style=
"margin-top: 1
1
0px;"
>
<div
class=
"main-container"
style=
"margin-top: 1
4
0px;"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
>
<div
class=
"bread-menu"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
...
...
pages/campsite.vue
View file @
da6662f0
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
class=
"mb-50"
>
class=
"mb-50"
>
</vehicle-banner>
</vehicle-banner>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
style=
"margin-top: 20px;padding: 0"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<span>
房车营地
</span>
</div>
<div
class=
"clearfix total-div"
style=
"background-color: #fff;padding:13px 0 19px 14px;color:#666;height:50px"
>
<div
class=
"clearfix total-div"
style=
"background-color: #fff;padding:13px 0 19px 14px;color:#666;height:50px"
>
共
{{
totalCount
}}
个房车营地
共
{{
totalCount
}}
个房车营地
<select
<select
...
...
pages/campsiteDetails/_id.vue
View file @
da6662f0
<
template
>
<
template
>
<div>
<div>
<menu-modal></menu-modal>
<menu-modal></menu-modal>
<div
class=
"main-container"
style=
"margin-top: 1
1
0px;"
>
<div
class=
"main-container"
style=
"margin-top: 1
4
0px;"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
>
<div
class=
"bread-menu"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
v-for=
"(item,index) in detail.pictureList"
v-for=
"(item,index) in detail.pictureList"
:key=
"index"
:key=
"index"
@
click=
"changeImgIndex(index,detail.pictureList.length)"
@
click=
"changeImgIndex(index,detail.pictureList.length)"
>
>
<img
<img
:src=
"item.imgUrl"
:src=
"item.imgUrl"
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<!--
<h6
style=
"font-size:12px;font-weight:400"
>
安卓用户微信扫码可马上下单
</h6>
-->
<!--
<h6
style=
"font-size:12px;font-weight:400"
>
安卓用户微信扫码可马上下单
</h6>
-->
</div>
</div>
</div>
</div>
<div
style=
"float:left;width:114px;text-align:center"
>
<div
style=
"float:left;width:114px;text-align:center"
>
<div
style=
"background:#FFF5E6;border:2px solid #FFB74B"
>
<div
style=
"background:#FFF5E6;border:2px solid #FFB74B"
>
<img
src=
"../../assets/images/xxfczs.jpg"
style=
"width: 90px;margin:12px 10px 8px 10px;"
/>
<img
src=
"../../assets/images/xxfczs.jpg"
style=
"width: 90px;margin:12px 10px 8px 10px;"
/>
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<h3
style=
"font-size:16px;font-weight:bold;margin-bottom:20px"
>
营地详情
</h3>
<h3
style=
"font-size:16px;font-weight:bold;margin-bottom:20px"
>
营地详情
</h3>
<div
v-html=
"detail.content"
>
<div
v-html=
"detail.content"
>
</div>
</div>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
配套设施收费
</h3>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
配套设施收费
</h3>
<div
v-html=
"detail.configure"
>
<div
v-html=
"detail.configure"
>
</div>
</div>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
预定须知
</h3>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
预定须知
</h3>
...
@@ -96,11 +96,11 @@
...
@@ -96,11 +96,11 @@
<img
:src=
"item.imgUrl"
alt=
""
style=
"width:180px;height:135px"
>
<img
:src=
"item.imgUrl"
alt=
""
style=
"width:180px;height:135px"
>
<h5
style=
"overflow: hidden;text-overflow:ellipsis;margin:21px 0 30px 0;font-weight:400;font-size:16px;white-space: nowrap;"
>
{{
item
.
name
}}
</h5>
<h5
style=
"overflow: hidden;text-overflow:ellipsis;margin:21px 0 30px 0;font-weight:400;font-size:16px;white-space: nowrap;"
>
{{
item
.
name
}}
</h5>
<nuxt-link
:to=
"item.link"
><button
class=
"buttonDetail"
style=
"font-size:14px;margin-bottom:57px"
>
营地详情
</button></nuxt-link>
<nuxt-link
:to=
"item.link"
><button
class=
"buttonDetail"
style=
"font-size:14px;margin-bottom:57px"
>
营地详情
</button></nuxt-link>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer-modal></footer-modal>
<footer-modal></footer-modal>
...
@@ -263,7 +263,7 @@ export default {
...
@@ -263,7 +263,7 @@ export default {
color
:
#fff
;
color
:
#fff
;
background
:
#1bbb9f
;
background
:
#1bbb9f
;
}
}
</
style
>
</
style
>
pages/index.vue
View file @
da6662f0
This diff is collapsed.
Click to expand it.
pages/news.vue
View file @
da6662f0
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
class=
"mb-50"
>
class=
"mb-50"
>
</vehicle-banner>
</vehicle-banner>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"bread-menu"
style=
"margin-top: 20px;padding: 0"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<span>
新闻动态
</span>
</div>
<div
class=
"total-div"
>
<div
class=
"total-div"
>
共
{{
totalCount
}}
篇新闻资讯
共
{{
totalCount
}}
篇新闻资讯
</div>
</div>
...
...
pages/newsList/_id.vue
View file @
da6662f0
<
template
>
<
template
>
<div>
<div>
<menu-modal></menu-modal>
<menu-modal></menu-modal>
<div
class=
"main-container"
style=
"margin-top: 1
1
0px;"
>
<div
class=
"main-container"
style=
"margin-top: 1
4
0px;"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
>
<div
class=
"bread-menu"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
...
...
pages/tour.vue
View file @
da6662f0
...
@@ -19,6 +19,10 @@
...
@@ -19,6 +19,10 @@
</vehicle-banner>
</vehicle-banner>
</div>
</div>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
style=
"margin-top: 20px;padding: 0"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<span>
房车旅行
</span>
</div>
<div
class=
"clearfix total-div"
style=
"background-color: #fff;padding:13px 0 19px 14px;color:#666;height:50px"
>
<div
class=
"clearfix total-div"
style=
"background-color: #fff;padding:13px 0 19px 14px;color:#666;height:50px"
>
共
{{
totalCount
}}
个旅行路线
共
{{
totalCount
}}
个旅行路线
<!--
<div
class=
"selectDiv"
>
-->
<!--
<div
class=
"selectDiv"
>
-->
...
@@ -135,10 +139,10 @@
...
@@ -135,10 +139,10 @@
}
}
},
},
async
asyncData
()
{
async
asyncData
()
{
const
{
data
}
=
await
axios
.
get
(
'/api/app/banner/app/unauth/findBannerlist?type=1&platform=1'
);
const
{
data
}
=
await
axios
.
get
(
'/api/app/banner/app/unauth/findBannerlist?type=1&platform=1'
);
let
cc
=
data
.
data
;
let
cc
=
data
.
data
;
return
{
bannerList
:
cc
}
return
{
bannerList
:
cc
}
},
},
}
}
</
script
>
</
script
>
...
...
pages/tourDetails/_id.vue
View file @
da6662f0
<
template
>
<
template
>
<div>
<div>
<menu-modal></menu-modal>
<menu-modal></menu-modal>
<div
class=
"main-container"
style=
"margin-top: 1
1
0px;"
>
<div
class=
"main-container"
style=
"margin-top: 1
4
0px;"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
>
<div
class=
"bread-menu"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<!--
<h6
style=
"font-size:12px;font-weight:400"
>
安卓用户微信扫码可马上下单
</h6>
-->
<!--
<h6
style=
"font-size:12px;font-weight:400"
>
安卓用户微信扫码可马上下单
</h6>
-->
</div>
</div>
</div>
</div>
<div
style=
"float:left;width:114px;text-align:center"
>
<div
style=
"float:left;width:114px;text-align:center"
>
<div
style=
"background:#FFF5E6;border:2px solid #FFB74B"
>
<div
style=
"background:#FFF5E6;border:2px solid #FFB74B"
>
<img
src=
"../../assets/images/xxfczs.jpg"
style=
"width: 90px;margin:12px 10px 8px 10px;"
/>
<img
src=
"../../assets/images/xxfczs.jpg"
style=
"width: 90px;margin:12px 10px 8px 10px;"
/>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<h3
style=
"font-size:16px;font-weight:bold;margin-bottom:20px"
>
行程亮点
</h3>
<h3
style=
"font-size:16px;font-weight:bold;margin-bottom:20px"
>
行程亮点
</h3>
<div
v-html=
"detail.content"
>
<div
v-html=
"detail.content"
>
</div>
</div>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
行程介绍
</h3>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
行程介绍
</h3>
<div
v-html=
"detail.introduce"
>
<div
v-html=
"detail.introduce"
>
</div>
</div>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
报名须知
</h3>
<h3
style=
"margin:31px 0 20px 0;font-size:16px;font-weight:bold"
>
报名须知
</h3>
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<img
:src=
"item.cover"
alt=
""
style=
"width:180px;height:135px"
>
<img
:src=
"item.cover"
alt=
""
style=
"width:180px;height:135px"
>
<h5
style=
"overflow: hidden;text-overflow:ellipsis;margin:21px 0 30px 0;font-weight:400;font-size:16px;white-space: nowrap;"
>
{{
item
.
name
}}
</h5>
<h5
style=
"overflow: hidden;text-overflow:ellipsis;margin:21px 0 30px 0;font-weight:400;font-size:16px;white-space: nowrap;"
>
{{
item
.
name
}}
</h5>
<nuxt-link
:to=
"item.link"
><button
class=
"buttonDetail"
style=
"font-size:14px;margin-bottom:57px"
>
旅游详情
</button></nuxt-link>
<nuxt-link
:to=
"item.link"
><button
class=
"buttonDetail"
style=
"font-size:14px;margin-bottom:57px"
>
旅游详情
</button></nuxt-link>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -143,7 +143,7 @@ export default {
...
@@ -143,7 +143,7 @@ export default {
lengthPic
:
0
,
lengthPic
:
0
,
preIndex
:
0
,
//当前轮播选中图
preIndex
:
0
,
//当前轮播选中图
visible
:
false
,
visible
:
false
,
};
};
},
},
validate
({
params
})
{
validate
({
params
})
{
...
@@ -183,9 +183,9 @@ export default {
...
@@ -183,9 +183,9 @@ export default {
user
.
time
.
weekStart
=
weekday
[
user
.
time
.
startWeek
];
user
.
time
.
weekStart
=
weekday
[
user
.
time
.
startWeek
];
user
.
time
.
weekEnd
=
weekday
[
user
.
time
.
endWeek
];
user
.
time
.
weekEnd
=
weekday
[
user
.
time
.
endWeek
];
// console.log(startAddress);
// console.log(startAddress);
console
.
log
(
pic
);
console
.
log
(
pic
);
console
.
log
(
user
);
console
.
log
(
user
);
if
(
!
user
)
{
if
(
!
user
)
{
return
error
({
message
:
'User not found'
,
statusCode
:
404
})
return
error
({
message
:
'User not found'
,
statusCode
:
404
})
...
@@ -197,7 +197,7 @@ export default {
...
@@ -197,7 +197,7 @@ export default {
item
.
link
=
encodeURI
(
item
.
link
)
item
.
link
=
encodeURI
(
item
.
link
)
});
});
console
.
log
(
hot
);
console
.
log
(
hot
);
let
noticeData
=
await
axios
.
get
(
env
.
host
+
'/api/app/cofig/app/unauth/types?types=14'
);
let
noticeData
=
await
axios
.
get
(
env
.
host
+
'/api/app/cofig/app/unauth/types?types=14'
);
let
notice
=
noticeData
.
data
.
data
;
let
notice
=
noticeData
.
data
.
data
;
return
{
detail
:
user
,
hotList
:
hot
,
notice
:
notice
}
return
{
detail
:
user
,
hotList
:
hot
,
notice
:
notice
}
...
...
pages/vehicle.vue
View file @
da6662f0
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
class=
"mb-50"
>
class=
"mb-50"
>
</vehicle-banner>
</vehicle-banner>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"wrap"
style=
"background: #f1f1f1;"
>
<div
class=
"bread-menu"
style=
"margin-top: 20px;padding: 0"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<span>
房车租赁
</span>
</div>
<div
class=
"total-div"
>
<div
class=
"total-div"
>
共
{{
totalCount
}}
款车型
共
{{
totalCount
}}
款车型
</div>
</div>
...
...
pages/vehicleList/_id.vue
View file @
da6662f0
<
template
>
<
template
>
<div
class=
"vehicle-container"
>
<div
class=
"vehicle-container"
>
<menu-modal></menu-modal>
<menu-modal></menu-modal>
<div
class=
"main-container"
style=
"margin-top: 1
1
0px;"
>
<div
class=
"main-container"
style=
"margin-top: 1
4
0px;"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"bread-menu"
>
<div
class=
"bread-menu"
>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
<nuxt-link
to=
"/"
>
首页>
</nuxt-link>
...
...
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