|
@@ -226,19 +226,19 @@
|
|
|
<div class="client-industry-information">
|
|
|
<h4 class="client-title">新闻资讯</h4>
|
|
|
<div class="information-carousel-box">
|
|
|
- <el-carousel :interval="4000" arrow="always">
|
|
|
- <el-carousel-item v-for="(item, index) in topCarousels" :key="index">
|
|
|
- <div
|
|
|
- class="industry-img-box"
|
|
|
- :style="{ backgroundImage: 'url(' + item.pic + ')' }"
|
|
|
- ></div>
|
|
|
- <div class="industry-content-box">
|
|
|
- <h5>{{ item.title }}</h5>
|
|
|
- <p>{{ item.intro }}</p>
|
|
|
- <a class="client-default-Btn" @click="checkInfo(item)">了解详情</a>
|
|
|
- </div>
|
|
|
- </el-carousel-item>
|
|
|
- </el-carousel>
|
|
|
+ <el-carousel :interval="4000" arrow="always">
|
|
|
+ <el-carousel-item v-for="(item, index) in topCarousels" :key="index">
|
|
|
+ <div
|
|
|
+ class="industry-img-box"
|
|
|
+ :style="{ backgroundImage: 'url(' + item.pic + ')' }"
|
|
|
+ ></div>
|
|
|
+ <div class="industry-content-box">
|
|
|
+ <h5>{{ item.title }}</h5>
|
|
|
+ <p>{{ item.intro }}</p>
|
|
|
+ <a class="client-default-Btn" @click="checkInfo(item)">了解详情</a>
|
|
|
+ </div>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -321,27 +321,29 @@
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
- name: 'index',
|
|
|
- layout:'templateA',
|
|
|
+ name: 'index',
|
|
|
+ layout: 'templateA',
|
|
|
watchQuery: true,
|
|
|
- async fetch({$axios, store, query}) {
|
|
|
- console.log('query =>', query)
|
|
|
+ async fetch({ $axios, store, query }) {
|
|
|
try {
|
|
|
const { data } = await $axios.post('/home/links/list');
|
|
|
store.commit('SetFooterYouQingLianJie', data.data.data);
|
|
|
- } catch(e) {
|
|
|
+ } catch (e) {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- async asyncData({ $axios, query }) {
|
|
|
- console.log('query2:', query);
|
|
|
- let [res1,res2] = await Promise.all([
|
|
|
- await $axios.$post(`/home/news/carousel`,{'newsClassifyId':1}).then(res=>{
|
|
|
- return res
|
|
|
- }),
|
|
|
- ])
|
|
|
- return {topCarousels : res1.data.data,
|
|
|
+ async asyncData({ $axios, store }) {
|
|
|
+ // 设置选中菜单
|
|
|
+ store.commit('setActiveNav', '/');
|
|
|
+
|
|
|
+ let [res1, res2] = await Promise.all([
|
|
|
+ await $axios.$post(`/home/news/carousel`, { 'newsClassifyId': 1 }).then(res => {
|
|
|
+ return res;
|
|
|
+ }),
|
|
|
+ ]);
|
|
|
+ return {
|
|
|
+ topCarousels: res1.data.data,
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -351,15 +353,15 @@
|
|
|
// 需求img
|
|
|
bannerTelImg: require(`~/static/images/client/index/index-banner-screen.png`),
|
|
|
// 客户logo
|
|
|
- customerImg1: require(`~/static/images/client/index/index-customer-img1.png`),
|
|
|
- customerImg2: require(`~/static/images/client/index/index-customer-img2.png`),
|
|
|
- customerImg3: require(`~/static/images/client/index/index-customer-img3.png`),
|
|
|
- customerImg4: require(`~/static/images/client/index/index-customer-img4.png`),
|
|
|
- customerImg5: require(`~/static/images/client/index/index-customer-img5.png`),
|
|
|
- customerImg6: require(`~/static/images/client/index/index-customer-img6.png`),
|
|
|
- customerImg7: require(`~/static/images/client/index/index-customer-img7.png`),
|
|
|
- customerImg8: require(`~/static/images/client/index/index-customer-img8.png`),
|
|
|
- customerImg9: require(`~/static/images/client/index/index-customer-img9.png`),
|
|
|
+ customerImg1: require(`~/static/images/client/index/index-customer-img1.png`),
|
|
|
+ customerImg2: require(`~/static/images/client/index/index-customer-img2.png`),
|
|
|
+ customerImg3: require(`~/static/images/client/index/index-customer-img3.png`),
|
|
|
+ customerImg4: require(`~/static/images/client/index/index-customer-img4.png`),
|
|
|
+ customerImg5: require(`~/static/images/client/index/index-customer-img5.png`),
|
|
|
+ customerImg6: require(`~/static/images/client/index/index-customer-img6.png`),
|
|
|
+ customerImg7: require(`~/static/images/client/index/index-customer-img7.png`),
|
|
|
+ customerImg8: require(`~/static/images/client/index/index-customer-img8.png`),
|
|
|
+ customerImg9: require(`~/static/images/client/index/index-customer-img9.png`),
|
|
|
customerImg10: require(`~/static/images/client/index/index-customer-img10.png`),
|
|
|
customerImg11: require(`~/static/images/client/index/index-customer-img11.png`),
|
|
|
customerImg12: require(`~/static/images/client/index/index-customer-img12.png`),
|