twt 3 years ago
parent
commit
4f20ac06ae
3 changed files with 38 additions and 17 deletions
  1. 11 4
      pages/pc/detail.vue
  2. 1 1
      pages/pc/groupingList.vue
  3. 26 12
      pages/pc/index.vue

+ 11 - 4
pages/pc/detail.vue

@@ -16,13 +16,13 @@
 		</view>
 		<view class="itemArr" v-if="itemArr.length>0">
 		  <view class="itemArrLine" v-for="(item,index) in itemArr">
-			  <view class="itemArrLeft">
+			  <view class="itemArrLeft" >
 				  <image src="../../static/pcimg/icon_fujian@2x.png" mode="" class="fileIcon"></image>
-				  <view class="fileName">{{item.fileName}}</view>
+				  <view class="fileName" @click="gofile(item.fileUrl)">{{item.fileName}}</view>
 			  </view>
-			  <view class="dload">
+			<!-- <view class="dload">
 				  <a class="dloadbtn" :href="item.fileUrl" target='_blank' >下载</a>
-			  </view>
+			  </view> -->
 		  </view>
 		</view>
 		<view class="lbel">
@@ -63,6 +63,9 @@
 			// })
 		},
 		methods: {
+			gofile(url){
+				window.location.href=url
+			},
 			goList(){
 				uni.navigateTo({
 					url:'list?code='+this.parentCode+'&topName='+this.topName+'&comment='+this.comment
@@ -213,4 +216,8 @@
 		line-height: 24px;
 		text-align: center;
 	}
+	.fileName{
+		text-decoration:underline;
+		color: #3F90F7;
+	}
 </style>

+ 1 - 1
pages/pc/groupingList.vue

@@ -13,7 +13,7 @@
 		<view class="gotop" @click="gotoTop">
 			<image src="../../static/pcimg/btn_top@2x.png" mode="" class="gotopImg"></image>
 		</view>
-		<view class="top">
+		<view class="">
 			<view class="topName">{{name}}</view>
 			<view class="comment">{{title}}</view>
 		</view>

+ 26 - 12
pages/pc/index.vue

@@ -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;