<view class=“area-picker {{showAreaView ? ‘show’ : ‘hide’}}”>
<view class=“area-picker-title”>
<view class=“btn-cancel vm” bindtap=“cancelSelectArea”>取消</view>
<view class=“area_name vm”>{{province_temp}}{{city_temp}}{{district_temp}}</view>
<view class=“btn-confirm vm” bindtap=“selectArea”>确定</view>
</view>
<picker-view indicator-style=“height: 50px;” style=“width: 100%; height: 300px;” value="{{area_value}}" bindchange=“bindChangeArea”>
<picker-view-column>
<view wx:for="{{province_name_arr}}" style=“line-height: 50px”>{{item}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{city_name_arr}}" style=“line-height: 50px”>{{item}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{district_name_arr}}" style=“line-height: 50px”>{{item}}</view>
</picker-view-column>
</picker-view>
</view>
</view>
不管是选择取消还是确定,每次都重置为[0,0,0]很让人蛋疼,不知是不是我没写好