<!--packageH/Advertising/advertisingPutAD/advertisingPutAD.wxml-->
<view id="Advertising-putAD">
  <van-cell-group>
    <van-field bind:blur="totalinp" value="{{reward_total}}" type="number" label="奖励人数" placeholder="请输入奖励人数" border="{{ false }}" />
    <van-field bind:blur="rewardinp" value="{{reward_amount_total}}" type="number" label="奖励总数" placeholder="请输入奖励总额" border="{{ false }}"
      error-message="最低奖励金额{{configInfo.min_amount}}元" />
    <van-cell title="奖励方式" border="{{ false }}" class="diy-cell-style1">
      <radio-group bindchange="onChangeADradio" class="radio-box">
        <label wx:for="{{ADradioItems}}" wx:key="{{item.value}}">
          <view class="">
            <radio value="{{item.value}}" color="#ee0a24" checked="true"/>
          </view>
          <view class="radio-box-text">{{item.name}}</view>
        </label>
      </radio-group>
    </van-cell>
  </van-cell-group>

  <view class="select-ADput">
    <view class="titel-border">
      <view class="border-r"></view>
      广告列表
    </view>

    <view class="list">
      <view  class="list-child {{advertising_apply_id == item.id?'select-class':'' }} "
        catchtap="selectAdID" data-id="{{item.id}}" data-time="{{item.video_time}}" wx:for="{{list}}">
        <view class="ad-imgs">
          <image src="{{item.video_cover}}" alt="" />
          <icon class="iconfont icon-all_select_active" wx:if="{{advertising_apply_id == item.id}}"></icon>
        </view>
        <view class="ad-titles">{{ item.title }}</view>
        <view class="ad-times">{{ item.video_time }}s</view>
      </view>
    </view>
    <!-- <yz-blank :datas="list" text="暂无广告可选择,请先发布广告再进行投放！"></yz-blank> -->
  </view>

  <view class="submit-btns" catchtap="submitPut">
    <view class="btn-box">提交</view>
  </view>
</view>