Fix:【商城小程序】寻趣味页面调整 && 选择城市后城市名称被强制改成当前城市
This commit is contained in:
@@ -55,14 +55,14 @@ export default {
|
|||||||
margin: 20rpx 0 0 0;
|
margin: 20rpx 0 0 0;
|
||||||
.cover-box {
|
.cover-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 328rpx;
|
width: 338rpx;
|
||||||
height: auto;
|
height: auto;
|
||||||
border-radius: 14rpx;
|
border-radius: 14rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.cover {
|
.cover {
|
||||||
width: 328rpx;
|
width: 338rpx;
|
||||||
height: 328rpx;
|
height: 338rpx;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
.icon {
|
.icon {
|
||||||
|
|||||||
@@ -192,7 +192,9 @@ export default {
|
|||||||
if (map.length > 1) {
|
if (map.length > 1) {
|
||||||
const {latitude, longitude} = map[1]
|
const {latitude, longitude} = map[1]
|
||||||
const address = await getCurAddress(latitude, longitude)
|
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()
|
this.search()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -347,7 +349,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.list {
|
.list {
|
||||||
width: 328rpx;
|
width: 348rpx;
|
||||||
.item {
|
.item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Reference in New Issue
Block a user