Browse Source

-----

featrue/v4.5
DESKTOP-A1SENDA\HUzy 4 years ago
parent
commit
cc6342de76
2 changed files with 3 additions and 1 deletions
  1. 3
      components/city-change/index.js
  2. 1
      components/city-change/index.wxml

3
components/city-change/index.js

@ -228,6 +228,9 @@ Component({
var lindex = parseInt(this.data.touchEndy / this.data.rightheight * 26);//根据前面分析获取手指触摸位置在letters中的index值
var value = this.data.letter[lindex];
console.log(value)
this.setData({
cityListId: value
});
this.titleDialog(value)
},

1
components/city-change/index.wxml

@ -5,7 +5,6 @@
<text class='city_locate_title'>自动定位</text>
<text class='city_locate_text' style='{{!locateCity&&"color:#33b9ff;"}}'>{{locateCity||'点击定位'}}</text>
</view> -->
<view class='national' data-types='national' catchtap='cityTap'>全国</view>
<view class='new_city'>
<view class='new_city_title'>热门城市</view>
<view class='new_city_box'>

Loading…
Cancel
Save