building-sign/unpackage/dist/dev/mp-weixin/pages/worker/sign/sign.wxml

1 line
16 KiB
Plaintext
Raw Normal View History

2023-02-16 08:19:34 +00:00
<view class="pad-x100 data-v-4844bef7"><status-nav vue-id="7f58be22-1" ifReturn="{{false}}" navBarTitle="打卡小程序" titleColor="{{titleColor}}" backgroudColor="{{backgroudColor}}" class="data-v-4844bef7" bind:__l="__l"></status-nav><view class="content data-v-4844bef7"><view class="sign-top font24 color-white data-v-4844bef7" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><image src="/static/sign-bg.jpg" mode="aspectFill" class="data-v-4844bef7"></image><block wx:if="{{isLoding}}"><view class="name font30 gd-name data-v-4844bef7">{{siteInfo.name}}</view></block><block wx:if="{{buttonColor=='orange'}}"><view data-event-opts="{{[['tap',[['showRadioEv',['$event']]]]]}}" class="sign-btn orange data-v-4844bef7" bindtap="__e"><text class="font56 data-v-4844bef7">打卡</text><text class="data-v-4844bef7">{{currenTime}}</text></view></block><block wx:else><block wx:if="{{buttonColor=='green'}}"><view data-event-opts="{{[['tap',[['showRadioEv',['$event']]]]]}}" class="sign-btn green data-v-4844bef7" bindtap="__e"><text class="font56 data-v-4844bef7">已打卡</text><text class="data-v-4844bef7">{{currenTime}}</text></view></block><block wx:else><view data-event-opts="{{[['tap',[['showRadioEv',['$event']]]]]}}" class="sign-btn data-v-4844bef7" bindtap="__e"><text class="font56 data-v-4844bef7">打卡</text><text class="data-v-4844bef7">{{currenTime}}</text></view></block></block><view class="sign-site data-v-4844bef7"><view class="sign-time data-v-4844bef7"><text class="data-v-4844bef7">{{currentDate}}</text><text class="data-v-4844bef7">{{currentWeek}}</text></view><block wx:if="{{isLoding}}"><view class="position data-v-4844bef7"><block wx:if="{{!siteInfo.name}}"><view class="warning data-v-4844bef7"><image src="/static/icon/icon-warning.png" mode="aspectFit" class="data-v-4844bef7"></image><text class="color-yellow data-v-4844bef7">不在范围内</text></view></block><view data-event-opts="{{[['tap',[['getLocationEv',[1]]]]]}}" class="position-btn data-v-4844bef7" bindtap="__e"><image src="/static/icon/icon-position.png" mode="aspectFit" class="data-v-4844bef7"></image><text class="data-v-4844bef7">重新定位</text></view></view></block></view></view><view class="sign-record bg-white data-v-4844bef7"><view class="title data-v-4844bef7"><image src="/static/icon/icon-sign.png" mode="aspectFit" class="data-v-4844bef7"></image><text class="color-blue font28 data-v-4844bef7">今日打卡记录</text></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item font26 data-v-4844bef7"><view class="info data-v-4844bef7"><text class="data-v-4844bef7">{{item.$orig.type_text+"打卡:"+(item.$orig.is_replenish==1?'补打卡':item.g0)}}</text><block wx:if="{{item.$orig.role!==0}}"><text class="data-v-4844bef7">{{"打卡工地:"+item.$orig.worksite_name}}</text></block></view><block wx:if="{{item.$orig.role!==0&&item.$orig.status==1}}"><view class="state data-v-4844bef7">{{item.$orig.status_text}}</view></block><block wx:if="{{item.$orig.role!==0&&item.$orig.status==0}}"><view class="state color-blue data-v-4844bef7">{{item.$orig.status_text}}</view></block><block wx:if="{{item.$orig.role!==0&&item.$orig.status==-1}}"><view class="state color-red data-v-4844bef7">{{item.$orig.status_text}}</view></block></view></block><block wx:if="{{$root.g1==0}}"><view class="more-tips font24 data-v-4844bef7" style="margin-bottom:15rpx;">今日没有打卡记录</view></block></view><view class="sign-calendar data-v-4844bef7"><sign-calendar vue-id="7f58be22-2" daysIndex="{{daysIndex}}" data-ref="signCalendar" data-event-opts="{{[['^getDate',[['getDate']]]]}}" bind:getDate="__e" class="data-v-4844bef7 vue-ref" bind:__l="__l"></sign-calendar></view></view><block wx:if="{{showRadio}}"><view class="pop-up-bg data-v-4844bef7"><view class="sign-cate bg-white data-v-4844bef7"><view class="title font34 data-v-4844bef7">请确认打卡类型</view><view class="txt font28 data-v-4844bef7"><block wx:for="{{radioList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{