<!--pages/detail/index.wxml-->
<wxs src="../tools.wxs" module="globalTools" />
<wxs src="./index.wxs" module="Tools" />
<import src="../../plugins/wxParse/wxParse.wxml" />
<!-- 非福利岗位 -->
<block wx:if="{{positionCategory!=5 && positionCategory!=1 && positionCategory!=4 && positionCategory!=9}}">
  <view class='panel'>
    <view class="panel-header">
      <view class='one'>
        <view class='left'>
          {{postitionDetail.positionName}}
        </view>
        <view class='salary'>
          <!-- <image src='{{imgServerUrl}}/images/happyjob/dollor.png'></image> -->
          <block wx:if="{{postitionDetail.salary}}">
            {{postitionDetail.salary}}
          </block>
          <block wx:elif="{{postitionDetail.totalSalary}}">
            {{postitionDetail.totalSalary}}
          </block>
          <block wx:else>
            {{postitionDetail.basicSalary}}
          </block>
        </view>
      </view>
      <view class="two">
        <view class='left'>
          <view>
            招聘人数：{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}}
          </view>
        </view>
        <view class='right'>
          <view>
            {{Tools.formatDate(postitionDetail.updateDate)}}
          </view>
        </view>
      </view>
    </view>

    <view class="two1">
      <view class='left'>
        <view class='reward' wx:if="{{postitionDetail.reward}}">
          <text class="reward1">入职奖励 </text>
          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
          <text wx:if='{{postitionDetail.platformAllowance}}'>，额外奖励{{postitionDetail.platformAllowance}}</text></text>
        </view>
      </view>
      <view class="right">
        <view class='favour' bindtap='favourate'>
          <block wx:if="{{isFarovite}}">
            <image src='/images/happyjob/collected.png'></image>
          </block>
          <block wx:else>
            <image src='/images/happyjob/collect.png'></image>
          </block>
          <text>收藏</text>
        </view>
        <view class='favour share' bindtap='share'>
          <image src='/images/happyjob/share.png'></image>
          <text>分享</text>
        </view>
      </view>
    </view>
    <view class="address">
      <view class="address-left">
        <image src="/images/happyjob/position_address.png"></image>
        <view class="address-content">
          <text>{{postitionDetail.hpPositionAddressList[0].address}}</text>
          <text class="address-content-address">{{postitionDetail.hpPositionAddressList[0].adname}}</text>
        </view>
      </view>
      <view class="address-right">
        <view class="address-bar"></view>
        <text catchtap='toaddressdetail'>全部({{postitionDetail.hpPositionAddressList.length}})</text>
      </view>
    </view>
    <!-- <block wx:if="{{postitionDetail.hpPositionAddressList.length>0}}">
      <view class='three' catchtap='toaddressdetail'>
        <view class='left'>
          <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
          <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address?postitionDetail.hpPositionAddressList[0].address:""}}</text>
        </view>
        <view class='right'>
          <image src='{{imgServerUrl}}/images/happyjob/right.png'></image>
        </view>
      </view>
    </block> -->
    <!-- <view class='four'>
      <view class='title'>
        <view class="name {{detailIndex == 0?'active':''}}" data-top="{{basePos}}" bindtap='goDeatil' data-index='0'>基本信息</view>
        <view class="name {{detailIndex == 1?'active':''}}" data-top="{{requirePos}}" bindtap='goDeatil' data-index='1'>岗位要求</view>
        <view class="name {{detailIndex == 2?'active':''}}" data-top="{{otherWelfarePos}}" bindtap='goDeatil' data-index='2'>其他福利</view>
        <view class="name {{detailIndex == 3?'active':''}}" data-top="{{jieshaoPos}}" bindtap='goDeatil' data-index='3'>公司详情</view>
      </view>
    </view> -->
    <view class='five' id="base">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_dec.png"></image>
        <view class='right'>基本信息</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.basicSalary}}">
        <view class='left'>基础工资:</view>
        <view class='right'>{{postitionDetail.basicSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.salaryStructure}}">
        <view class='left'>薪资结构:</view>
        <view class='right'>{{postitionDetail.salaryStructure}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.totalSalary}}">
        <view class='left'>综合工资:</view>
        <view class='right'>{{postitionDetail.totalSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.payDay}}">
        <view class='left'>发工资日:</view>
        <view class='right'>{{postitionDetail.payDay}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workTime}}">
        <view class='left'>工作时间:</view>
        <view class='right'>{{postitionDetail.workTime}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
        <view class='left'>工作环境:</view>
        <view class='right'>
          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
        </view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
        <view class='left'>工作描述:</view>
        <view class='right'>
          <text decode='true' space='nbsp'>{{postitionDetail.positionDetail}}</text>
        </view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
        <view class='left'>其他:</view>
        <view class='right'>{{postitionDetail.otherInformation}}</view>
      </view>
    </view>
    <view class='six' id="require">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_detail.png"></image>
        <view class='right'>岗位要求</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.gender != 0}}">
        <view class='left'>性别:</view>
        <view class='right'>{{postitionDetail.gender==1?"男":"女"}}</view>
      </view>
      <view class="sex" wx:else>
        <view class='left'>性别:</view>
        <view class='right'>男女不限</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.ageRange}}">
        <view class='left'>年龄:</view>
        <view class='right'>{{postitionDetail.ageRange}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.qualification}}">
        <view class='left'>学历要求:</view>
        <view class='right'>{{postitionDetail.qualification}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.workExperience}}">
        <view class='left'>工作年限:</view>
        <view class='right'>{{postitionDetail.workExperience}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.isPhysical}}">
        <view class='left'>体检:</view>
        <view class='right'>需要</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.profressionSkill}}">
        <view class='left'>专业技能:</view>
        <view class='right'>{{postitionDetail.profressionSkill}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.otherRequirement}}">
        <view class='left'>其他要求:</view>
        <view class='right'>{{postitionDetail.otherRequirement}}</view>
      </view>
    </view>
    <view class='seven' id="otherWelfare">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_gift.png"></image>
        <view class='right'>其他福利</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.workDinner}}">
        <view class='left'>工作餐:</view>
        <view class='right'>{{postitionDetail.workDinner}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.accommodation}}">
        <view class='left'>住宿:</view>
        <view class='right'>{{postitionDetail.accommodation}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.socialSecurity}}">
        <view class='left'>社保:</view>
        <view class='right'>{{postitionDetail.socialSecurity}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.specialWelfare}}">
        <view class='left'>其他福利:</view>
        <view class='right'>
          <block wx:for="{{globalTools.splitStr1(postitionDetail.specialWelfare,',')}}" wx:key="*this" wx:for-item="tag">
            {{tag}}
          </block>
          <block wx:if="{{postitionDetail.otherWelfare}}">
            ({{postitionDetail.otherWelfare}})
          </block>
        </view>
      </view>
      <view class="work" wx:if="{{postitionDetail.regularBus}}">
        <view class='left'>交通:</view>
        <view class='right'>{{postitionDetail.regularBus}}</view>
      </view>
    </view>
    <view class="regularBus" wx:if="{{postitionDetail.busDetail}}" bindtap="toBusDetail">
      <image src="/images/happyjob/positon_bus.png"></image>
      <view class="bus_position">
        查看厂车路线图 >>
      </view>
    </view>
    <view class='eight' id="jieshao">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_company.png"></image>
        <view class='right'>公司简介</view>
      </view>
      <view class="eight-company">
        <view class="eight-company-name">{{postitionDetail.hpCompany.companyName}}</view>
        <view class="companyDescription" bindtap="toCompanyDesc">查看公司简介 ></view>
      </view>
      <!-- <block wx:if="{{postitionDetail.hpCompany.companyDescription}}">
        <view class="company">
          {{postitionDetail.hpCompany.companyDescription}}
        </view>
      </block> -->
      <!-- <block wx:if="{{postitionDetail.hpCompany.address}}">
        <view class="com">
          <view class='left'>公司地址:</view>
          <view class='right'>{{postitionDetail.hpCompany.address}}</view>
        </view>
      </block> -->
      <!-- <view class="com">
        <view class='left'>客服电话:</view>
        <view class='right' bindtap='phoneCall'>{{postitionDetail.contactPhone}}</view>
      </view> -->
    </view>
    <view class='nine'>
      <image class="nin-image" src="/images/happyjob/position_warn.png"></image>
      <view>未标明收费的职位不会收取任何费用，若要求缴纳费用或押金，请提高警惕并第一时间向我们举报。</view>
    </view>
  </view>
