<!-- 加载图层 -->
<loading wx:if="{{loading}}"></loading>

<!-- 销售任务进度 -->
<view class="task-progress">
  <view class="task-progress-header">
    <view class="task-progress-header-name">{{$t['registerCommany']}}</view>
    <van-button size='mini' bind:click="productDetail" type="default">{{$t['productDetail']}}
    </van-button>
  </view>
</view>

<!-- 列表区 -->
<dk-form id="{{formName}}" routeObjName="{{routeObjName}}" cardList="{{cardList}}" contentObj="{{contentObj}}" model:value="{{formData}}" bind:chooseData="chooseData" bind:changeTab="changeTab">
</dk-form>

<!--活动-->
<view class="func" wx:if="{{proFlag}}">
  <view style="display:flex;flex-wrap: wrap;">
    <view class="{{(curentAdItem && curentAdItem.itemId == item.itemId)?'func-card-selected':'func-card'}}" wx:for="{{activityTable}}" wx:for-item="item" wx:key="index" data-item="{{item}}" catchtap="chooseAdItem">
      <!-- 标题 -->
      <view class="card-title">{{item.activityItemName}}
      </view>
      <!-- 价格-->
      <dk-cell fontSize="16" center="center" contentFontWeight="700" contentColor="#FF7B1A" content="{{item.stdPrice}}"></dk-cell>
      <!-- 描述-->
      <view class="card-desc">{{item.activityItemDescribe}}
      </view>
    </view>
  </view>
</view>

<!--用户数-->
<view class="card-class" wx:if="{{proFlag}}">
  <!--用户数量-->
  <van-cell border="{{ false }}" title-class="cell_title">
    <view slot="title" style="display: flex;">
      <view>用户数量</view>
      <view style="font-size: 10px;">(包含手机和电脑授权)</view>
    </view>
    <van-stepper value="{{staffCount.maxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="all" bind:change="changeStaffCount" />
  </van-cell>
  <van-cell border="{{ false }}" title="额外购买授权">
  </van-cell>
  <!--手机用户数-->
  <van-cell border="{{ false }}" title-class="cell_title">
    <view slot="title" style="display: flex;">
      <view>手机端授权</view>
      <view wx:if="{{curentAdItem && curentAdItem.wxPrice}}" style="display: flex;font-size: 10px;">
        （<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{curentAdItem.wxPrice}}"></dk-cell>/个）
      </view>
    </view>
    <van-stepper value="{{staffCount.wxMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="wx" bind:change="changeStaffCount" />
  </van-cell>
  <!--电脑用户数-->
  <van-cell border="{{ false }}" title-class="cell_title">
    <view slot="title" style="display: flex;">
      <view>电脑端授权</view>
      <view wx:if="{{curentAdItem && curentAdItem.webPrice}}" style="display: flex;font-size: 10px;">
        （<dk-cell fontSize="10" left="5rpx" height="50rpx" contentColor="#e00808" content="{{ curentAdItem.webPrice }}"></dk-cell>/个）
      </view>
    </view>
    <van-stepper value="{{staffCount.webMaxNum}}" integer="{{true}}" min="0" max="{{1000}}" data-type="web" bind:change="changeStaffCount" />
  </van-cell>
</view>

<!--合计-->
<view class="summary-class" wx:if="{{proFlag && curentAdItem}}">
  <view class="summary-item-class">订单详情：</view>
  <view class="summary-item-class">{{summaryInfo.amountInfo}}</view>
  <view class="summary-item-class">截止日期：{{summaryInfo.endDate}}</view>
  <view class="summary-item-class" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">{{summaryInfo.staffInfo}}</view>
  <view class="summary-item-class" style="display: flex;justify-content: flex-end;" wx:if="{{staffCount.maxNum || staffCount.webMaxNum || staffCount.wxMaxNum}}">
    折合<dk-cell fontSize="14" left="5rpx" fontWeight="bold" height="45rpx" contentColor="#FF7B1A" content="{{summaryInfo.priceInfo}}"></dk-cell>/天/授权</view>
</view>

<!--注册须知-->
<view class="notice-class">
	<view class="notice-item-class" style="font-size: 16px;font-weight: bold;">{{noticeInfo.title}}</view>
	<view class="notice-item-class" style="padding-top: 20rpx;">{{noticeInfo.cpName}}</view>
	<view class="notice-item-class">{{noticeInfo.contact}}</view>
	<view class="notice-item-class">{{noticeInfo.cpSize}}</view>
	<view class="notice-item-class" style="display: flex;padding-top: 20rpx;">
		<van-checkbox shape="square" value="{{flgPrimary}}" label-class="checkbox-class" bind:change="handleChangeCheckbox">我已阅读并同意</van-checkbox>
		<view style="color: #CE9965;">《注册须知》</view>
		<view style="color: #CE9965;">《免责条款》</view>
	</view>
</view>
<view style="height: 200rpx;"></view>
<!-- <dk-save-bottom flagTypeName="select-functional-permissions" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="save" />  -->

<view class="bottom-class">
  <van-button custom-class="save-button-class" disabled="{{loading}}" loading="{{loading}}" bind:click="save" type="default">保存
  </van-button>
</view>