Fix:【商城小程序】寻趣味页面调整 && 选择城市后城市名称被强制改成当前城市

This commit is contained in:
linxi
2024-09-20 12:00:14 +08:00
parent 506cc6053d
commit 12252eec5a
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -55,14 +55,14 @@ export default {
margin: 20rpx 0 0 0;
.cover-box {
position: relative;
width: 328rpx;
width: 338rpx;
height: auto;
border-radius: 14rpx;
overflow: hidden;
}
.cover {
width: 328rpx;
height: 328rpx;
width: 338rpx;
height: 338rpx;
vertical-align: middle;
}
.icon {
+4 -2
View File
@@ -192,7 +192,9 @@ export default {
if (map.length > 1) {
const {latitude, longitude} = map[1]
const address = await getCurAddress(latitude, longitude)
this.cityName = address[1].data.result.ad_info.city
if(!this.cityName) {
this.cityName = address[1].data.result.ad_info.city
}
this.search()
}
},
@@ -347,7 +349,7 @@ export default {
display: flex;
justify-content: space-between;
.list {
width: 328rpx;
width: 348rpx;
.item {
width: 100%;
box-sizing: border-box;