<!--pages/detail/index.wxml-->
<wxs src="../tools.wxs" module="globalTools"></wxs>
<wxs src="./index.wxs" module="Tools"></wxs>
<import src="../../plugins/wxParse/wxParse.wxml" />

<view class="panel">
	<view class="panel-header">
		<view class='one'>
			<view class='left'>
				{{postitionDetail.positionName}}
				<image src='{{imgServerUrl}}/images/happyjob/pt.png' wx:if='{{positionCategory === "4"}}'></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="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' wx:if='{{positionCategory !=="4"}}'>
			<view class='reward' wx:if='{{postitionDetail.maleReward || postitionDetail.femaleReward || postitionDetail.platformAllowance}}'>
				<text class="reward1">入职奖励 </text>
				<view class="reward2">
					<text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
					<text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
					<text wx:if='{{postitionDetail.platformAllowance}}'>
						<text wx:if='{{postitionDetail.maleReward || postitionDetail.femaleReward}}'>，</text>额外奖励{{postitionDetail.platformAllowance}}
					</text>
				</view>
			</view>
		</view>
		<view wx:else></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>
	<block wx:if='{{positionCategory ==="4"}}'>
		<view class="two1">
			<view class='left'>
				<view class='reward' wx:if='{{postitionDetail.maleReward || postitionDetail.femaleReward || postitionDetail.platformAllowance || maxReward}}'>
					<text class="reward1">入职奖励 </text>
					<view class="reward2">
						<text wx:if='{{postitionDetail.maleReward}}'>男{{postitionDetail.maleReward}} </text>
						<text wx:if='{{postitionDetail.femaleReward}}'>女{{postitionDetail.femaleReward}}</text>
						<text wx:if='{{postitionDetail.platformAllowance}}'>
						<text wx:if='{{postitionDetail.maleReward || postitionDetail.femaleReward}}'>，</text>额外奖励{{postitionDetail.platformAllowance}}
						</text>
					</view>
					<text class="reward3">拼团成功最高可得{{maxReward}}元</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='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>
	</block>
	<view class="address" wx:if='{{positionCategory !== "5"}}'>
		<view class="address-left">
			<image src="/images/happyjob/position_address.png"></image>
			<view class="address-content">
				<text wx:if='{{postitionDetail.hpPositionAddressList[0].address}}'>{{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="{{positionCategory !=='5' }}">
		<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="index" 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>
		</view>
		<view class='nine'>
			<image class="nin-image" src="/images/happyjob/position_warn.png"></image>
			<view>未标明收费的职位不会收取任何费用，若要求缴纳费用或押金，请提高警惕并第一时间向我们举报。</view>
		</view>
	</block>
	<block wx:else>
		<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>
	</block>
</view>
<!-- 非福利、非兼职、非拼工岗位 -->

<!-- 兼职岗位 -->
<!-- <block wx:if="{{positionCategory == 1 || positionCategory == 9}}">
	<view class='panel'>
		<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="index" 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='nine'>
			<image class="nin-image" src="/images/happyjob/position_warn.png"></image>
			<view>未标明收费的职位不会收取任何费用，若要求缴纳费用或押金，请提高警惕并第一时间向我们举报。</view>
		</view>
	</view>
</block> -->
<!-- 拼团岗位 -->
<!-- <block wx:if="{{positionCategory == 4}}">
	<view class='panel'>
		<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'></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'>
				<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="index" 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">
			<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='nine'>
			<image class="nin-image" src="/images/happyjob/position_warn.png"></image>
			<view>未标明收费的职位不会收取任何费用，若要求缴纳费用或押金，请提高警惕并第一时间向我们举报。</view>
		</view>
	</view>
</block> -->


<!-- btn -->
<view class="btn-group fixed-footer safe_area">
	<form bindsubmit="applyJob" report-submit='true' wx:if="{{positionCategory!=4 && !isApply}}">
		<view class="button">
			<view class="call-kefu" bindtap='callPhone'>电话咨询</view>
			<button class=" selfBtn" form-type="submit">投递简历</button>
		</view>
	</form>
	<form bindsubmit="applyPt" report-submit='true' wx:if="{{positionCategory==4 && !isApply}}">
		<view class="button">
			<view class="call-kefu" bindtap='callPhone'>电话咨询</view>
			<button class=" selfBtn" form-type="submit">申请开团</button>
		</view>
	</form>
	<view class="button" wx:if="{{positionCategory!=4 && isApply}}">
		<button class=" selfBtn">已申请</button>
	</view>
	<view class="button" wx:if="{{positionCategory==4 && isApply}}" bindtap='myApply'>
		<button class=" selfBtn">我的拼工</button>
	</view>
</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="index" 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>
<kefu top='515'/>