1
This commit is contained in:
parent
0138f03a97
commit
3d3bd4ae35
1
assets/baidu_verify_codeva-rPj1kaf82O.html
Normal file
1
assets/baidu_verify_codeva-rPj1kaf82O.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
37b7b9f213060edd2bd5922974481624
|
@ -15,6 +15,7 @@ export default async function ({
|
|||||||
equipment: store.state.device,
|
equipment: store.state.device,
|
||||||
}
|
}
|
||||||
if (url && url !== '') {
|
if (url && url !== '') {
|
||||||
|
console.log("url", url)
|
||||||
$axios.post('/web/pageSave',data)
|
$axios.post('/web/pageSave',data)
|
||||||
}
|
}
|
||||||
}
|
}
|
434
nuxt.config.js
434
nuxt.config.js
@ -3,223 +3,227 @@ const env = require('./env');
|
|||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
buildDir: 'nuxt-dist',
|
buildDir: 'nuxt-dist',
|
||||||
transition: {
|
transition: {
|
||||||
name: 'page',
|
name: 'page',
|
||||||
mode: 'out-in'
|
mode: 'out-in'
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
** Headers of the page
|
|
||||||
*/
|
|
||||||
head: {
|
|
||||||
title: 'China Trailer, Truck, Trailer Parts, Truck Parts Manufacturers and Factory - Price - SINOTRUCK',
|
|
||||||
meta: [
|
|
||||||
{ charset: 'utf-8' },
|
|
||||||
{name:"google-site-verification",content: "yvuzDTQlcVFJ3L9USTa-dDqYnXp1MA6bL2doJmcv9o8"},
|
|
||||||
{ name: 'apple-mobile-web-app-capable', content: "yes" },
|
|
||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
||||||
{ hid: 'http-equiv', 'http-equiv': "X-UA-Compatible", content: "IE=edge" },
|
|
||||||
{
|
|
||||||
name: 'keywords',
|
|
||||||
content: 'China Trailer, Truck, Trailer Parts, Truck Parts Manufacturers and Factory - Price - SINOTRUCK,trailer, truck, trailer parts, truck parts'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'description',
|
|
||||||
content: 'Shandong Chengda Truck Trailer Co., Ltd. is one of the most professional trailer, truck, trailer parts, truck parts manufacturers in China. Our factory brings here a great selection of truck for sale. Welcome to consult price with us.'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
link: [
|
|
||||||
// { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
||||||
],
|
|
||||||
script: [
|
|
||||||
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
|
|
||||||
//AI助手js
|
|
||||||
{type:"text/javascript" , src: 'https://chat.cdtrucktralier.com/embed.min.js',id:"yadT02u1aNiBBDLa",defer:true}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
NUXT_ENV: env[process.env.MODE]
|
|
||||||
},
|
|
||||||
/*
|
|
||||||
** Customize the progress-bar color
|
|
||||||
*/
|
|
||||||
loading: { color: '#015fe8' },
|
|
||||||
/*
|
|
||||||
** Global CSS
|
|
||||||
*/
|
|
||||||
css: [
|
|
||||||
'~assets/css/base.css',
|
|
||||||
'~assets/css/quill.bubble.css',
|
|
||||||
'~assets/css/quill.snow.css',
|
|
||||||
'~assets/css/quill.core.css',
|
|
||||||
'~assets/css/common.scss',
|
|
||||||
'element-ui/lib/theme-chalk/index.css'
|
|
||||||
],
|
|
||||||
/*
|
|
||||||
** Plugins to load before mounting the App
|
|
||||||
*/
|
|
||||||
plugins: [
|
|
||||||
'~plugins/main',
|
|
||||||
'~plugins/axios',
|
|
||||||
// { src: "~plugins/websocket.js", ssr: true },
|
|
||||||
{ src: "~plugins/router.js", ssr: true },
|
|
||||||
{ src: "~plugins/i18n.js", ssr: true },
|
|
||||||
{ src: "~plugins/element-ui.js", ssr: true },
|
|
||||||
{ src: "~plugins/vue-piczoom.js", ssr: false },
|
|
||||||
{ src: "~plugins/swiper.js", ssr: false },
|
|
||||||
{ src: "~plugins/siteicon.js", ssr: false },
|
|
||||||
],
|
|
||||||
/*
|
|
||||||
** Nuxt.js modules
|
|
||||||
*/
|
|
||||||
modules: [
|
|
||||||
// Doc: https://bootstrap-vue.js.org/docs/
|
|
||||||
'@nuxtjs/axios',
|
|
||||||
'cookie-universal-nuxt',
|
|
||||||
'nuxt-sass-resources-loader',
|
|
||||||
'bootstrap-vue/nuxt',
|
|
||||||
'@nuxtjs/sitemap'
|
|
||||||
],
|
|
||||||
bootstrapVue: {
|
|
||||||
icons: false
|
|
||||||
},
|
|
||||||
sitemap: {
|
|
||||||
hostname: 'https://www.cdtrucktralier.com',
|
|
||||||
sitemaps: [
|
|
||||||
{
|
|
||||||
path: '/sitemap.xml',
|
|
||||||
routes: [
|
|
||||||
'/pages.xml',
|
|
||||||
'/products.xml',
|
|
||||||
'/inquiry.xml',
|
|
||||||
'/article-page.xml',
|
|
||||||
'/separate.xml'
|
|
||||||
],
|
|
||||||
gzip: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/pages.xml',
|
|
||||||
routes: ['/'],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/products.xml',
|
|
||||||
routes: async () => {
|
|
||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=cp&tenantId=main')
|
|
||||||
return res.data.map(item => {
|
|
||||||
return {
|
|
||||||
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
|
||||||
changefreq: 'daily',
|
|
||||||
priority: 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
gzip: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/inquiry.xml',
|
|
||||||
routes: async () => {
|
|
||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=xp&tenantId=main')
|
|
||||||
return res.data.map(item => {
|
|
||||||
return {
|
|
||||||
url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
|
||||||
changefreq: 'daily',
|
|
||||||
priority: 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
gzip: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/article-page.xml',
|
|
||||||
routes: async () => {
|
|
||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
|
||||||
return res.data.map(item => {
|
|
||||||
return {
|
|
||||||
url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
|
||||||
changefreq: 'daily',
|
|
||||||
priority: 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
gzip: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/separate.xml',
|
|
||||||
routes: async () => {
|
|
||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=dym&tenantId=main')
|
|
||||||
return res.data.map(item => {
|
|
||||||
return {
|
|
||||||
url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
|
||||||
changefreq: 'daily',
|
|
||||||
priority: 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
gzip: true
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
router: {
|
|
||||||
middleware: ['burying-point','i18n', 'footer', 'header']
|
|
||||||
},
|
|
||||||
/*
|
|
||||||
** Build configuration
|
|
||||||
*/
|
|
||||||
distDir: 'build',
|
|
||||||
build: {
|
|
||||||
postcss: null,
|
|
||||||
/*
|
/*
|
||||||
** You can extend webpack config here
|
** Headers of the page
|
||||||
*/
|
*/
|
||||||
extend (config, ctx) {
|
head: {
|
||||||
},
|
title: 'China Trailer, Truck, Trailer Parts, Truck Parts Manufacturers and Factory - Price - SINOTRUCK',
|
||||||
plugins: [
|
meta: [
|
||||||
new webpack.ProvidePlugin({
|
{charset: 'utf-8'},
|
||||||
$: "jquery",
|
{name: "google-site-verification", content: "yvuzDTQlcVFJ3L9USTa-dDqYnXp1MA6bL2doJmcv9o8"},
|
||||||
jQuery: "jquery",
|
{name: "baidu-site-verification", content: "codeva-rPj1kaf82O"},
|
||||||
"windows.jQuery": "jquery",
|
{name: 'apple-mobile-web-app-capable', content: "yes"},
|
||||||
'root.jQuery': 'jquery'
|
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
|
||||||
}),
|
{hid: 'http-equiv', 'http-equiv': "X-UA-Compatible", content: "IE=edge"},
|
||||||
],
|
{
|
||||||
babel: {
|
name: 'keywords',
|
||||||
compact: false,
|
content: 'China Trailer, Truck, Trailer Parts, Truck Parts Manufacturers and Factory - Price - SINOTRUCK,trailer, truck, trailer parts, truck parts'
|
||||||
configFile: false,
|
},
|
||||||
babelrc: false,
|
{
|
||||||
presets: [
|
name: 'description',
|
||||||
[
|
content: 'Shandong Chengda Truck Trailer Co., Ltd. is one of the most professional trailer, truck, trailer parts, truck parts manufacturers in China. Our factory brings here a great selection of truck for sale. Welcome to consult price with us.'
|
||||||
'@nuxt/babel-preset-app',
|
}
|
||||||
{
|
],
|
||||||
useBuiltIns: 'entry',
|
link: [
|
||||||
corejs: 3
|
// { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||||
}
|
],
|
||||||
|
script: [
|
||||||
|
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
|
||||||
|
//AI助手js
|
||||||
|
{
|
||||||
|
type: "text/javascript",
|
||||||
|
src: 'https://chat.cdtrucktralier.com/embed.min.js',
|
||||||
|
id: "yadT02u1aNiBBDLa",
|
||||||
|
defer: true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
],
|
|
||||||
plugins: [
|
|
||||||
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
|
||||||
["@babel/plugin-proposal-class-properties", { "loose": true }],
|
|
||||||
["@babel/plugin-proposal-private-methods", { "loose": true }],
|
|
||||||
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
transpile: [
|
env: {
|
||||||
'bootstrap-vue',
|
NUXT_ENV: env[process.env.MODE]
|
||||||
'element-ui',
|
},
|
||||||
]
|
/*
|
||||||
},
|
** Customize the progress-bar color
|
||||||
generate: {
|
*/
|
||||||
routes: [
|
loading: {color: '#015fe8'},
|
||||||
|
/*
|
||||||
]
|
** Global CSS
|
||||||
},
|
*/
|
||||||
server: {
|
css: [
|
||||||
port: 3001,
|
'~assets/css/base.css',
|
||||||
host: '0.0.0.0', // default: localhost
|
'~assets/css/quill.bubble.css',
|
||||||
proxy: {
|
'~assets/css/quill.snow.css',
|
||||||
'/dev': {
|
'~assets/css/quill.core.css',
|
||||||
target: 'https://admin.cdtrucktralier.com/',
|
'~assets/css/common.scss',
|
||||||
pathRewrite: { '^/dev': '' },
|
'element-ui/lib/theme-chalk/index.css'
|
||||||
changeOrigin: true,
|
],
|
||||||
}
|
/*
|
||||||
}
|
** Plugins to load before mounting the App
|
||||||
},
|
*/
|
||||||
|
plugins: [
|
||||||
|
'~plugins/main',
|
||||||
|
'~plugins/axios',
|
||||||
|
// { src: "~plugins/websocket.js", ssr: true },
|
||||||
|
{src: "~plugins/router.js", ssr: true},
|
||||||
|
{src: "~plugins/i18n.js", ssr: true},
|
||||||
|
{src: "~plugins/element-ui.js", ssr: true},
|
||||||
|
{src: "~plugins/vue-piczoom.js", ssr: false},
|
||||||
|
{src: "~plugins/swiper.js", ssr: false},
|
||||||
|
{src: "~plugins/siteicon.js", ssr: false},
|
||||||
|
],
|
||||||
|
/*
|
||||||
|
** Nuxt.js modules
|
||||||
|
*/
|
||||||
|
modules: [
|
||||||
|
// Doc: https://bootstrap-vue.js.org/docs/
|
||||||
|
'@nuxtjs/axios',
|
||||||
|
'cookie-universal-nuxt',
|
||||||
|
'nuxt-sass-resources-loader',
|
||||||
|
'bootstrap-vue/nuxt',
|
||||||
|
'@nuxtjs/sitemap'
|
||||||
|
],
|
||||||
|
bootstrapVue: {
|
||||||
|
icons: false
|
||||||
|
},
|
||||||
|
sitemap: {
|
||||||
|
hostname: 'https://www.cdtrucktralier.com',
|
||||||
|
sitemaps: [
|
||||||
|
{
|
||||||
|
path: '/sitemap.xml',
|
||||||
|
routes: [
|
||||||
|
'/pages.xml',
|
||||||
|
'/products.xml',
|
||||||
|
'/inquiry.xml',
|
||||||
|
'/article-page.xml',
|
||||||
|
'/separate.xml'
|
||||||
|
],
|
||||||
|
gzip: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/pages.xml',
|
||||||
|
routes: ['/'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/products.xml',
|
||||||
|
routes: async () => {
|
||||||
|
const {data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=cp&tenantId=main')
|
||||||
|
return res.data.map(item => {
|
||||||
|
return {
|
||||||
|
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
||||||
|
changefreq: 'daily',
|
||||||
|
priority: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gzip: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/inquiry.xml',
|
||||||
|
routes: async () => {
|
||||||
|
const {data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=xp&tenantId=main')
|
||||||
|
return res.data.map(item => {
|
||||||
|
return {
|
||||||
|
url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
||||||
|
changefreq: 'daily',
|
||||||
|
priority: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gzip: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/article-page.xml',
|
||||||
|
routes: async () => {
|
||||||
|
const {data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
||||||
|
return res.data.map(item => {
|
||||||
|
return {
|
||||||
|
url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
||||||
|
changefreq: 'daily',
|
||||||
|
priority: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gzip: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/separate.xml',
|
||||||
|
routes: async () => {
|
||||||
|
const {data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=dym&tenantId=main')
|
||||||
|
return res.data.map(item => {
|
||||||
|
return {
|
||||||
|
url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
||||||
|
changefreq: 'daily',
|
||||||
|
priority: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gzip: true
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
router: {
|
||||||
|
middleware: ['burying-point', 'i18n', 'footer', 'header']
|
||||||
|
},
|
||||||
|
/*
|
||||||
|
** Build configuration
|
||||||
|
*/
|
||||||
|
distDir: 'build',
|
||||||
|
build: {
|
||||||
|
postcss: null,
|
||||||
|
/*
|
||||||
|
** You can extend webpack config here
|
||||||
|
*/
|
||||||
|
extend(config, ctx) {
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
$: "jquery",
|
||||||
|
jQuery: "jquery",
|
||||||
|
"windows.jQuery": "jquery",
|
||||||
|
'root.jQuery': 'jquery'
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
babel: {
|
||||||
|
compact: false,
|
||||||
|
configFile: false,
|
||||||
|
babelrc: false,
|
||||||
|
presets: [
|
||||||
|
[
|
||||||
|
'@nuxt/babel-preset-app',
|
||||||
|
{
|
||||||
|
useBuiltIns: 'entry',
|
||||||
|
corejs: 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
["@babel/plugin-proposal-decorators", {"legacy": true}],
|
||||||
|
["@babel/plugin-proposal-class-properties", {"loose": true}],
|
||||||
|
["@babel/plugin-proposal-private-methods", {"loose": true}],
|
||||||
|
["@babel/plugin-proposal-private-property-in-object", {"loose": true}],
|
||||||
|
]
|
||||||
|
},
|
||||||
|
transpile: [
|
||||||
|
'bootstrap-vue',
|
||||||
|
'element-ui',
|
||||||
|
]
|
||||||
|
},
|
||||||
|
generate: {
|
||||||
|
routes: []
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
port: 3001,
|
||||||
|
host: '0.0.0.0', // default: localhost
|
||||||
|
proxy: {
|
||||||
|
'/dev': {
|
||||||
|
target: 'https://admin.cdtrucktralier.com/',
|
||||||
|
pathRewrite: {'^/dev': ''},
|
||||||
|
changeOrigin: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
1
static/baidu_verify_codeva-rPj1kaf82O.html
Normal file
1
static/baidu_verify_codeva-rPj1kaf82O.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
37b7b9f213060edd2bd5922974481624
|
Loading…
Reference in New Issue
Block a user