1
This commit is contained in:
parent
66521a0096
commit
d869e40da5
4
env.js
4
env.js
@ -8,8 +8,8 @@ module.exports = {
|
||||
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
|
||||
dev: {
|
||||
MODE: 'dev',
|
||||
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
|
||||
// VUE_APP_API_URL: 'http://192.168.1.13:8099/',
|
||||
// VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
|
||||
VUE_APP_API_URL: 'http://192.168.1.13:8099/',
|
||||
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
|
||||
},
|
||||
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
|
||||
|
@ -6,16 +6,6 @@
|
||||
<divFooter></divFooter>
|
||||
</div>
|
||||
</template>
|
||||
<!--<script>-->
|
||||
<!--window.difyChatbotConfig = {-->
|
||||
<!-- token: 'BC985VI4DnedSaIQ',-->
|
||||
<!-- baseUrl: 'http://47.245.148.154',-->
|
||||
<!-- systemVariables: {-->
|
||||
<!-- // user_id: 'YOU CAN DEFINE USER ID HERE',-->
|
||||
<!-- // conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',-->
|
||||
<!-- },-->
|
||||
<!--}-->
|
||||
<!--</script>-->
|
||||
<script>
|
||||
import divHeader from '../components/header.vue';
|
||||
import divFooter from '../components/footer.vue';
|
||||
@ -37,14 +27,14 @@ export default {
|
||||
beforeMount(){
|
||||
window.difyChatbotConfig = {
|
||||
token: 'yadT02u1aNiBBDLa',
|
||||
baseUrl: 'http://47.245.148.154',
|
||||
baseUrl: 'https://chat.cdtrucktralier.com',
|
||||
systemVariables: {
|
||||
// user_id: 'YOU CAN DEFINE USER ID HERE',
|
||||
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
|
||||
}
|
||||
}
|
||||
let a = document.createElement('script');
|
||||
a.setAttribute('src', 'http://47.245.148.154/embed.min.js');
|
||||
a.setAttribute('src', 'https://chat.cdtrucktralier.com/embed.min.js');
|
||||
a.setAttribute('defer', true);
|
||||
a.setAttribute('id', 'yadT02u1aNiBBDLa');
|
||||
document.body.appendChild(a);
|
||||
|
@ -33,7 +33,7 @@ export default {
|
||||
script: [
|
||||
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
|
||||
//AI助手js
|
||||
{type:"text/javascript" , src: 'http://47.245.148.154/embed.min.js',id:"yadT02u1aNiBBDLa",defer:true}
|
||||
{type:"text/javascript" , src: 'https://chat.cdtrucktralier.com/embed.min.js',id:"yadT02u1aNiBBDLa",defer:true}
|
||||
]
|
||||
},
|
||||
env: {
|
||||
|
@ -84,7 +84,9 @@
|
||||
</template>
|
||||
</b-carousel-slide>
|
||||
</b-carousel>
|
||||
<nuxt-link class="more box_shadow" :to="`/products?maxCatgId=${hotProductList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
<template v-if="hotProductList.length >0">
|
||||
<nuxt-link class="more box_shadow" :to="`/products?maxCatgId=${hotProductList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
</template>
|
||||
</section>
|
||||
|
||||
<!-- Products -->
|
||||
@ -115,7 +117,9 @@
|
||||
</article>
|
||||
</li>
|
||||
</ul>
|
||||
<nuxt-link class="more box_shadow" :to="`/products?&maxCatgId=${productTopList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
<template v-if="productTopList.length">
|
||||
<nuxt-link class="more box_shadow" :to="`/products?&maxCatgId=${productTopList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
</template>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -163,7 +167,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<nuxt-link class="more box_shadow mb-4" :to="`/article-page?&maxCatgId=${hotNewsList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
<template v-if="hotNewsList.length">
|
||||
<nuxt-link class="more box_shadow mb-4" :to="`/article-page?&maxCatgId=${hotNewsList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
||||
</template>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -263,9 +269,9 @@ export default {
|
||||
}
|
||||
// 普通产品前十
|
||||
const {data: productTopList} = await $axios.get('/web/product')
|
||||
console.log(productTopList)
|
||||
// 热门新闻
|
||||
const { data: hotNewsList } = await $axios.get('/web/hotNews')
|
||||
|
||||
return {
|
||||
bannerList,
|
||||
companyInfo,
|
||||
|
Loading…
Reference in New Issue
Block a user