<wxs module="filters" src="../../../utils/addmul.wxs"></wxs>
<view class="flex-col page">
  <view class="flex-row justify-between items-center">
    <text class="font text">代理列表</text>
    <view class="flex-row items-center section">
      <image
        class="image"
        src="./images/ss.png"
      />
      <input class="font text_2 ml-7" placeholder="请输入关键字" bindinput="onInput" confirm-type="search" bindconfirm="onSearch" value="{{searchText}}"/>
    </view>
  </view>
  <view class="flex-col mt-16">
    <view class="flex-col list-item_1 mt-23" wx:for="{{ tempSubCommissionList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
      <text class="self-start font_2 text_3">结算标准：{{ item.subUserNickName }}</text>
      <view class="flex-col self-stretch section_3 mt-17">
        <view class="flex-row justify-between items-center">
          <text class="font_3 text_4">结算标准</text>
          <text class="font_4">代理单价/比例</text>
          <text class="font_3">设置价格</text>
        </view>
        <view class="flex-col mt-19">
          <view
            class="flex-row items-center list-item mt-13"
            wx:for="{{ item.subUserProjectDetailCommissionVOList }}"
            wx:for-item="DetailCommission"
            wx:for-index="index"
            wx:key="index"
          >
            <text class="font_5 text_5">{{ DetailCommission.projectDetailName }}</text>
            <text class="shrink-0 font_2 text_8">{{ filters.toFix2(DetailCommission.agentUnitPrice) }}/{{ filters.toFix2(DetailCommission.currentCommissionRate) }}%</text>
            <view class="flex-row shrink-0 group_2" bindtap="showCommissionRatePop" data-nowMyUnitPrice="{{ DetailCommission.myUnitPrice }} " data-currentCommissionRate="{{ DetailCommission.currentCommissionRate }}" data-agentUnitPrice="{{ DetailCommission.agentUnitPrice }}" data-projectDetailName="{{ DetailCommission.projectDetailName }}" data-detailid="{{ DetailCommission.id }}" data-maxCommissionRate="{{ DetailCommission.maxCommissionRate }}">
              <image
                class="image_2"
                src="./images/yjt.png"
              />
              <text class="font_6 text_7">设价</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
 <!-- 弹窗组件 -->
 <commissionRatePop
  show="{{showCommissionRatePop}}"
  bind:cancel="closeCommissionRatePop"
  bind:close="closeCommissionRatePop"
  bind:confirm="handleCommissionRateConfirm"
  pgencyPrice="{{ nowAgentUnitPrice }}"
  commissionRate="{{ nowCommissionRate }}"
  myUnitPrice="{{ nowMyUnitPrice }}"
  projectDetailName="{{  nowProjectDetailName }}"
  detailId="{{ projectId }}"
  maxCommissionRate="{{ maxCommissionRate }}"
  isSub="{{ isSub }}"
/>