@tang_weiteng 2 년 전
부모
커밋
11411a7b92
2개의 변경된 파일15개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 1
      common/request.js
  2. 14 7
      pages/pc/indexNew.vue

+ 1 - 1
common/request.js

@@ -5,7 +5,7 @@
 /* const baseURL = 'https://api.dms.66km.com/' 
  const burl2='https://api.dms.66km.com/' */
 //欧洲维修
-const baseURL = 'http://edms.eurorepar.cn/' 
+ const baseURL = 'http://edms.eurorepar.cn/' 
  const burl2='http://edms.eurorepar.cn/ ' 
 // import md5 from './MD5.js'
 

+ 14 - 7
pages/pc/indexNew.vue

@@ -22,21 +22,21 @@
 								<view class="wztitle">{{item.name}}</view>
 								<view class="wztime">{{item.CreateTime.slice(0,10)}}</view>
 							</view>
-							<view class="mainwzline" v-if="recommendList[index+1]" @click="goDetail3(recommendList[index+1])"  >
+							<view class="mainwzline" v-if="recommendList[index+1]" @click="goDetailswp(recommendList[index+1])"  >
 								<view class="mainwzImgBox">
 								  <img :src="recommendList[index+1].logoImg" alt="" class="mainwzImg">	
 								</view>
 								<view class="wztitle">{{recommendList[index+1].name}}</view>
 								<view class="wztime">{{recommendList[index+1].CreateTime.slice(0,10)}}</view>
 							</view>
-							<view class="mainwzline" v-if="recommendList[index+2]" @click="goDetail3(recommendList[index+2])" >
+							<view class="mainwzline" v-if="recommendList[index+2]" @click="goDetailswp(recommendList[index+2])" >
 								<view class="mainwzImgBox">
 								  <img :src="recommendList[index+2].logoImg" alt="" class="mainwzImg">	
 								</view>
 								<view class="wztitle">{{recommendList[index+2].name}}</view>
 								<view class="wztime">{{recommendList[index+2].CreateTime.slice(0,10)}}</view>
 							</view>
-							<view class="mainwzline mainwzlineR" v-if="recommendList[index+3]" @click="goDetail3(recommendList[index+3])" >
+							<view class="mainwzline mainwzlineR" v-if="recommendList[index+3]" @click="goDetailswp(recommendList[index+3])" >
 								<view class="mainwzImgBox">
 								  <img :src="recommendList[index+3].logoImg" alt="" class="mainwzImg">	
 								</view>
@@ -301,8 +301,8 @@
 				}) */
 			},
 			goDetail2(wz,item){
-				/* console.log(item)
-				console.log(wz) */
+				console.log(item)
+				console.log(wz) 
 				if (wz.type == 1) {
 					this.newgroupingcode=wz.code;
 					var newgroupingdata={
@@ -326,6 +326,12 @@
 					this.newgroupingListShow=false;
 					this.newsearchShow=false;
 					this.newDetailID=wz.id;
+					var item={
+						categoryName:item.name,
+						twoName:'',
+						comment:item.comment,
+						code:item.code
+					}
 					this.newDetailItem=item;
 				}
 				
@@ -392,7 +398,7 @@
 				this.newgroupingdata=newgroupingdata
 			},
 			goDetailswp(item){
-				
+				//console.log(itme)
 				this.indexShow=false;
 				this.listShow=false;
 				this.newDetailShow=true;
@@ -803,6 +809,7 @@
 		line-height: 33px;
 		padding-top: 20px;
 		font-family: PingFangSC-Medium, PingFang SC;
+		padding-bottom: 10px;
 	}
 	.comment{
 		text-align: center;
@@ -811,7 +818,7 @@
 		color: #999999;
 		line-height: 20px;
 		width: 500px;
-		padding-top: 10px;
+		
 		margin: 0 auto;
 	
 	}