Browse Source

欧洲维修门店优化

twt 3 years ago
parent
commit
2e90d5c436
3 changed files with 31 additions and 12 deletions
  1. 4 4
      common/request.js
  2. 1 1
      components/pcNav/pcNav.vue
  3. 26 7
      pages/pc/indexNew.vue

+ 4 - 4
common/request.js

@@ -2,11 +2,11 @@
 /* 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 = '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

@@ -3,7 +3,7 @@
 		<view class="nav">
 			<view class="navCont">
 				<view class="logo">
-					<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>

+ 26 - 7
pages/pc/indexNew.vue

@@ -258,13 +258,32 @@
 			goDetail2(wz,item){
 				/* console.log(item)
 				console.log(wz) */
-				this.indexShow=false;
-				this.listShow=false;
-				this.newDetailShow=true;
-				this.newgroupingListShow=false;
-				this.newsearchShow=false;
-				this.newDetailID=wz.id;
-				this.newDetailItem=item;
+				if (wz.type == 1) {
+					this.newgroupingcode=wz.code;
+					var newgroupingdata={
+						parentCode:item.code,
+						name:wz.name,
+						title:wz.title,
+						topName:item.name,
+						comment:item.comment
+					}
+					console.log(newgroupingdata)
+					this.indexShow=false;
+					this.listShow=false;
+					this.newDetailShow=false;
+					this.newgroupingListShow=true;
+					this.newsearchShow=false;
+					this.newgroupingdata=newgroupingdata
+				}else{
+					this.indexShow=false;
+					this.listShow=false;
+					this.newDetailShow=true;
+					this.newgroupingListShow=false;
+					this.newsearchShow=false;
+					this.newDetailID=wz.id;
+					this.newDetailItem=item;
+				}
+				
 				 /* uni.navigateTo({
 					url:'detail?id='+wz.id+'&topName='+item.name+"&comment="+item.comment+'&parentCode='+item.code
 				}) */