<view class='choice_city'wx:for="{{nearby_address}}" wx:for-item="item" wx:key="item">
<view>
<text>{{item.title}}</text>
<text class='address'>{{item.address}}</text>
</view>
</view>
var arr = res.data;
for(var i = 0;i<arr.length;i++){
var item = arr[i];
item.title=item.title;
item.address=item.address;
}
that.setData({
nearby_address:arr,
})