<view class="all">
  <image mode="scaleToFill" catchTap="plusOne" class="close" src="../../../image/close.png"/>
  <view class="search flex-box flex-v-ce">
    <image mode="scaleToFill" src="../../../image/ss.png"/>
    <input placeholder="请输入规则内容搜索" onInput="bindKeyInput"/>
  </view>
  <view class="flex-box content">
    <scroll-view class="flex-2 left" scroll-y="{{true}}" a:if="{{isItem}}">
      <view class="tree" a:for="{{rule_tree}}">
        <view class="{{item.id == activeIndex ? 'active':''}} yi" catchTap="activeTree" data-item="{{item}}">{{item.name}}</view>
        <view catchTap="activeItem" data-item="{{child}}" class="{{child.id == activeItemIndex ? 'itemActive':''}} er" a:if="{{item.child&&item.child.length>0&&item.id == activeIndex}}" a:for="{{item.child}}" a:for-index="idx" a:for-item="child">
              {{child.name}}
        </view>
      </view>
    </scroll-view>
    <scroll-view class="flex-5 right" scroll-y="{{true}}" a:if="{{isItem}}">
      <view a:if="{{item_child_list.length>0}}">
        <view class="flex-box flex-v-ce items-top" a:for="{{item_child_list}}" catchTap="openDetail" data-item="{{item}}">
          <view class="flex-1" data-item="{{item}}">{{item.name}}</view>
          <image mode="scaleToFill" src="../../../image/right.png" style="width: 26rpx;height: 26rpx;"/>
        </view>
      </view>
      <view>
        <radio-group class="radio-group" onChange="radioChange">
          <label class="flex-box flex-v-ce items" a:for="{{item_list}}">
            <view class="radio">
              <radio value="{{item}}" checked="{{item.checked}}"/>{{item.value}}</view>
            <view class="radio-right flex-1">
              <view>{{item.remark}}</view>
              <view class="red num" a:if="{{item.min_point>0}}">+{{(item.range_type == 1 ? item.min_point : item.min_point +' ~ '+ item.max_point)}}
                <text class="fontColorT" style="margin-left:10rpx">{{item.pt_Obj.name}}</text></view>
              <view class="green num" a:if="{{item.min_point<0}}">{{(item.range_type == 1 ? item.min_point : item.min_point+' ~ '+item.max_point)}}
                <text class="fontColorT" style="margin-left:10rpx">{{item.pt_Obj.name}}</text></view>
            </view>
          </label>
        </radio-group>
        <view a:if="{{item_list.length==0}}" class="nodata fontColorF">暂无相关规则</view>
      </view>
    </scroll-view>
    <scroll-view class="flex-5 right" scroll-y="{{true}}" a:else>
      <radio-group class="radio-group" onChange="radioChange" a:if="{{selectItem.length>0}}">
        <label class="flex-box flex-v-ce items" a:for="{{selectItem}}">
          <view class="radio">
            <radio value="{{item}}" checked="{{item.checked}}"/>{{item.value}}</view>
          <view class="radio-right flex-1">
            <view>{{item.remark}}</view>
            <view class="green num" a:if="{{item.min_point<0}}">{{(item.range_type == 1 ? item.min_point : item.min_point+' ~ '+item.max_point)}}
              <text class="fontColorT" style="margin-left:10rpx">{{item.pt_Obj.name}}</text></view>
            <view class="red num" a:if="{{item.min_point>0}}">+{{(item.range_type == 1 ? item.min_point : item.min_point+' ~ '+item.max_point)}}
              <text class="fontColorT" style="margin-left:10rpx">{{item.pt_Obj.name}}</text></view>
          </view>
        </label>
      </radio-group>
      <view a:else class="nodata fontColorT">暂无相关规则</view>
      </view>
    </scroll-view>
  </view>
</view>