twt 3 vuotta sitten
vanhempi
commit
e982854a18
3 muutettua tiedostoa jossa 15 lisäystä ja 10 poistoa
  1. 4 4
      common/request.js
  2. 5 3
      components/pcNav/pcNav.vue
  3. 6 3
      pages/pc/indexNew.vue

+ 4 - 4
common/request.js

@@ -1,9 +1,9 @@
  //测试地址
-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 = 'https://api.dms.66km.com/' 
+ const burl2='https://api.dms.66km.com/' 
 //欧洲维修
 /* const baseURL = 'http://edms.eurorepar.cn/' 
  const burl2='http://edms.eurorepar.cn/ ' */

+ 5 - 3
components/pcNav/pcNav.vue

@@ -55,10 +55,10 @@
 				this.$emit("gosearchlist",1);
 			},
 			goItem(item){
-				var pages = getCurrentPages() ;
+				/* var pages = getCurrentPages() ;
 				var  currentRoute  = pages[pages.length-1].route;
 				console.log(currentRoute)
-				console.log(item)
+				console.log(item) */
 				/* if(currentRoute=='pages/pc/list'){
 					this.$emit("getChildList",item);
 				}else{
@@ -67,7 +67,9 @@
 					})
 				} */
 				this.$emit("getChildList",item);
-				
+				uni.pageScrollTo({
+				   scrollTop: 0, duration: 100 
+				}); 
 			},
 			getInfo(){
 				this.$http('/trainingOpenApi/getInfo', {}, 'GET').then(res => {

+ 6 - 3
pages/pc/indexNew.vue

@@ -6,7 +6,7 @@
 		
 		<view v-show="indexShow">
 		<view style="height: 72px;"></view>
-		<view class="swiperBox">
+		<view class="swiperBox"  v-if="recommendList.length>0">
 			<view class="swiperCont">
 				<view class="tuijbox">
 					<image src="../../static/pcimg/icon_tuijian@2x.png" mode="" class="tuijImg"></image>
@@ -235,6 +235,9 @@
 			goList(item){
 				console.log(item)
 				this.getChildList(item)
+				uni.pageScrollTo({
+				   scrollTop: 0, duration: 100 
+				}); 
 				/* uni.navigateTo({
 					url:'list?code='+item.code+'&topName='+item.categoryName//+'&comment='+item.comment
 				}) */
@@ -258,7 +261,7 @@
 				this.indexShow=false;
 				this.listShow=false;
 				this.newDetailShow=true;
-				this.newgroupingListShow=true;
+				this.newgroupingListShow=false;
 				this.newsearchShow=false;
 				this.newDetailID=wz.id;
 				this.newDetailItem=item;
@@ -291,7 +294,7 @@
 					this.indexShow=false;
 					this.listShow=false;
 					this.newDetailShow=true;
-					this.newgroupingListShow=true;
+					this.newgroupingListShow=false;
 					this.newsearchShow=false;
 					this.newDetailID=wz.ID;
 					var item={