<!--packageC/mycomponent/option_menu/option_menu.wxml-->
<van-sticky>
  <block wx:if="{{isshowO2oOptionMenu}}">
    <view class="o2o-option-menu-list">
      <view
        class="o2o-option-menu-list-child {{ parentActive == item.value?'active-ment-class':''}} {{isShowSubContent && activeType == item.value?'active-text-color':''}}"
        catchtap="onOptionsItemClick" data-item="{{item}}" data-index="{{index}}" wx:for="{{option}}">
        {{ item.text }}
        <view class="{{isShowSubContent && activeType == item.value ? 'rotate-icon' : 'close-icon'}}"
          wx:if="{{item.subs}}">
          <icon class="iconfont icon-member-bottom"></icon>
        </view>
      </view>
      <van-transition name="fade-up" show="{{ isShowSubContent }}">
        <view class="options-sub-content" wx:if="{{isShowSubContent}}">
          <view class="options-sub-content-list">
            <block wx:if="{{_successLocation}}">
              <view class="options-sub-content-list-item {{ subs_select == items.id?'active-ment-class':''}}"
                wx:for="{{selectOption}}" wx:for-index="i" wx:for-item="items" catchtap="onSubOptionsItemClick"
                data-items="{{items}}" data-i="{{i}}">
                {{ items.name }}
              </view>
            </block>
            <block wx:else>
              <view class="options-sub-content-list-item">
                定位中...
              </view>
            </block>
          </view>
          <view class="options-select">
            <view class="options-select-btn" catchtap="resetFilter">重置</view>
            <view class="options-select-btn {{!subs_select?'active-text-color':''}}" catchtap="filterData">筛选</view>
          </view>
        </view>
      </van-transition>
    </view>
  </block>
</van-sticky>
<van-overlay show="{{isShowSubContent}}" catchtap="cloneFilter"/>