clock.wxml 3.0 KB
<view class="dengbox" wx:if="{{qrcode==''&&token!=''}}">
  <view class="writebac">
    <!--  -->
    <view class="toppic">
      <image src="/img/write.png"></image>
    </view>
    <view class="writename">请先登记个人信息</view>
    <view class="writebtn" bindtap="dengji">去登记</view>
  </view>
</view>

<view class="{{day<14&&status==2?'dakapagered':'dakapageblue'}}" wx:else>
  <view class="clockbac">
    <!--  -->
    <!-- 打卡图标-->

    <view class="clockpic" wx:if="{{day<14&&status==2}}">
      <image src="/img/rediusse.png"></image>
    </view>
    <view class="clockpic" wx:else>
      <image src="/img/clocksuccess.png"></image>
    </view>
    <view class="clocknameone" wx:if="{{token!=''}}">打卡成功</view>
    <view class="clocknameone" wx:else>等待打卡</view>

    <view wx:if="{{token!=''&&qrcode!=''}}">

      <view class="clocktext" wx:if="{{is_first==1}}">
        您已完成
        <text class="first">首次</text>打卡

      </view>
      <view class="clocktext" wx:else>
        您距离首次打卡
        <text class="first">{{day}}</text>天

      </view>
    </view>

    <!-- 打卡时间 -->
    <view class="clocktimebox" wx:if="{{qrcode!=''&&token!=''}}">
      <view class="clocktimetop flextwo onetop">
        <view class="clocktimeleft">
          首次打卡
        </view>
        <view class="clocktimeright">
          <view class="clockname">
            {{first_scan.company_name}}
          </view>
          <view class="clocktime">{{first_scan.createtime}}</view>
        </view>
      </view>
      <view class="clocktimetop flextwo sectop">
        <view class="clocktimeleft">
          本次打卡
        </view>
        <view class="clocktimeright">
          <view class="clockname">
            {{this_scan.company_name}}
          </view>
          <view class="clocktime">{{this_scan.createtime}}</view>
        </view>
      </view>
    </view>

    <!-- 外地还是本地 -->

    <view class="waiben" wx:if="{{token!=''&&qrcode!=''}}">
      <!--  -->
      <view class="wai" wx:if="{{status=='1'}}">{{address}}</view>
      <view class="nei" wx:else>{{address}}</view>
      <view class="writebtn jilubtn redbtn" bindtap="clocklist" wx:if="{{day<14&&status==2}}">打卡记录</view>
      <view class="writebtn jilubtn " bindtap="clocklist" wx:else>打卡记录</view>
      <!-- 页面二维码 -->
      <view class="jiaotop">
        <view class="botjiao" bindtap="sub">
          <image src="/img/icon_q.png"></image>
        </view>
      </view>
    </view>




  </view>
</view>



<!-- 弹层二维码 -->
<view class="registerk" wx:if="{{showcode}}">
  <view class="codewrap">
    <view class="codetop">
      <image src="/img/codetopimg.png"></image>
      <view class="codename">我的二维码</view>
    </view>
    <view class="codekimg" bindlongpress="baocun">
      <image src="{{codeurl}}"></image>
    </view>
    <view class="ansave">长按保存二维码</view>

  </view>
  <view class="closeimg" bindtap="closecode">
    <image src="/img/closecode.png"></image>
  </view>
</view>