</block>
<!-- 兼职岗位 -->
<block wx:elif="{{positionCategory==1 || positionCategory==9}}">
  <view class='panel'>
    <view class='one'>
      <view class='left'>
        {{postitionDetail.positionName}}
      </view>
      <view class='salary'>
        <!-- <image src='{{imgServerUrl}}/images/happyjob/dollor.png'></image> -->
        <block wx:if="{{postitionDetail.salary}}">
          {{postitionDetail.salary}}
        </block>
      </view>
    </view>
    <view class="two">
      <view class='left'>
        <view>
          招聘人数：{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}}
        </view>
      </view>
      <view class='right'>
        <view>
          发布于：{{globalTools.subStr(postitionDetail.updateDate)}}
        </view>
      </view>
    </view>
    <view class="two1">
      <view class='left'>
        <!-- <view class='reward' wx:if="{{postitionDetail.reward}}">
          <text class="reward1">入职奖励 </text>
          <text class="reward2">{{postitionDetail.reward}}元</text>
        </view> -->
      </view>
      <view class="right">
        <view class='favour' bindtap='favourate'>
          <block wx:if="{{isFarovite}}">
            <image src='/images/happyjob/collected.png'></image>
          </block>
          <block wx:else>
            <image src='/images/happyjob/collect.png'></image>
          </block>
          <text>收藏</text>
        </view>
        <view class='favour share' bindtap='share'>
          <image src='/images/happyjob/share.png' style="height:25rpx"></image>
          <text>分享</text>
        </view>
      </view>
    </view>
    <view class="address">
      <view class="address-left">
        <image src="/images/happyjob/position_address.png"></image>
        <view class="address-content">
          <text>{{postitionDetail.hpPositionAddressList[0].address}}</text>
          <text class="address-content-address">{{postitionDetail.hpPositionAddressList[0].adname}}</text>
        </view>
      </view>
      <view class="address-right">
        <view class="address-bar"></view>
        <text catchtap='toaddressdetail'>全部({{postitionDetail.hpPositionAddressList.length}})</text>
      </view>
    </view>
    <!-- <block wx:if="{{postitionDetail.hpPositionAddressList.length>0}}">
      <view class='three' catchtap='toaddressdetail'>
        <view class='left'>
          <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
          <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address?postitionDetail.hpPositionAddressList[0].address:""}}</text>
        </view>
        <view class='right'>
          <image src='{{imgServerUrl}}/images/happyjob/right.png'></image>
        </view>
      </view>
    </block> -->
    <!-- <view class='three_1'>
      <view class='sex'>
        <view class='left'>工作时间:</view>
        <view class='right'>
          <block wx:if="{{postitionDetail.workDay}}">{{postitionDetail.workDay}}</block>
        </view>
      </view>
      <view class='sex'>
        <view class='left'></view>
        <view class='right'>
          <block wx:if="{{postitionDetail.workTime}}">{{postitionDetail.workTime}}</block>
        </view>
      </view>
    </view> -->
    <!-- <view class='four'>
      <view class='title'>
        <view class="name {{detailIndex == 0?'active':''}}" data-top="{{basePos}}" bindtap='goDeatil' data-index='0'>基本信息</view>
        <view class="name {{detailIndex == 1?'active':''}}" data-top="{{requirePos}}" bindtap='goDeatil' data-index='1'>岗位要求</view>
        <view class="name {{detailIndex == 2?'active':''}}" data-top="{{otherWelfarePos}}" bindtap='goDeatil' data-index='2'>其他福利</view>
        <view class="name {{detailIndex == 3?'active':''}}" data-top="{{jieshaoPos}}" bindtap='goDeatil' data-index='3'>公司详情</view>
      </view>
    </view> -->
    <view class='five' id="base">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_dec.png"></image>
        <view class='right'>基本信息</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.basicSalary}}">
        <view class='left'>基础工资:</view>
        <view class='right'>{{postitionDetail.basicSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.salaryStructure}}">
        <view class='left'>薪资结构:</view>
        <view class='right'>{{postitionDetail.salaryStructure}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.settlementMethod}}">
        <view class='left'>结算方式:</view>
        <view class='right'>{{postitionDetail.settlementMethod}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.totalSalary}}">
        <view class='left'>综合工资:</view>
        <view class='right'>{{postitionDetail.totalSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.otherSalary}}">
        <view class='left'>岗位奖励:</view>
        <view class='right'>{{postitionDetail.otherSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.payDay}}">
        <view class='left'>发工资日:</view>
        <view class='right'>{{postitionDetail.payDay}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workDay}}">
        <view class='left'>工作日期:</view>
        <view class='right'>{{postitionDetail.workDay}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workTime}}">
        <view class='left'>工作时间:</view>
        <view class='right'>{{postitionDetail.workTime}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
        <view class='left'>工作环境:</view>
        <view class='right'>
          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
        </view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
        <view class='left'>工作描述:</view>
        <view class='right'>
          <text decode='true' space='nbsp'>{{postitionDetail.positionDetail}}</text>
        </view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
        <view class='left'>其他:</view>
        <view class='right'>{{postitionDetail.otherInformation}}</view>
      </view>
    </view>
    <view class='six' id="require">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_detail.png"></image>
        <view class='right'>岗位要求</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.gender != 0}}">
        <view class='left'>性别:</view>
        <view class='right'>{{postitionDetail.gender==1?"男":"女"}}</view>
      </view>
      <view class="sex" wx:else>
        <view class='left'>性别:</view>
        <view class='right'>男女不限</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.ageRange}}">
        <view class='left'>年龄:</view>
        <view class='right'>{{postitionDetail.ageRange}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.qualification}}">
        <view class='left'>学历要求:</view>
        <view class='right'>{{postitionDetail.qualification}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.workExperience}}">
        <view class='left'>工作年限:</view>
        <view class='right'>{{postitionDetail.workExperience}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.isHealthCertification}}">
        <view class='left'>健康证:</view>
        <view class='right'>需要</view>
      </view>
      <view class="sex" wx:else>
        <view class='left'>健康证:</view>
        <view class='right'>不需要</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.profressionSkill}}">
        <view class='left'>专业技能:</view>
        <view class='right'>{{postitionDetail.profressionSkill}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.otherRequirement}}">
        <view class='left'>其他要求:</view>
        <view class='right'>{{postitionDetail.otherRequirement}}</view>
      </view>
    </view>
    <view class='seven' id="otherWelfare">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_gift.png"></image>
        <view class='right'>其他福利</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.workDinner}}">
        <view class='left'>工作餐:</view>
        <view class='right'>{{postitionDetail.workDinner}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.accommodation}}">
        <view class='left'>住宿:</view>
        <view class='right'>{{postitionDetail.accommodation}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.socialSecurity}}">
        <view class='left'>社保:</view>
        <view class='right'>{{postitionDetail.socialSecurity}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.welfare}}">
        <view class='left'>岗位福利:</view>
        <view class='right'>
          <block wx:for="{{globalTools.splitStr1(postitionDetail.welfare,',')}}" wx:key="*this" wx:for-item="tag">
            {{tag}}
          </block>
        </view>
      </view>
      <view class="work" wx:if="{{postitionDetail.regularBus}}">
        <view class='left'>交通:</view>
        <view class='right'>{{postitionDetail.regularBus}}</view>
      </view>
    </view>
    <view class="regularBus" wx:if="{{postitionDetail.busDetail}}" bindtap="toBusDetail">
      <image src="/images/happyjob/positon_bus.png"></image>
      <view class="bus_position">
        查看厂车路线图 >>
      </view>
    </view>
    <view class="eight">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_company.png"></image>
        <view class='right'>公司简介</view>
      </view>
      <view class="eight-company">
        <view class="eight-company-name">{{postitionDetail.hpCompany.companyName}}</view>
        <view class="companyDescription" bindtap="toCompanyDesc">查看公司简介 ></view>
      </view>
    </view>

    <!-- <view class='eight_1' id="jieshao">
      <view class='title'>
        <view class='left'></view>
        <view class='right'>公司简介</view>
      </view>
      <block wx:if="{{postitionDetail.hpCompany.companyDescription}}">
        <view class="company">
          {{postitionDetail.hpCompany.companyDescription}}
        </view>
      </block>
      <block wx:if="{{postitionDetail.hpCompany.address}}">
        <view class="com">
          <view class='left'>公司地址:</view>
          <view class='right'>{{postitionDetail.hpCompany.address}}</view>
        </view>
      </block>
      <view class="com">
        <view class='left'>客服电话:</view>
        <view class='right' bindtap='phoneCall'>{{postitionDetail.contactPhone}}</view>
      </view>
    </view> -->
    <view class='nine'>
      <image class="nin-image" src="/images/happyjob/position_warn.png"></image>
      <view>未标明收费的职位不会收取任何费用，若要求缴纳费用或押金，请提高警惕并第一时间向我们举报。</view>
    </view>
  </view>
