From 376ac09a54e8c95190d06bf39f295c890829c103 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 03 九月 2024 15:43:25 +0800
Subject: [PATCH] 查看工人详情
---
src/pages/checkin/checkin.vue | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/pages/checkin/checkin.vue b/src/pages/checkin/checkin.vue
index a5d2f1a..6dde1c9 100644
--- a/src/pages/checkin/checkin.vue
+++ b/src/pages/checkin/checkin.vue
@@ -1,17 +1,22 @@
<template>
<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"
- @error="error" @complete="complete" width="280" height="280">
- <image v-if="checkPhoto" :src="checkPhoto" mode="widthFix" style="width: 280rpx;height: 280rpx;">
- </image>
+ <fui-upload immediate :url="`${apiBaseUrl}/api/UpFile/UpdateFile`" ref="uploadE" max='1' @success="success"
+ :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>
<view class=" chuany-flex chuany-flex-direction chuany-align-center" v-else>
<fui-icon name="camera-fill"></fui-icon>
<view class="chuany-font20">鎷嶆憚鐜鐓х墖</view>
</view>
</fui-upload>
- <fui-upload ref="uploadP" max='1' @error="error" @complete="completePerson" width="280" height="280">
- <image v-if="faceImg" :src="faceImg" mode="widthFix" style="width: 280rpx;height: 280rpx;"></image>
+ <fui-upload ref="uploadP" max='1' @error="error" @complete="completePerson" width="280" height="280"
+ :sourceType='sourceType'>
+ <view class="" v-if="faceImg">
+ <image :src="faceImg" mode="widthFix" style="width: 280rpx;height: 280rpx;"></image>
+ </view>
<view class=" chuany-flex chuany-flex-direction chuany-align-center" v-else>
<fui-icon name="addfriends-fill"></fui-icon>
<view class="chuany-font20">鎷嶆憚浜鸿劯鐓х墖</view>
@@ -59,7 +64,8 @@
orderBiddingId: '', //鎷涘伐鏄庣粏OrderBiddingId
checkPhoto: '', //鎵撳崱鐓х墖
faceImg: '', //浜鸿劯鍥剧墖
- dakaList: null
+ dakaList: null,
+ sourceType: ["camera"]
}
},
onLoad(option) {
@@ -178,7 +184,7 @@
this.getDaka(this.orderBiddingId)
} else {
this.$util.showToast({
- title: res.data,
+ title: res.error,
})
}
})
--
Gitblit v1.9.1