Browse Source

首页下拉注释

ming 4 years ago
parent
commit
4ade57b976
2 changed files with 5 additions and 21 deletions
  1. 3 19
      pages/index/index.vue
  2. 2 2
      util/api.js

+ 3 - 19
pages/index/index.vue

@@ -279,14 +279,14 @@
 				var init=this.init();
 				if(init="3001"){
 					this.getData();
-					this.getSearchList();
+				
 				}
 				
 				//是
 				
 			} else {
 				this.getData();
-				this.getSearchList();
+				
 		
 				//不是
 				// uni.navigateTo({
@@ -386,23 +386,7 @@
 			},
 
 
-			async getSearchList(ming = {}) {
-				const res = await this.$myRequest({
-					url: 'Index/getSiteDropDownBox',
-					data: ming
-				})
-				res.data.data.forEach(item => {
-					this.searchList.push(item.siteName)
-					this.searchList2.push(item.siteName)
-				});
-			},
-
-			clickSelectItem(item, index) {
-				this.getSearchList({
-					"siteName": item
-				});
-				this.flag = false
-			},
+			
 
 			handleInput() {
 				var newlist = this.searchList2.filter(item => item.indexOf(this.searchInput) > -1)

+ 2 - 2
util/api.js

@@ -1,5 +1,5 @@
-const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/'   //(测试域名)
-// const BASE_URL='https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
+// const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/'   //(测试域名)
+const BASE_URL='https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
 // 同时发送异步代码的次数,防止一次点击中有多次请求,用于处理
 let ajaxTimes = 0;