</block>
<!-- 拼团岗位 -->
<block wx:elif="{{positionCategory==4}}">
  <view class='panel'>
    <view class='one'>
      <view class='left'>
        {{postitionDetail.positionName}}
        <image src='{{imgServerUrl}}/images/happyjob/pt.png'></image>
      </view>
      <view class='salary'>
        <!-- <image src='{{imgServerUrl}}/images/happyjob/dollor.png'></image> -->
        <block wx:if="{{postitionDetail.salary}}">
          {{postitionDetail.salary}}
        </block>
        <block wx:elif="{{postitionDetail.totalSalary}}">
          {{postitionDetail.totalSalary}}
        </block>
        <block wx:else>
          {{postitionDetail.basicSalary}}
        </block>
      </view>
    </view>
    <view class="two1">
      <view class='left'>
        <view class='reward' wx:if="{{postitionDetail.reward}}">
          <text class="reward1">入职奖励 </text>
          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
          <text wx:if='{{postitionDetail.platformAllowance}}'>，额外奖励{{postitionDetail.platformAllowance}}</text></text>
          <text class="reward3">拼团成功最高可得{{maxReward}}元</text>
        </view>
      </view>
      <!-- <view class='right'>
      </view> -->
    </view>
    <view class='two_1'>
      <view class='left'>
        距离结束还有：
        <block wx:if="{{leftTime > 0}}">
          <i-count-down target="{{leftTime}}" bindcallback="myLinsterner" class="countdown-class" clear-timer="{{clearTimer}}" format="{{myFormat}}" show-day="{{true}}"></i-count-down>
        </block>
      </view>
      <view class='right'>
        <view>
          招聘人数：{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}} 发布于：{{globalTools.subStr(postitionDetail.updateDate)}}
        </view>
      </view>
    </view>
    <!-- 拼团列表 -->
    <view class='two_pt'>
      <view class='pt'>
        <block wx:if="{{storeAction.length>0}}">
          <swiper class="swiper_container" vertical="true" autoplay="true" circular="true" interval="3000">
            <block wx:for="{{storeAction}}" wx:for-index="idx" wx:for-item="item" wx:key="il">
              <swiper-item class="pt_1">
                <view class='left'>
                  <block wx:for="{{item}}" wx:for-item="item1" wx:key="il1">
                    <view class='left_1'>
                      <block wx:if="{{item1.hpResumeAPI.headImg}}">
                        <image src='{{item1.hpResumeAPI.headImg}}'></image>
                      </block>
                      <block wx:else>
                        <image src="{{imgServerUrl}}/images/avatar/man.png"></image>
                      </block>
                    </view>
                  </block>
                  <view class='left_2'>{{item[0].hpResumeAPI.realName}}的拼工,还差
                    <text>{{3-item.length}}</text>位伙伴
                  </view>
                </view>
                <view class='right' bindtap='joinPt' data-index='{{idx}}'>
                  加入拼工
                </view>
              </swiper-item>
            </block>
          </swiper>
        </block>
        <view class='pt_2'>该岗位已有
          <text>{{postitionDetail.startGroupNumber}}</text>位伙伴创建了拼工，您也可以点击查看
          <text bindtap='allPt'>所有拼工</text>
        </view>
      </view>
    </view>
    <view class='three' catchtap='toaddressdetail'>
      <view class='left'>
        <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
        <text>{{postitionDetail.hpPositionAddressList[0].adname}}{{postitionDetail.hpPositionAddressList[0].address}}</text>
      </view>
      <view class='right'>
        <image src='{{imgServerUrl}}/images/happyjob/right.png'></image>
      </view>
    </view>
    <!-- <view class='four'>
      <view class='title'>
        <view class="name {{detailIndex == 0?'active':''}}" data-top="{{basePos}}" bindtap='goDeatil' data-index='0'>基本信息</view>
        <view class="name {{detailIndex == 1?'active':''}}" data-top="{{requirePos}}" bindtap='goDeatil' data-index='1'>岗位要求</view>
        <view class="name {{detailIndex == 2?'active':''}}" data-top="{{otherWelfarePos}}" bindtap='goDeatil' data-index='2'>其他福利</view>
        <view class="name {{detailIndex == 3?'active':''}}" data-top="{{jieshaoPos}}" bindtap='goDeatil' data-index='3'>公司详情</view>
      </view>
    </view> -->
    <view class='five' id="base">
      <view class='title'>
        <view class='left_pin'></view>
        <view class='right'>基本信息</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.basicSalary}}">
        <view class='left'>基础工资:</view>
        <view class='right'>{{postitionDetail.basicSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.salaryStructure}}">
        <view class='left'>薪资结构:</view>
        <view class='right'>{{postitionDetail.salaryStructure}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.totalSalary}}">
        <view class='left'>综合工资:</view>
        <view class='right'>{{postitionDetail.totalSalary}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.payDay}}">
        <view class='left'>发工资日:</view>
        <view class='right'>{{postitionDetail.payDay}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workTime}}">
        <view class='left'>工作时间:</view>
        <view class='right'>{{postitionDetail.workTime}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.workEnvironment}}">
        <view class='left'>工作环境:</view>
        <view class='right'>
          <text decode='true' space='nbsp'>{{postitionDetail.workEnvironment}}</text>
        </view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.positionDetail}}">
        <view class='left'>工作描述:</view>
        <view class='right'>
          <text decode='true' space='nbsp'></text>{{postitionDetail.positionDetail}}</view>
      </view>
      <view class="basesalay" wx:if="{{postitionDetail.otherInformation}}">
        <view class='left'>其他:</view>
        <view class='right'>{{postitionDetail.otherInformation}}</view>
      </view>
    </view>
    <view class='six' id="require">
      <view class='title'>
        <view class='left_pin'></view>
        <view class='right'>岗位要求</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.gender != 0}}">
        <view class='left'>性别:</view>
        <view class='right'>{{postitionDetail.gender==1?"男":"女"}}</view>
      </view>
      <view class="sex" wx:else>
        <view class='left'>性别:</view>
        <view class='right'>男女不限</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.ageRange}}">
        <view class='left'>年龄:</view>
        <view class='right'>{{postitionDetail.ageRange}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.qualification}}">
        <view class='left'>学历要求:</view>
        <view class='right'>{{postitionDetail.qualification}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.workExperience}}">
        <view class='left'>工作年限:</view>
        <view class='right'>{{postitionDetail.workExperience}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.isPhysical}}">
        <view class='left'>体检:</view>
        <view class='right'>需要</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.profressionSkill}}">
        <view class='left'>专业技能:</view>
        <view class='right'>{{postitionDetail.profressionSkill}}</view>
      </view>
      <view class="sex" wx:if="{{postitionDetail.otherRequirement}}">
        <view class='left'>其他要求:</view>
        <view class='right'>{{postitionDetail.otherRequirement}}</view>
      </view>
    </view>
    <view class='seven' id="otherWelfare">
      <view class='title'>
        <view class='left_pin'></view>
        <view class='right'>其他福利</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.workDinner}}">
        <view class='left'>工作餐:</view>
        <view class='right'>{{postitionDetail.workDinner}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.accommodation}}">
        <view class='left'>住宿:</view>
        <view class='right'>{{postitionDetail.accommodation}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.socialSecurity}}">
        <view class='left'>社保:</view>
        <view class='right'>{{postitionDetail.socialSecurity}}</view>
      </view>
      <view class="work" wx:if="{{postitionDetail.specialWelfare}}">
        <view class='left'>其他福利:</view>
        <view class='right'>
          <block wx:for="{{globalTools.splitStr1(postitionDetail.specialWelfare,',')}}" wx:key="*this" wx:for-item="tag">
            {{tag}}
          </block>
          <block wx:if="{{postitionDetail.otherWelfare}}">
            ({{postitionDetail.otherWelfare}})
          </block>
        </view>
      </view>
      <view class="work" wx:if="{{postitionDetail.regularBus}}">
        <view class='left'>交通:</view>
        <view class='right'>{{postitionDetail.regularBus}}</view>
      </view>
    </view>
    <view class='eight' id="jieshao">
      <view class='title'>
        <view class='left_pin'></view>
        <view class='right'>公司简介</view>
      </view>
      <view class="company">
        {{postitionDetail.hpCompany.companyDescription}}
      </view>
      <view class="com">
        <view class='left'>公司地址:</view>
        <view class='right'>{{postitionDetail.hpCompany.address}}</view>
      </view>
      <view class="com">
        <view class='left'>客服电话:</view>
        <view class='right' bindtap='phoneCall'>{{postitionDetail.contactPhone}}</view>
      </view>
    </view>
  </view>
