Commit 1194e3c7 by 姜雷

修改区域选择有筛选列表时根据序号显示问题

parent 021979b3
......@@ -111,7 +111,7 @@ Component({
});
} else {
this.setData({
selected: this.data.range[value].id,
selected: this.data.filterList[value].id,
selectedIndex: value,
});
}
......
......@@ -5,7 +5,7 @@
<!-- </picker> -->
<view class="areaselect-picker" bindtap="inputClickHandle">
<view wx:if="{{mode === 'page' && selected}}" class="select-value">{{showText}}</view>
<view wx:elif="{{selected}}" class="select-value">{{range[selectedIndex][rangeKey]}}</view>
<view wx:elif="{{selected}}" class="select-value">{{filterList[selectedIndex][rangeKey]}}</view>
<view wx:else class="select-placeholder">{{placeholder}}</view>
<image class="select-icon" src="../../../images/btn_xiala@2x.png" mode="aspectFill" />
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment