@@ -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 => {
- console.error("地址请求失败:", err);
- this.nearListData = [];
- uni.showToast({
- title: '搜索失败,请重试',
- icon: 'none',
- duration: 2000
+ })
},
// 搜索
searchFn(e) {