</block>
<!-- 福利岗位 -->
<block wx:else>
  <view class="panel">
    <view class="panel-header">
      <view class='one'>
        <view class='left'>
          {{postitionDetail.positionName}}
        </view>
        <view class='salary'>
          <!-- <image src='{{imgServerUrl}}/images/happyjob/dollor.png'></image> -->
          <block wx:if="{{postitionDetail.salary}}">
            {{postitionDetail.salary}}
          </block>
          <block wx:elif="{{postitionDetail.totalSalary}}">
            {{postitionDetail.totalSalary}}
          </block>
          <block wx:else>
            {{postitionDetail.basicSalary}}
          </block>
        </view>
      </view>
      <view class="two">
        <view class='left'>
          <view>
            招聘人数：{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}}
          </view>
        </view>
        <view class='right'>
          <view>
            {{Tools.formatDate(postitionDetail.updateDate)}}
          </view>
        </view>
      </view>
    </view>

    <view class="two1">
      <view class='left'>
        <view class='reward' wx:if="{{postitionDetail.reward}}">
          <text class="reward1">入职奖励 </text>
          <text class="reward2"><text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
          <text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
          <text wx:if='{{postitionDetail.platformAllowance}}'>，额外奖励{{postitionDetail.platformAllowance}}</text></text>
        </view>
      </view>
      <view class="right">
        <view class='favour' bindtap='favourate'>
          <block wx:if="{{isFarovite}}">
            <image src='/images/happyjob/collected.png'></image>
          </block>
          <block wx:else>
            <image src='/images/happyjob/collect.png'></image>
          </block>
          <text>收藏</text>
        </view>
        <view class='favour share' bindtap='share'>
          <image src='/images/happyjob/share.png'></image>
          <text>分享</text>
        </view>
      </view>
    </view>
    <view class="five">
      <view class='title'>
        <image class="left" src="/images/happyjob/position_dec.png"></image>
        <view class='right'>基本信息</view>
      </view>
      <view class="welfe">
        <block wx:for="{{postitionDetail.hpWelfarePositionDetailList}}" wx:key="id">
          <view class='wel_detail1'>
            <template is="wxParse" data="{{wxParseData:detailArray[index].positionDetail.nodes}}" />
          </view>
          <view class='wel_top' wx:if="{{item.positionImg}}">
            <image src="{{item.positionImg}}" style='height:{{swiperH}}px'></image>
          </view>
        </block>
        <view class="welfare-container">
          <template is="wxParse" data="{{wxParseData:applyCondition.nodes}}" />
        </view>
      </view>
    </view>
  </view>

  <!-- <view class='welfe'>
    <view class='one' wx:if="{{postitionDetail.titleImg}}">
      <image src='{{postitionDetail.titleImg}}'></image>
    </view>
    <view class='two'>
      <view class='wel_tagline'>{{postitionDetail.tagline}}</view>
      <view class='wel_title'>{{postitionDetail.positionName}}</view>
      <view class='wel_title'>{{postitionDetail.positionFeature}} • {{postitionDetail.recruitNumber == null ? '若干' : postitionDetail.recruitNumber}}个名额 • {{globalTools.subStr(postitionDetail.endTime)}}报名截止</view>
    </view>
    <view class='three'>
      <view class='title'>
        <view class='left'></view>
        <view class='right'>职位描述</view>
      </view>
      <block wx:for="{{postitionDetail.hpWelfarePositionDetailList}}" wx:key="id">
        <view class='wel_detail1'>
          <template is="wxParse" data="{{wxParseData:detailArray[index].positionDetail.nodes}}" />
        </view>
        <view class='wel_top' wx:if="{{item.positionImg}}">
          <image src="{{item.positionImg}}" style='height:{{swiperH}}px'></image>
        </view>
      </block>
    </view>
    <view class='four'>
      <view class='title'>
        <view class='left'></view>
        <view class='right'>申请条件</view>
      </view>
      <view class="welfare-container">
        <template is="wxParse" data="{{wxParseData:applyCondition.nodes}}" />
      </view>
    </view>
  </view> -->
