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
a37d1983
Commit
a37d1983
authored
Sep 25, 2019
by
denghr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新闻动态图片
parent
e9c91395
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1004 additions
and
597 deletions
+1004
-597
App.js
.nuxt/App.js
+1
-5
nuxt.js
.nuxt/components/nuxt.js
+1
-1
index.js
.nuxt/index.js
+9
-1
router.js
.nuxt/router.js
+144
-30
utils.js
.nuxt/utils.js
+1
-1
menu.vue
components/menu.vue
+250
-93
package-lock.json
package-lock.json
+9
-4
_id.vue
pages/activityList/_id.vue
+204
-171
_id.vue
pages/campsiteDetails/_id.vue
+12
-2
news.vue
pages/news.vue
+1
-1
_id.vue
pages/tourDetails/_id.vue
+12
-2
_id.vue
pages/vehicleList/_id.vue
+360
-286
No files found.
.nuxt/App.js
View file @
a37d1983
import
Vue
from
'vue'
import
NuxtLoading
from
'~/components/loading.vue'
import
'..
\\
assets
\\
main.css'
import
'..
\\
node_modules
\\
_swiper@4.0.7@swiper
\\
dist
\\
css
\\
swiper.min.css'
let
layouts
=
{
...
...
@@ -15,7 +11,7 @@ let layouts = {
let
resolvedLayouts
=
{}
export
default
{
head
:
{
"title"
:
"欣新房车—房车·让生活更美好-房车销售丨房车租赁丨房车旅游丨房车托管"
,
"meta"
:[{
"charset"
:
"utf-8"
},{
"name"
:
"viewport"
,
"content"
:
"width=device-width, initial-scale=1"
},{
"
name"
:
"keywords"
,
"content"
:
"欣新房车,房车旅游,房车,房车租赁,房车销售,房车价格,房车之家,房车经济,房车高峰论坛"
},{
"hid"
:
"description"
,
"name"
:
"description"
,
"content"
:
"欣新房车是一家专业从事房车销售,房车租赁,房车旅游,房车托管及房车产业配套与服务的免费异地取车异地还车已在全国各地举办多届房车经济峰会的集团股份公司"
}],
"link"
:[{
"rel"
:
"icon"
,
"type"
:
"image
\
u002Fx-icon"
,
"href"
:
"
\
u002Ffavicon.ico"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Ffonts.googleapis.com
\
u002Fcss?family=Roboto:300,400,500,700,400italic"
}],
"style"
:[],
"script
"
:[]},
head
:
{
"title"
:
"欣新房车—房车·让生活更美好-房车销售丨房车租赁丨房车旅游丨房车托管"
,
"meta"
:[{
"charset"
:
"utf-8"
},{
"name"
:
"viewport"
,
"content"
:
"width=device-width, initial-scale=1"
},{
"
hid"
:
"keywords"
,
"name"
:
"keywords"
,
"content"
:
"欣新房车,房车旅游,房车,房车租赁,房车销售,房车价格,房车之家,房车经济,房车高峰论坛"
},{
"hid"
:
"description"
,
"name"
:
"description"
,
"content"
:
"欣新房车是一家专业从事房车销售,房车租赁,房车旅游,房车托管及房车产业配套与服务的免费异地取车异地还车已在全国各地举办多届房车经济峰会的集团股份公司"
}],
"link"
:[{
"rel"
:
"icon"
,
"type"
:
"image
\
u002Fx-icon"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fimage
\
u002F1
\
u002Fapp
\
u002F5d9c62b7412efd926f70e0ed5efb19a.png"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Ffonts.googleapis.com
\
u002Fcss?family=Roboto:300,400,500,700,400italic"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Fmain.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Fmenu.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Ffooter.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Findex.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002FgoTop.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fmgmt.dfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Fswiper.min.css"
},{
"rel"
:
"stylesheet"
,
"href"
:
"https:
\
u002F
\
u002Fwww.xxfangche.com
\
u002Fxxfccn
\
u002Fcss
\
u002Fpc
\
u002Fel
\
u002Findex.css"
}],
"script"
:[{
"src"
:
"https:
\
u002F
\
u002Fdev.dfangche.com
\
u002Fh5
\
u002FappHtml
\
u002Fjs
\
u002Futil.js"
}],
"style
"
:[]},
render
(
h
,
props
)
{
const
loadingEl
=
h
(
'nuxt-loading'
,
{
ref
:
'loading'
})
const
layoutEl
=
h
(
this
.
layout
||
'nuxt'
)
...
...
.nuxt/components/nuxt.js
View file @
a37d1983
import
Vue
from
'vue'
import
NuxtChild
from
'./nuxt-child'
import
NuxtError
from
'.
/nuxt-
error.vue'
import
NuxtError
from
'.
./..
\\
layouts
\\
error.vue'
import
{
compile
}
from
'../utils'
export
default
{
...
...
.nuxt/index.js
View file @
a37d1983
...
...
@@ -5,7 +5,7 @@ import { createRouter } from './router.js'
import
NoSSR
from
'./components/no-ssr.js'
import
NuxtChild
from
'./components/nuxt-child.js'
import
NuxtLink
from
'./components/nuxt-link.js'
import
NuxtError
from
'.
/components/nuxt-
error.vue'
import
NuxtError
from
'.
.
\\
layouts
\\
error.vue'
import
Nuxt
from
'./components/nuxt.js'
import
App
from
'./App.js'
import
{
setContext
,
getLocation
,
getRouteData
}
from
'./utils'
...
...
@@ -13,6 +13,10 @@ import { setContext, getLocation, getRouteData } from './utils'
/* Plugins */
import
nuxt_plugin_museui_2c5e8732
from
'nuxt_plugin_museui_2c5e8732'
// Source: ..\\plugins\\muse-ui.js
import
nuxt_plugin_filters_2b4f519a
from
'nuxt_plugin_filters_2b4f519a'
// Source: ..\\plugins\\filters.js
import
nuxt_plugin_elementUI_3fa02fdd
from
'nuxt_plugin_elementUI_3fa02fdd'
// Source: ..\\plugins\\elementUI.js
import
nuxt_plugin_baidu_7b6ad772
from
'nuxt_plugin_baidu_7b6ad772'
// Source: ..\\plugins\\baidu.js
import
nuxt_plugin_viewer_1261dfef
from
'nuxt_plugin_viewer_1261dfef'
// Source: ..\\plugins\\viewer.js
// Component: <no-ssr>
...
...
@@ -135,6 +139,10 @@ async function createApp (ssrContext) {
// Plugin execution
if
(
typeof
nuxt_plugin_museui_2c5e8732
===
'function'
)
await
nuxt_plugin_museui_2c5e8732
(
app
.
context
,
inject
)
if
(
typeof
nuxt_plugin_filters_2b4f519a
===
'function'
)
await
nuxt_plugin_filters_2b4f519a
(
app
.
context
,
inject
)
if
(
typeof
nuxt_plugin_elementUI_3fa02fdd
===
'function'
)
await
nuxt_plugin_elementUI_3fa02fdd
(
app
.
context
,
inject
)
if
(
typeof
nuxt_plugin_baidu_7b6ad772
===
'function'
)
await
nuxt_plugin_baidu_7b6ad772
(
app
.
context
,
inject
)
if
(
typeof
nuxt_plugin_viewer_1261dfef
===
'function'
)
await
nuxt_plugin_viewer_1261dfef
(
app
.
context
,
inject
)
// If server-side, wait for async component to be resolved first
...
...
.nuxt/router.js
View file @
a37d1983
...
...
@@ -3,16 +3,35 @@ import Router from 'vue-router'
Vue
.
use
(
Router
)
const
_916d4edc
=
()
=>
import
(
'..
\\
pages
\\
vehicle.vue'
/* webpackChunkName: "pages_vehicle" */
).
then
(
m
=>
m
.
default
||
m
)
const
_55fc1c46
=
()
=>
import
(
'..
\\
pages
\\
news.vue'
/* webpackChunkName: "pages_news" */
).
then
(
m
=>
m
.
default
||
m
)
const
_96254626
=
()
=>
import
(
'..
\\
pages
\\
demo.vue'
/* webpackChunkName: "pages_demo" */
).
then
(
m
=>
m
.
default
||
m
)
const
_0e939319
=
()
=>
import
(
'..
\\
pages
\\
activity.vue'
/* webpackChunkName: "pages_activity" */
).
then
(
m
=>
m
.
default
||
m
)
const
_1b677f5a
=
()
=>
import
(
'..
\\
pages
\\
aboutXx.vue'
/* webpackChunkName: "pages_aboutXx" */
).
then
(
m
=>
m
.
default
||
m
)
const
_1b4d0cd2
=
()
=>
import
(
'..
\\
pages
\\
campsite.vue'
/* webpackChunkName: "pages_campsite" */
).
then
(
m
=>
m
.
default
||
m
)
const
_51cf86e2
=
()
=>
import
(
'..
\\
pages
\\
tour.vue'
/* webpackChunkName: "pages_tour" */
).
then
(
m
=>
m
.
default
||
m
)
const
_5df21ee8
=
()
=>
import
(
'..
\\
pages
\\
demoList
\\
demoList.vue'
/* webpackChunkName: "pages_demoList_demoList" */
).
then
(
m
=>
m
.
default
||
m
)
const
_802b9bc2
=
()
=>
import
(
'..
\\
pages
\\
demoList
\\
_id.vue'
/* webpackChunkName: "pages_demoList__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_e86eea90
=
()
=>
import
(
'..
\\
pages
\\
index.vue'
/* webpackChunkName: "pages_index" */
).
then
(
m
=>
m
.
default
||
m
)
const
_7371174b
=
()
=>
import
(
'..
\\
pages
\\
news.vue'
/* webpackChunkName: "pages_news" */
).
then
(
m
=>
m
.
default
||
m
)
const
_4103d738
=
()
=>
import
(
'..
\\
pages
\\
vehicle.vue'
/* webpackChunkName: "pages_vehicle" */
).
then
(
m
=>
m
.
default
||
m
)
const
_1f82a760
=
()
=>
import
(
'..
\\
pages
\\
tour.vue'
/* webpackChunkName: "pages_tour" */
).
then
(
m
=>
m
.
default
||
m
)
const
_1a80fc25
=
()
=>
import
(
'..
\\
pages
\\
aboutXx.vue'
/* webpackChunkName: "pages_aboutXx" */
).
then
(
m
=>
m
.
default
||
m
)
const
_26135cf2
=
()
=>
import
(
'..
\\
pages
\\
activity.vue'
/* webpackChunkName: "pages_activity" */
).
then
(
m
=>
m
.
default
||
m
)
const
_0ca06980
=
()
=>
import
(
'..
\\
pages
\\
campsite.vue'
/* webpackChunkName: "pages_campsite" */
).
then
(
m
=>
m
.
default
||
m
)
const
_535c825b
=
()
=>
import
(
'..
\\
pages
\\
demo.vue'
/* webpackChunkName: "pages_demo" */
).
then
(
m
=>
m
.
default
||
m
)
const
_113883cc
=
()
=>
import
(
'..
\\
pages
\\
indexWeb.vue'
/* webpackChunkName: "pages_indexWeb" */
).
then
(
m
=>
m
.
default
||
m
)
const
_96ce9d96
=
()
=>
import
(
'..
\\
pages
\\
company.vue'
/* webpackChunkName: "pages_company" */
).
then
(
m
=>
m
.
default
||
m
)
const
_80e40e7c
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
all.vue'
/* webpackChunkName: "pages_findList_all" */
).
then
(
m
=>
m
.
default
||
m
)
const
_1ca2fa60
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findTour.vue'
/* webpackChunkName: "pages_findList_findTour" */
).
then
(
m
=>
m
.
default
||
m
)
const
_33728eb8
=
()
=>
import
(
'..
\\
pages
\\
vehicleList
\\
vehicleList.vue'
/* webpackChunkName: "pages_vehicleList_vehicleList" */
).
then
(
m
=>
m
.
default
||
m
)
const
_00eecb5a
=
()
=>
import
(
'..
\\
pages
\\
newsList
\\
newsList.vue'
/* webpackChunkName: "pages_newsList_newsList" */
).
then
(
m
=>
m
.
default
||
m
)
const
_53ffda52
=
()
=>
import
(
'..
\\
pages
\\
activityList
\\
activityList.vue'
/* webpackChunkName: "pages_activityList_activityList" */
).
then
(
m
=>
m
.
default
||
m
)
const
_d935d0d2
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findActivity.vue'
/* webpackChunkName: "pages_findList_findActivity" */
).
then
(
m
=>
m
.
default
||
m
)
const
_53d8fd7a
=
()
=>
import
(
'..
\\
pages
\\
demoList
\\
demoList.vue'
/* webpackChunkName: "pages_demoList_demoList" */
).
then
(
m
=>
m
.
default
||
m
)
const
_8fe11c90
=
()
=>
import
(
'..
\\
pages
\\
campsiteDetails
\\
campsiteDetails.vue'
/* webpackChunkName: "pages_campsiteDetails_campsiteDetails" */
).
then
(
m
=>
m
.
default
||
m
)
const
_3bf3bab8
=
()
=>
import
(
'..
\\
pages
\\
tourDetails
\\
tourDetails.vue'
/* webpackChunkName: "pages_tourDetails_tourDetails" */
).
then
(
m
=>
m
.
default
||
m
)
const
_bfc2dd60
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findCampsite.vue'
/* webpackChunkName: "pages_findList_findCampsite" */
).
then
(
m
=>
m
.
default
||
m
)
const
_67d36758
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findVehicle.vue'
/* webpackChunkName: "pages_findList_findVehicle" */
).
then
(
m
=>
m
.
default
||
m
)
const
_bd9e2db6
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findCompany.vue'
/* webpackChunkName: "pages_findList_findCompany" */
).
then
(
m
=>
m
.
default
||
m
)
const
_bc1e5670
=
()
=>
import
(
'..
\\
pages
\\
findList
\\
findNew.vue'
/* webpackChunkName: "pages_findList_findNew" */
).
then
(
m
=>
m
.
default
||
m
)
const
_f54a1ef0
=
()
=>
import
(
'..
\\
pages
\\
vehicleList
\\
_id.vue'
/* webpackChunkName: "pages_vehicleList__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_98217cfe
=
()
=>
import
(
'..
\\
pages
\\
newsList
\\
_id.vue'
/* webpackChunkName: "pages_newsList__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_deaac4b0
=
()
=>
import
(
'..
\\
pages
\\
tourDetails
\\
_id.vue'
/* webpackChunkName: "pages_tourDetails__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_04e1cac5
=
()
=>
import
(
'..
\\
pages
\\
activityList
\\
_id.vue'
/* webpackChunkName: "pages_activityList__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_239656d0
=
()
=>
import
(
'..
\\
pages
\\
campsiteDetails
\\
_id.vue'
/* webpackChunkName: "pages_campsiteDetails__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_f9796f1e
=
()
=>
import
(
'..
\\
pages
\\
demoList
\\
_id.vue'
/* webpackChunkName: "pages_demoList__id" */
).
then
(
m
=>
m
.
default
||
m
)
const
_8983d9ec
=
()
=>
import
(
'..
\\
pages
\\
index.vue'
/* webpackChunkName: "pages_index" */
).
then
(
m
=>
m
.
default
||
m
)
...
...
@@ -72,54 +91,149 @@ export function createRouter () {
linkExactActiveClass
:
'nuxt-link-exact-active'
,
scrollBehavior
,
routes
:
[
{
path
:
"/vehicle"
,
component
:
_916d4edc
,
name
:
"vehicle"
},
{
path
:
"/news"
,
component
:
_
55fc1c46
,
component
:
_
7371174b
,
name
:
"news"
},
{
path
:
"/
demo
"
,
component
:
_
96254626
,
name
:
"
demo
"
path
:
"/
vehicle
"
,
component
:
_
4103d738
,
name
:
"
vehicle
"
},
{
path
:
"/
activity
"
,
component
:
_
0e939319
,
name
:
"
activity
"
path
:
"/
tour
"
,
component
:
_
1f82a760
,
name
:
"
tour
"
},
{
path
:
"/aboutXx"
,
component
:
_1
b677f5a
,
component
:
_1
a80fc25
,
name
:
"aboutXx"
},
{
path
:
"/activity"
,
component
:
_26135cf2
,
name
:
"activity"
},
{
path
:
"/campsite"
,
component
:
_
1b4d0cd2
,
component
:
_
0ca06980
,
name
:
"campsite"
},
{
path
:
"/tour"
,
component
:
_51cf86e2
,
name
:
"tour"
path
:
"/demo"
,
component
:
_535c825b
,
name
:
"demo"
},
{
path
:
"/indexWeb"
,
component
:
_113883cc
,
name
:
"indexWeb"
},
{
path
:
"/company"
,
component
:
_96ce9d96
,
name
:
"company"
},
{
path
:
"/findList/all"
,
component
:
_80e40e7c
,
name
:
"findList-all"
},
{
path
:
"/findList/findTour"
,
component
:
_1ca2fa60
,
name
:
"findList-findTour"
},
{
path
:
"/vehicleList/vehicleList"
,
component
:
_33728eb8
,
name
:
"vehicleList-vehicleList"
},
{
path
:
"/newsList/newsList"
,
component
:
_00eecb5a
,
name
:
"newsList-newsList"
},
{
path
:
"/activityList/activityList"
,
component
:
_53ffda52
,
name
:
"activityList-activityList"
},
{
path
:
"/findList/findActivity"
,
component
:
_d935d0d2
,
name
:
"findList-findActivity"
},
{
path
:
"/demoList/demoList"
,
component
:
_5
df21ee8
,
component
:
_5
3d8fd7a
,
name
:
"demoList-demoList"
},
{
path
:
"/campsiteDetails/campsiteDetails"
,
component
:
_8fe11c90
,
name
:
"campsiteDetails-campsiteDetails"
},
{
path
:
"/tourDetails/tourDetails"
,
component
:
_3bf3bab8
,
name
:
"tourDetails-tourDetails"
},
{
path
:
"/findList/findCampsite"
,
component
:
_bfc2dd60
,
name
:
"findList-findCampsite"
},
{
path
:
"/findList/findVehicle"
,
component
:
_67d36758
,
name
:
"findList-findVehicle"
},
{
path
:
"/findList/findCompany"
,
component
:
_bd9e2db6
,
name
:
"findList-findCompany"
},
{
path
:
"/findList/findNew"
,
component
:
_bc1e5670
,
name
:
"findList-findNew"
},
{
path
:
"/vehicleList/:id?"
,
component
:
_f54a1ef0
,
name
:
"vehicleList-id"
},
{
path
:
"/newsList/:id?"
,
component
:
_98217cfe
,
name
:
"newsList-id"
},
{
path
:
"/tourDetails/:id?"
,
component
:
_deaac4b0
,
name
:
"tourDetails-id"
},
{
path
:
"/activityList/:id?"
,
component
:
_04e1cac5
,
name
:
"activityList-id"
},
{
path
:
"/campsiteDetails/:id?"
,
component
:
_239656d0
,
name
:
"campsiteDetails-id"
},
{
path
:
"/demoList/:id?"
,
component
:
_
802b9bc2
,
component
:
_
f9796f1e
,
name
:
"demoList-id"
},
{
path
:
"/"
,
component
:
_
e86eea90
,
component
:
_
8983d9ec
,
name
:
"index"
}
],
...
...
.nuxt/utils.js
View file @
a37d1983
...
...
@@ -120,7 +120,7 @@ export async function setContext(app, context) {
payload
:
context
.
payload
,
error
:
context
.
error
,
base
:
'/'
,
env
:
{
"host"
:
"https://
dev.dfangche
.com"
}
env
:
{
"host"
:
"https://
xxtest.upyuns
.com"
}
}
// Only set once
if
(
context
.
req
)
app
.
context
.
req
=
context
.
req
...
...
components/menu.vue
View file @
a37d1983
This diff is collapsed.
Click to expand it.
package-lock.json
View file @
a37d1983
...
...
@@ -3771,7 +3771,8 @@
},
"ansi-regex"
:
{
"version"
:
"2.1.1"
,
"bundled"
:
true
"bundled"
:
true
,
"optional"
:
true
},
"aproba"
:
{
"version"
:
"1.2.0"
,
...
...
@@ -4136,7 +4137,8 @@
},
"safe-buffer"
:
{
"version"
:
"5.1.2"
,
"bundled"
:
true
"bundled"
:
true
,
"optional"
:
true
},
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
...
...
@@ -4184,6 +4186,7 @@
"strip-ansi"
:
{
"version"
:
"3.0.1"
,
"bundled"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-regex"
:
"^2.0.0"
}
...
...
@@ -4222,11 +4225,13 @@
},
"wrappy"
:
{
"version"
:
"1.0.2"
,
"bundled"
:
true
"bundled"
:
true
,
"optional"
:
true
},
"yallist"
:
{
"version"
:
"3.0.3"
,
"bundled"
:
true
"bundled"
:
true
,
"optional"
:
true
}
}
},
...
...
pages/activityList/_id.vue
View file @
a37d1983
This diff is collapsed.
Click to expand it.
pages/campsiteDetails/_id.vue
View file @
a37d1983
...
...
@@ -217,8 +217,18 @@ export default {
});
},
head
:
{
title
:
"营地详情"
head
()
{
return
{
title
:
this
.
detail
.
name
,
meta
:
[
{
hid
:
"keywords"
,
name
:
"keywords"
,
content
:
this
.
detail
.
keywords
},
{
hid
:
"description"
,
name
:
"description"
,
content
:
this
.
detail
.
description
}
]
};
}
};
</
script
>
...
...
pages/news.vue
View file @
a37d1983
...
...
@@ -27,7 +27,7 @@
<ul
class=
"campsiteDetail"
>
<li
v-for=
"item in dataDetail"
:key=
"item.id"
class=
"new-item"
>
<nuxt-link
:to=
"'/newsList/'+item.id"
>
<img
:src=
"item.coverImage"
:alt=
"item.alt"
style=
"width:270px
;height: 172px
"
/>
<img
:src=
"item.coverImage"
:alt=
"item.alt"
style=
"width:270px
!important;height: 172px !important
"
/>
<div
style=
"margin-left:20px"
class=
"active-r"
>
<h2
class=
"ellipsis2"
>
{{
item
.
title
}}
</h2>
<div
class=
"ellipsis2 epitome"
>
导语:
{{
item
.
epitome
}}
</div>
...
...
pages/tourDetails/_id.vue
View file @
a37d1983
...
...
@@ -277,8 +277,18 @@ export default {
}
});
},
head
:
{
title
:
"旅游详情"
head
()
{
return
{
title
:
this
.
detail
.
name
,
meta
:
[
{
hid
:
"keywords"
,
name
:
"keywords"
,
content
:
this
.
detail
.
keywords
},
{
hid
:
"description"
,
name
:
"description"
,
content
:
this
.
detail
.
description
}
]
};
}
};
</
script
>
...
...
pages/vehicleList/_id.vue
View file @
a37d1983
This diff is collapsed.
Click to expand it.
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