提交 6083486d authored 作者: huaxinzhu's avatar huaxinzhu

1、官网banner4秒自动轮播,顶部logo字段修复;2、添加商品图片初始化;

上级 3eb3d8bc
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<header :class="{ 'head-scroll': isScroll }"> <header :class="{ 'head-scroll': isScroll }">
<div class="header-con"> <div class="header-con">
<ul class="nav"> <ul class="nav">
<li v-if="settitle && settitle.toplogo"> <li v-if="settitle && settitle.topLogo">
<img style="width:114px;height:35px;" :src="settitle.topLogo" alt=""> <img style="width:114px;height:35px;" :src="settitle.topLogo" alt="">
</li> </li>
<li> <li>
...@@ -226,6 +226,11 @@ ...@@ -226,6 +226,11 @@
<script> <script>
import store from '@/store'; import store from '@/store';
import {indexInfo, newsList, companyCounsel, webSite, getdomain, getallCloudList} from '@/api/webSite' import {indexInfo, newsList, companyCounsel, webSite, getdomain, getallCloudList} from '@/api/webSite'
/** HACK
* 解决 swiper 轮播图不自动轮播问题
* */
import Swiper2,{Autoplay} from 'swiper';
Swiper2.use([Autoplay]);
export default { export default {
name: "newyuncang", name: "newyuncang",
...@@ -270,7 +275,7 @@ ...@@ -270,7 +275,7 @@
bulletActiveClass: 'my-bullet' bulletActiveClass: 'my-bullet'
}, },
autoplay: { autoplay: {
delay: 6000, delay: 4000,
disableOnInteraction: false disableOnInteraction: false
}, },
// 设定初始化时slide的索引 // 设定初始化时slide的索引
...@@ -670,16 +675,25 @@ ...@@ -670,16 +675,25 @@
} }
.ad-details { .ad-details {
width:100%;
padding: 30px; padding: 30px;
color: #333333; color: #333333;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
line-height: 28px; line-height: 28px;
word-wrap:break-word;
text-align: justify; text-align: justify;
text-align-last: center; text-align-last: center;
-ms-text-align-last: center; -ms-text-align-last: center;
-moz-text-align-last: center; -moz-text-align-last: center;
} }
//.ad-details:after {
// content: '';
// display : inline-block;
// overflow : hidden;
// height:0;
// width: 100%;
//}
/* hover 时候的效果 class */ /* hover 时候的效果 class */
.mgT20 { .mgT20 {
......
...@@ -379,6 +379,7 @@ ...@@ -379,6 +379,7 @@
if(res.data) { if(res.data) {
urlObj.url = res.data.image_url; urlObj.url = res.data.image_url;
this.goodsImgFileList.push(urlObj); this.goodsImgFileList.push(urlObj);
this.goodsInfoForm.imgs = []; // 1009 hxz 初始化img
this.goodsImgFileList.forEach(item=> { this.goodsImgFileList.forEach(item=> {
this.goodsInfoForm.imgs.push(item.url) this.goodsInfoForm.imgs.push(item.url)
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论