1
This commit is contained in:
parent
8c954b13c7
commit
20bdea3e4c
@ -107,7 +107,7 @@ export default {
|
|||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=cp&tenantId=main')
|
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=cp&tenantId=main')
|
||||||
return res.data.map(item => {
|
return res.data.map(item => {
|
||||||
return {
|
return {
|
||||||
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
|
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
||||||
changefreq: 'daily',
|
changefreq: 'daily',
|
||||||
priority: 1
|
priority: 1
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ export default {
|
|||||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
||||||
return res.data.map(item => {
|
return res.data.map(item => {
|
||||||
return {
|
return {
|
||||||
url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
|
url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}&title=${item.title}`,
|
||||||
changefreq: 'daily',
|
changefreq: 'daily',
|
||||||
priority: 1
|
priority: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<div v-html="prodUp"></div>
|
<div v-html="prodUp"></div>
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
class="article-page-item box_shadow row mt-4"
|
class="article-page-item box_shadow row mt-4"
|
||||||
:to="`/article-page/${item.id}?maxCatgId=${item.maxCatgId}&catgId=${item.catgId}`"
|
:to="`/article-page/${item.id}?maxCatgId=${item.maxCatgId}&catgId=${item.catgId}&title=${item.title}`"
|
||||||
v-for="item in pordObj.records"
|
v-for="item in pordObj.records"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<li class="col-12 col-md-4" v-for="item in pordObj.records" :key="item.id">
|
<li class="col-12 col-md-4" v-for="item in pordObj.records" :key="item.id">
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
class="products-item box_shadow mt-2"
|
class="products-item box_shadow mt-2"
|
||||||
:to="`/products/${item.id}?catgId=${item.catgId}&maxCatgId=${item.maxCatgId}`"
|
:to="`/products/${item.id}?catgId=${item.catgId}&maxCatgId=${item.maxCatgId}&title=${item.title}`"
|
||||||
>
|
>
|
||||||
<article class="product-card box_shadow">
|
<article class="product-card box_shadow">
|
||||||
<img style="height: 200px;" class="img_reset" :src="item.mainPic" alt="product"></img>
|
<img style="height: 200px;" class="img_reset" :src="item.mainPic" alt="product"></img>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user