<!--pages/pt-share/index.wxml-->
<wxs src="../tools.wxs" module="globalTools" />
<view class="panel">
  <image src="{{imgServerUrl}}/images/pt/pt-banner.jpg" class="slide-image" mode='widthFix' />
  <view class='share'>
    <view class='one'>
      <view class='left'>
        <view class='name'>{{userInfo.nickName}}</view>
        <view class='title'>“我在找好友一起上班！”</view>
      </view>
      <view class='right'>
        <image src='{{userInfo.avatarUrl}}'></image>
      </view>
    </view>
    <view class='two'>
      <view class='position'>
        {{postitionDetail.position.positionName}}
      </view>
      <view class='company'>
        {{postitionDetail.position.hpCompany.companyName}}
      </view>
      <view class='salary'>
        {{postitionDetail.position.totalSalary?postitionDetail.position.totalSalary:postitionDetail.position.basicSalary}}
      </view>
      <view class='limit'>
        <block wx:if="{{postitionDetail.position.specialWelfare}}">
          <i-tag wx:for="{{globalTools.splitStr1(postitionDetail.position.specialWelfare,',')}}" wx:key="*this" wx:for-item="tag" i-class="tag-class">
            {{tag}}
          </i-tag>
        </block>
        <block wx:if="{{postitionDetail.position.accommodation}}">
          <i-tag i-class="tag-class">
            {{postitionDetail.position.accommodation}}
          </i-tag>
        </block>
        <block wx:if="{{postitionDetail.position.socialSecurity}}">
          <i-tag i-class="tag-class">
            {{postitionDetail.position.socialSecurity}}
          </i-tag>
        </block>
        <block wx:if="{{postitionDetail.position.workDinner}}">
          <i-tag i-class="tag-class">
            {{postitionDetail.position.workDinner}}
          </i-tag>
        </block>
        <block wx:if="{{postitionDetail.position.regularBus}}">
          <i-tag i-class="tag-class">
            {{postitionDetail.position.regularBus}}
          </i-tag>
        </block>
      </view>
    </view>
    <view class='three'>
      <view class='left'>
        <view>
          <image src='{{imgServerUrl}}/images/happyjob/logo.png'></image>
        </view>
        <view class='kefu'>专属客服，全程服务</view>
      </view>
      <view class='mid'>
        <image src='{{qrcode}}'></image>
      </view>
      <view class='right'>
        <view>识别左侧二维码，</view>
        <view>即可参与我发起的拼工！</view>
      </view>
    </view>
  </view>
</view>
<button class="create" bindtap='onCreatePoster' wx:if="{{hasAuth}}">保存图片</button>
<button class="create" open-type="openSetting" bindopensetting="onCreatePoster" wx:else>打开授权页</button>
<poster id="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}" bind:success="onPosterSuccess" bind:fail="onPosterFail">
</poster>