| | |
| | | <view> |
| | | <view class='chuany-flex camera-fill chuany-justify-center chuany-align-center'> |
| | | <fui-upload immediate :url="`${apiBaseUrl}/api/UpFile/UpdateFile`" ref="uploadE" max='1' @success="success" |
| | | :sourceType='sourceType' @error="error" @complete="complete" width="280" height="280"> |
| | | :sizeType='sizeType' :sourceType='sourceType' @error="error" @complete="complete" width="280" |
| | | height="280"> |
| | | <view class="" v-if="checkPhoto"> |
| | | <image :src="checkPhoto" mode="widthFix" style="width: 280rpx;height: 280rpx;"> |
| | | </image> |
| | |
| | | </view> |
| | | </fui-upload> |
| | | <fui-upload ref="uploadP" max='1' @error="error" @complete="completePerson" width="280" height="280" |
| | | :sourceType='sourceType'> |
| | | :sizeType='sizeType' :sourceType='sourceType'> |
| | | <view class="" v-if="faceImg"> |
| | | <image :src="faceImg" mode="widthFix" style="width: 280rpx;height: 280rpx;"></image> |
| | | </view> |
| | |
| | | <view class="c-m-20 chuany-font24"> |
| | | 为了保证打卡的正确性,建议在公司门口或进入办公室的门口再打卡。同时,确保照片的清晰、明亮,面部可见。 |
| | | </view> |
| | | <view> |
| | | <view v-if='dakaList&&dakaList.length>0'> |
| | | <view class="chuany-flex chuany-justify-evenly chuany-flex-wrap c-p-t-20"> |
| | | <view |
| | | class="chuany-flex chuany-flex-direction chuany-align-center chuany-justify-around textclo chuany-font24 c-p-b-30 daka" |
| | |
| | | </view> |
| | | </view> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="确认打卡" @click="enroll"></up-button> |
| | | <up-button color='#fece01' class="text-69" text="确认打卡" :loading='isLoading' loadingText="打卡中" |
| | | @click="enroll"></up-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | orderBiddingId: '', //招工明细OrderBiddingId |
| | | checkPhoto: '', //打卡照片 |
| | | faceImg: '', //人脸图片 |
| | | dakaList: null, |
| | | sourceType: ["camera"] |
| | | dakaList: [], |
| | | sourceType: ["camera"], |
| | | sizeType: ['compressed'], |
| | | isLoading: false |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | |
| | | }).then(res => { |
| | | if (res.code == 1) { |
| | | this.dakaList = res.data ? res.data.orderBiddingDetailCheck : [] |
| | | if (this.dakaList.length == 0) { |
| | | this.dakaList.length = 2 |
| | | } |
| | | if (this.dakaList.length > 6) { |
| | | this.dakaList.length = 6 |
| | | } |
| | |
| | | }) |
| | | return |
| | | } |
| | | this.isLoading = true |
| | | let obj = { |
| | | OrderId: this.orderBiddingId, //招工明细OrderBiddingId |
| | | checkPhoto: this.checkPhoto, //打卡照片 |
| | |
| | | title: res.error, |
| | | }) |
| | | } |
| | | this.isLoading = false |
| | | }) |
| | | } |
| | | } |