</block>

<!-- btn -->
<view class="btn-group fixed-footer">
  <form bindsubmit="applyJob" report-submit='true' wx:if="{{positionCategory!=4 && !isApply}}">
    <button class="distance selfBtn" form-type="submit">申请岗位</button>
  </form>
  <form bindsubmit="applyPt" report-submit='true' wx:if="{{positionCategory==4 && !isApply}}">
    <button class="distance selfBtn" form-type="submit">申请开团</button>
  </form>
  <button class="distance selfBtn" wx:if="{{positionCategory!=4 && isApply}}">已申请</button>
  <button class="distance selfBtn" wx:if="{{positionCategory==4 && isApply}}" bindtap='myApply'>我的拼工</button>
</view>
<!-- 加入拼工 -->
<view class="pt-container" hidden='{{!showJoinPt}}'>
  <view class="mask" bindtap="hideJoinPt"></view>
  <view class="pt_detail">
    <view class='modal_1'>
      <block wx:for="{{joinPtList}}" wx:for-item="item1" wx:key="il1">
        <view class='border'>
          <block wx:if="{{item1.hpResumeAPI.headImg}}">
            <image src='{{item1.hpResumeAPI.headImg}}'></image>
          </block>
          <block wx:else>
            <image src="{{imgServerUrl}}/images/avatar/man.png"></image>
          </block>
        </view>
      </block>
    </view>
    <view class='modal_2'>
      {{joinPtList[0].hpResumeAPI.realName}} 发起的拼工 还差
      <text>{{3-joinPtList.length}}</text> 人
    </view>
    <view class='modal_3'>
      距离结束还有：
      <block wx:if="{{leftTime > 0}}">
        <i-count-down target="{{leftTime}}" bindcallback="myLinsterner" class="countdown-class" clear-timer="{{clearTimer}}" format="{{myFormat}}" show-day="{{true}}"></i-count-down>
      </block>
    </view>
    <view class="modal-footer">
      <view class="btn-cancel" bindtap="cancelPt" data-status="cancelPt">放弃拼工</view>
      <view class="btn-confirm" bindtap="confirmPt" data-status="confirmPt" data-groupid="{{joinPtList[0].groupId}}">加入拼工</view>
    </view>
  </view>
