<!--packageI/dealer_task_reward/dealerTaskRewardIndex/dealerTaskRewardIndex.wxml-->



    <view class="r_top_box">
      <view class="image">
        <image src="{{details.avatar_image}}" alt="" />
      </view>
      <view>
        <view class="r_top_box_name">{{details.nickname}}</view>
        <view class="r_top_box_leve text-overHide" wx:if="{{details.level_name}}">{{details.level_name}}</view>
      </view>
    </view>
    <van-tabs show="{{active}}" bind:change="swichTabTItem">
      <van-tab title="我的任务"></van-tab>
      <van-tab title="奖励记录"></van-tab>
    </van-tabs>


    <view class="task_wrapper" wx:if="{{active == 0}}">
      <view class="task_container">
        <view class="task_volume">
          任务量：<text>{{details.scalar}}</text>/{{details.total}}
        </view>
        <view class="task_progress">
          任务进度：
          <view class="task_pregress_bar_container">
            <view class="task_pregress_bar" style="width:{{((details.scalar/details.total)*100)+'%;'}}"></view>
          </view>
        </view>
        <view class="hr"></view>
        <view class="task_reward">
          任务奖励：
          <text>￥{{details.goods_amount}}</text>
        </view>
      </view>
    </view>


    <view class="goods_list" wx:if="{{active == 0}}">
      <view class="goods_item" wx:for="{{goods_list}}" data-id="{{item.goods_id}}" bindtap="gotoRecord">
        <view class="goods_face">
          <image
            src="{{item.thumb}}"
          />
        </view>
        <view class="goods_content">
          <view class="goods_name">
            {{item.goods_title}}
          </view>
          <view class="goods_desc">
            <view class="count">累计数量：{{item.scalar}}</view>
            <view class="price">累计金额：￥{{item.goods_price}}</view>
          </view>
        </view>
      </view>
    </view>


    <block wx:if="{{active==1}}">

      <view class="r_je">
        <view class="r_je_d">
          <view class="r_je_m">{{wait_amount}}元</view>
          <view class="r_je_txt">未结算</view>
        </view>
        <view class="r_je_d">
          <view class="r_je_m">{{settle_amount}}元</view>
          <view class="r_je_txt">已结算</view>
        </view>
      </view>
      <view class="line"></view>
      <van-tabs show="{{active1}}" bind:change="switchTabStatus">
        <van-tab title="全部"></van-tab>
        <van-tab title="未结算"></van-tab>
        <van-tab title="已结算"></van-tab>
      </van-tabs>
      <view wx:for="{{listData}}" wx:key="index" >
        <view class="r_ls" >
          <view class="r_ls_r" style="text-align: left">
            <view class="r_li_o">任务量：{{item.scalar}}/{{item.total}}</view>
            <view class="r_li_t">{{ item.created_at }}</view>
          </view>
          <view class="r_ls_r" style="text-align: right">
            <view>奖励金额：<text class="r_li_m">{{item.amount}}</text></view>
            <view class="r_li_s">{{ item.status_name }}</view>
          </view>
        </view>
      </view>


  </block>


