|
@@ -17,7 +17,7 @@
|
|
|
</view>
|
|
|
<view class="swpTitleBox">
|
|
|
<view class="swpTitle">{{item.title}}</view>
|
|
|
- <view class="categoryName">{{item.categoryName}}</view>
|
|
|
+ <view class="categoryName" @click.stop="goList(item)">{{item.categoryName}}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -50,7 +50,7 @@
|
|
|
</view>
|
|
|
<view class="mainlineMore" @click="mainMore(item)">查看更多></view>
|
|
|
</view>
|
|
|
- <view class="mainwzbox" >
|
|
|
+ <view class="mainwzbox" v-if="item.children.length>0">
|
|
|
<view class="mainwzline" v-for="(wz,wzindex) in item.children" @click="goDetail2(wz,item)" v-if="wzindex<4" :class="{'mainwzlineR':wzindex!=3}">
|
|
|
<view class="mainwzImgBox">
|
|
|
<img :src="wz.logoImg" alt="" class="mainwzImg">
|
|
@@ -105,6 +105,12 @@
|
|
|
this.getindexData()
|
|
|
},
|
|
|
methods: {
|
|
|
+ goList(item){
|
|
|
+ console.log(item)
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'list?code='+item.code+'&topName='+item.categoryName//+'&comment='+item.comment
|
|
|
+ })
|
|
|
+ },
|
|
|
goDetail(item){
|
|
|
console.log(item)
|
|
|
uni.navigateTo({
|
|
@@ -191,31 +197,34 @@
|
|
|
width: 44px;
|
|
|
height: 44px;
|
|
|
position: absolute;
|
|
|
- top: 150px;
|
|
|
- left: -50px;
|
|
|
+ top: 175px;
|
|
|
+ left: -60px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.swpImgright{
|
|
|
width: 44px;
|
|
|
height: 44px;
|
|
|
position: absolute;
|
|
|
- top: 150px;
|
|
|
- right: -50px;
|
|
|
+ top: 175px;
|
|
|
+ right: -60px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.swiper-item{
|
|
|
width: 576px;
|
|
|
- height: 184px;
|
|
|
+ height: 183px;
|
|
|
background: #FFFFFF;
|
|
|
- box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.2);
|
|
|
+ box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.25);
|
|
|
border-radius: 9px;
|
|
|
margin-top: 14px;
|
|
|
position: relative;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .swiper-item:hover{
|
|
|
+ box-shadow: 0px 0px 16px 0px rgba(153, 153, 153, 0.25);
|
|
|
+ }
|
|
|
.swpCont{
|
|
|
display: flex;
|
|
|
- height: 200px;
|
|
|
+ height: 210px;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
.swpimg{
|
|
@@ -321,20 +330,23 @@
|
|
|
height: 184px;
|
|
|
}
|
|
|
.mainwzImgBox{
|
|
|
- border-radius: 15px;
|
|
|
+ border-radius: 8px;
|
|
|
overflow: hidden;
|
|
|
+ height: 184px;
|
|
|
+ border: 1px solid #eeeeee;
|
|
|
}
|
|
|
.mainwzline{
|
|
|
width: 276px;
|
|
|
height: 260px;
|
|
|
background: #FFFFFF;
|
|
|
+
|
|
|
}
|
|
|
.mainwzlineR{
|
|
|
margin-right: 32px;
|
|
|
}
|
|
|
.wztitle{
|
|
|
width: 250px;
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 15px;
|
|
|
color: #333333;
|
|
|
line-height: 22px;
|
|
|
height: 44px;
|
|
@@ -345,8 +357,10 @@
|
|
|
-webkit-line-clamp: 2;
|
|
|
line-clamp: 2;
|
|
|
-webkit-box-orient: vertical;
|
|
|
- padding-top: 16px;
|
|
|
padding:0 13px ;
|
|
|
+ padding-top: 16px;
|
|
|
+ font-weight: 600;
|
|
|
+
|
|
|
}
|
|
|
.mainwzline:hover{
|
|
|
background: #FFFFFF;
|