diff --git a/components/city-change/index.js b/components/city-change/index.js index d6023a1..309e606 100644 --- a/components/city-change/index.js +++ b/components/city-change/index.js @@ -35,7 +35,7 @@ Component({ wx.getStorage({ key: 'city', success: function(res){ - if(res.data.cityName && res.data.cityId){ + if(res.data.cityName){ that.setData({ chooseCity:res.data.cityName }) diff --git a/components/city-change/index.wxml b/components/city-change/index.wxml index ed86175..74d5584 100644 --- a/components/city-change/index.wxml +++ b/components/city-change/index.wxml @@ -4,15 +4,23 @@ 自动定位 - {{locateCity||'点击定位'}} + {{locateCity||'点击定位'}} - - 选择城市 + + 选择城市 {{chooseCity}} - + + + 热门城市 diff --git a/components/city-change/index.wxss b/components/city-change/index.wxss index 0296590..39e821b 100644 --- a/components/city-change/index.wxss +++ b/components/city-change/index.wxss @@ -104,3 +104,22 @@ text-align: center; box-shadow:0px 2px 5px 5px gray; } + +.top { + width: 100%; + background-color: #f7f7f7; +} + +.topsearch { + width: 97%; + display: flex; + padding: 3% 0; + align-items: center; +} + +.frame { + background-color: white; + width: 90%; + border-radius: 20rpx; + padding: 0 3%; +} \ No newline at end of file