浏览代码

搜索修改

twt 1 年之前
父节点
当前提交
181cb89f76
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 7 1
      pages/index/search.vue
  2. 1 0
      utils/request.js

+ 7 - 1
pages/index/search.vue

@@ -101,6 +101,8 @@
 				iStatusBarHeight:'',
 				focusKuwei:false,
 				loading:false,
+				bizType:'',
+				carModel:'',
 			}
 		},
 		onLoad(opt) {
@@ -128,6 +130,7 @@
 		   },
 		   carMbtn(e){
 			   this.type=e.type;
+			  
 			   if(e.type==1){
 				   this.manufactor=e.manufactor;
 				   this.getpopuponeList()
@@ -135,6 +138,8 @@
 				   this.brand=e.brand
 				   this.carSeries=e.carSeries
 				   this.manufactor=e.manufactor
+				   this.carModel=e.carModel
+				    this.bizType=e.bizType
 				   this.getpopuponeList(e)
 			   }
 		   },
@@ -164,7 +169,8 @@
 				  })
 			   }else if(this.type==2){
 				 var params={
-				 		manufactor: this.manufactor,type:this.type,carSeries:this.carSeries,brand:this.brand
+				 		manufactor: this.manufactor,type:this.type,carSeries:this.carSeries,brand:this.brand,
+						bizType:this.bizType,carModel:this.carModel
 				 }   
 				 this.$http('matchingByOpen/queryCarModelGroupIiPackageSecond', params,'POST').then(res => {
 				   	uni.hideLoading();

+ 1 - 0
utils/request.js

@@ -1,5 +1,6 @@
  //测试地址
  //const baseURL = 'http://192.168.0.122:8002/' 
+ //正式
 const baseURL='https://oil.66km.com.cn/' 
 //66正式
 /* const baseURL = 'https://apidms.66km.com/'