浏览代码

bug修改

@tang_weiteng 2 年之前
父节点
当前提交
9b34a05987
共有 4 个文件被更改,包括 37 次插入19 次删除
  1. 4 4
      common/request.js
  2. 1 1
      components/pcNav/pcNav.vue
  3. 23 12
      pages/pc/indexNew.vue
  4. 9 2
      pages/pc/newDetail.vue

+ 4 - 4
common/request.js

@@ -1,12 +1,12 @@
  //测试地址
- const baseURL = 'http://api.dms.66km.com.cn/' 
- const burl2='http://api.dms.66km.com.cn/' 
+/* const baseURL = 'http://api.dms.66km.com.cn/' 
+ const burl2='http://api.dms.66km.com.cn/' */
 //66正式
 /* const baseURL = 'https://api.dms.66km.com/' 
  const burl2='https://api.dms.66km.com/' */
 //欧洲维修
-/* const baseURL = 'http://edms.eurorepar.cn/' 
- const burl2='http://edms.eurorepar.cn/ ' */
+const baseURL = 'http://edms.eurorepar.cn/' 
+ const burl2='http://edms.eurorepar.cn/ ' 
 // import md5 from './MD5.js'
 
  

+ 1 - 1
components/pcNav/pcNav.vue

@@ -4,7 +4,7 @@
 			<view class="navCont">
 				<view class="logo">
 					<!-- <image src="../../static/pcimg/111.png" mode="" class="logoImg euroreparIMg"></image> -->
-				<image :src="info.logo" mode="" class="logoImg "></image><!-- euroreparIMg -->
+				<image :src="info.logo" mode="" class="logoImg euroreparIMg"></image><!-- euroreparIMg -->
 				</view>
 				<view class="navTitle">{{info.title}}</view>
 				<view class="indexNav" :class="{'indexActive':data=='index'}" @click="goIndex">首页</view>

+ 23 - 12
pages/pc/indexNew.vue

@@ -14,7 +14,7 @@
 				</view>
 				 <swiper class="swiper"  :autoplay="false"   :circular="true" :current="swpIndex">
 					<swiper-item v-for="(item,index) in recommendList" v-if="(index+1)%4!=0">
-						<view class="mainwzbox" >
+						<view class="mainwzbox2" >
 							<view class="mainwzline" @click="goDetailswp(recommendList[index])"  >
 								<view class="mainwzImgBox">
 								  <img :src="item.logoImg" alt="" class="mainwzImg">	
@@ -112,7 +112,7 @@
 			<view style="height: 72px;"></view>
 			<view class="top">
 				<view class="topName">{{topName}}</view>
-				<view class="comment " v-if="comment">{{comment}}</view>
+				<view class="comment listtopC" v-if="comment">{{comment}}</view>
 			</view>
 			<view class="main">
 				<view class="dynamicCol">
@@ -167,7 +167,8 @@
 			<image src="../../static/pcimg/btn_top@2x.png" mode="" class="gotopImg"></image>
 		</view>
 		<view>
-			<newDetail ref="newDetailV" v-show="newDetailShow" :newid='newDetailID' :data="newDetailItem" @getIndexList="getIndexList"></newDetail>
+			<newDetail ref="newDetailV" @getChildList="getChildList"
+			 v-show="newDetailShow" :newid='newDetailID' :data="newDetailItem" @getIndexList="getIndexList"></newDetail>
 			<newgroupingList @getIndexList="getIndexList"
 			 @getChildList="getChildList" @goDetail="goDetail"
 			 v-show="newgroupingListShow" :newcode="newgroupingcode" :data="newgroupingdata"></newgroupingList>
@@ -244,6 +245,7 @@
 				this.newsearchShow=false;
 				this.indexName='index';
 				this.topName=''
+				
 			},
 			gosearchlist(){
 				this.indexShow=false;
@@ -271,6 +273,7 @@
 					this.newDetailShow=false;
 					this.newgroupingListShow=false;
 					this.newsearchShow=false;
+					this.tabIndex=0;
 			},
 			goList(item){
 				console.log(item)
@@ -524,7 +527,7 @@
 		width: 100%;
 	}
 	.swiperCont{
-		width: 1200px;
+		width: 1230px;
 		margin: 0 auto;
 		position: relative;
 	}
@@ -533,8 +536,8 @@
 		
 	}
 	.tuijbox{
-		display: flex;padding-top: 32px;padding-bottom: 20px;
-		padding-left: 15px;
+		display: flex;padding-top: 32px;/* padding-bottom: 20px; */
+		 padding-left: 15px;
 	}
 	.tuijTitle{
 		font-size: 22px;
@@ -548,7 +551,7 @@
 		width: 44px;
 		height: 44px;
 		position: absolute;
-		top: 145px;
+		top: 170px;
 		left: -60px;
 		cursor: pointer;
 	}
@@ -556,7 +559,7 @@
 		width: 44px;
 		height: 44px;
 		position: absolute;
-		top: 145px;
+		top: 170px;
 		right: -60px;
 		cursor: pointer;
 	}
@@ -598,7 +601,7 @@
 		overflow: hidden;
 	}
 	.swiper{
-		height: 290px;
+		height: 280px;
 	}
 	.swpTitleBox{
 		padding-left: 304px;
@@ -675,9 +678,13 @@
 	}
 	.mainwzbox{
 		display: flex;
-		padding-top: 20px;
+		/* padding-top: 20px; */
 		
 	}
+	.mainwzbox2{
+		display: flex;
+		padding: 0 15px;
+	}
 	.mainwzImg{
 		width: 284px;
 		height: 160px;
@@ -794,7 +801,7 @@
 		font-weight: 500;
 		color: #3C3C3C;
 		line-height: 33px;
-		padding-top: 30px;
+		padding-top: 20px;
 		font-family: PingFangSC-Medium, PingFang SC;
 	}
 	.comment{
@@ -806,11 +813,12 @@
 		width: 500px;
 		padding-top: 10px;
 		margin: 0 auto;
+	
 	}
 	.main{
 		width: 1200px;
 		margin: 0 auto;
-		padding-top: 30px;
+		/* padding-top: 30px; */
 	}
 	.dynamicColLeft{
 		display: flex;
@@ -969,4 +977,7 @@
 		font-weight: 400;
 		color: #999999;
 	}
+	.listtopC{
+		padding-bottom: 10px;
+	}
 </style>

+ 9 - 2
pages/pc/newDetail.vue

@@ -98,10 +98,17 @@
 				window.location.href=url
 			},
 			goList(){
-				var code=this.parentCode.substring(0,3)
+				/* var code=this.parentCode.substring(0,3)
 				uni.navigateTo({
 					url:'list?code='+code+'&topName='+this.topName+'&comment='+this.comment
-				})
+				}) */
+				var code=this.parentCode.substring(0,3)
+				var data={
+					code:code,
+					name:this.topName,
+					comment:this.comment
+				}
+				this.$emit("getChildList",data)
 			},
              goIndex(){
 				this.$emit("getIndexList")