shish 4 месяцев назад
Родитель
Сommit
feb67be536
1 измененных файлов с 1 добавлено и 19 удалено
  1. 1 19
      ghsApp/src/components/app-area-sel.vue

+ 1 - 19
ghsApp/src/components/app-area-sel.vue

@@ -77,15 +77,7 @@
 				if (!this.keyword) {
 					return false
 				}
-				// 显示加载状态
-				uni.showLoading({
-					title: '搜索中...',
-					mask: true
-				});
 				suggestion({ region: this.city, keyword: this.keyword }).then(res => {
-					uni.hideLoading();
-					//console.log("地址搜索返回数据:", res);
-					
 					// 处理数据结构
 					let dataList = [];
 					if (res && res.data) {
@@ -101,17 +93,7 @@
 							duration: 1800
 						});
 					}
-					//console.log("处理后的地址数据:", this.nearListData);
-				}).catch(err => {
-					uni.hideLoading();
-					console.error("地址请求失败:", err);
-					this.nearListData = [];
-					uni.showToast({
-					title: '搜索失败,请重试',
-					icon: 'none',
-					duration: 2000
-					});
-				});
+				})
 			},
 			// 搜索
 			searchFn(e) {