Feat(时令尝鲜):接口对接

This commit is contained in:
lifizer
2023-09-23 18:13:26 +08:00
parent c9ceac9f37
commit 2d73c2fe46
35 changed files with 2834 additions and 1547 deletions
+3 -40
View File
@@ -18,6 +18,7 @@ export default {
this.getMapData();
getHotelTypeList().then(({data}) => {
this.typeList = data;
console.log("getHotelTypeList")
this.search();
});
},
@@ -27,6 +28,7 @@ export default {
if (memCityName.length) {
this.cityName = memCityName;
uni.removeStorageSync("cityName")
console.log("memCityName if")
this.search();
}
},
@@ -56,45 +58,6 @@ export default {
}
},
// getCurAddress() {
// let that = this;
// //定位
// uni.showLoading({
// title: '定位中...'
// });
//
// uni.getLocation({
// type: 'wgs84',
// success: function (res) {
// let latitude = res.latitude;
// let longitude = res.longitude;
//
// // #ifndef H5
// uni.request({
// url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + latitude + ',' + longitude +
// '&key=' + config.key,
// success: function (res) {
// uni.hideLoading();
//
// that.cityName = res.data.result.ad_info.city;
// //定位成功刷新数据
// that.search()
// },
// fail: function () {
// uni.hideLoading();
// },
// complete: function () {
// }
// });
// // #endif
// },
// fail: function (err) {
// console.log("test",err)
// uni.hideLoading();
// }
// });
// },
tapType(index) {
if (this.typeIndex === index) return;
this.typeIndex = index;
@@ -338,4 +301,4 @@ export default {
background-color: rgba(0, 0, 0, 0) !important;
}
}
</style>
</style>