</view>

<!-- 所有拼工 -->
<view class="allpt-container" hidden='{{!showAllPt}}'>
  <view class="mask" bindtap="hideAllPt"></view>
  <view class="allpt_detail">
    <view class='title'>
      该岗位已有{{postitionDetail.startGroupNumber}}位伙伴发起了拼工
    </view>
    <block wx:for="{{storeAction}}" wx:key="*this" wx:for-item="item" wx:for-index="idx">
      <view class='allpt_list'>
        <view class='left'>
          <block wx:for="{{item}}" wx:for-item="item1" wx:key="il1">
            <view class='left_1'>
              <block wx:if="{{item1.hpResumeAPI.headImg}}">
                <image src='{{item1.hpResumeAPI.headImg}}'></image>
              </block>
              <block wx:else>
                <image src='{{imgServerUrl}}/images/avatar/man.png'></image>
              </block>
            </view>
          </block>
          <view class='left_2'>{{item[0].hpResumeAPI.realName}}的拼工,还差
            <text>{{3-item.length}}</text>位伙伴
          </view>
        </view>
        <view class='right' bindtap='joinPt_1' data-index='{{idx}}'>
          加入
        </view>
      </view>
    </block>
  </view>
</view>

<!-- 收藏 -->
<!-- <view class='favour' bindtap='favourate'>
  <block wx:if="{{isFarovite}}">
    <image src='{{imgServerUrl}}/images/happyjob/favoured.png'></image>
  </block>
  <block wx:else>
    <image src='{{imgServerUrl}}/images/happyjob/no_favour.png'></image>
  </block>
</view> -->

<poster id="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}" bind:success="onPosterSuccess" bind:fail="onPosterFail">
</poster>
<view class="show-share" wx:if='{{showShare}}'>
  <view class="share-content">

    <view class="share-content-content">
      <view class="share-content-header">
        <text>已为你生成岗位专属海报：</text>
      </view>
      <image src="{{shareImg}}" class="share-content-image"></image>
      <image src="/images/happyjob/share-close.png" class="share-close" bindtap="cloaseShare"></image>
    </view>
  </view>
  <view class="show-share-bottom">
    <view class="share-item">
      <image src="/images/happyjob/share-save.png" mode="widthFix"></image>
      <text>保存分享图</text>
      <button bindtap="saveShareImg"></button>
    </view>
    <view class="share-item">
      <image src="/images/happyjob/share-wechat.png" mode="widthFix"></image>
      <text>微信好友</text>
      <button open-type="share"></button>
    </view>
  </view>
</view>