Fix:【商城小程序】寻趣味页面调整 && 选择城市后城市名称被强制改成当前城市
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user