This commit is contained in:
wangweidong 2026-03-20 17:32:14 +08:00
parent 1afcf955bc
commit 9455c44de0
15 changed files with 503 additions and 169 deletions

View File

@ -138,15 +138,12 @@
</view> </view>
<view class="white-photo" @click="getMessage(headPath)"> <view class="white-photo" @click="getMessage(headPath)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">头像</view> <view class="photo-weight" style="margin-left: -10rpx;">头像</view>
<!-- <view class="photo-font">请上传身份证人像面</view> --> <!-- <view class="photo-font">请上传身份证人像面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="headPath ? headPath : `https://www.focusnu.com/media/directive/index/nan.png`" /> :src="headPath ? headPath : (textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png')" />
<image v-if="!headPath"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" />
</view> </view>
</view> </view>

View File

@ -65,15 +65,14 @@
<view class="white-message"> <view class="white-message">
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(2)"> <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(2)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">头像</view> <view class="photo-weight" style="margin-left: -10rpx;">头像</view>
<view class="photo-font">请上传头像</view> <view class="photo-font">请上传头像(选填)</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="form.headPath ? `${media_base_url}${form.headPath}` : `https://www.focusnu.com/media/directive/index/nan.png`" /> :src="form.headPath ? `${media_base_url}${form.headPath}` :
<image v-if="!form.headPath" (form.sex=='男'?'https://www.focusnu.com/media/directive/index/nan.png':
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" 'https://www.focusnu.com/media/directive/index/nv.png')" />
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" />
</view> </view>
</view> </view>
<view @click="openpopupshow"> <view @click="openpopupshow">
@ -650,6 +649,7 @@
form.orgPropertyType = data.orgPropertyType; form.orgPropertyType = data.orgPropertyType;
form.orgBuildingArea = data.orgBuildingArea; form.orgBuildingArea = data.orgBuildingArea;
form.headPath = data.headPath; form.headPath = data.headPath;
form.sex = data.sex;
} else if (uni.getStorageSync('baddata')) { } else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata'); let data = uni.getStorageSync('baddata');
if (data.orgProvince_dictText) { if (data.orgProvince_dictText) {
@ -665,6 +665,7 @@
form.orgPropertyType = data.orgPropertyType; form.orgPropertyType = data.orgPropertyType;
form.orgBuildingArea = data.orgBuildingArea; form.orgBuildingArea = data.orgBuildingArea;
form.headPath = data.headPath; form.headPath = data.headPath;
form.sex = data.sex;
} else { } else {
form.orgLeaderPhone = uni.getStorageSync('tel'); form.orgLeaderPhone = uni.getStorageSync('tel');

View File

@ -21,7 +21,7 @@
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight">监护人基本信息</view> <view class="content-weight">监护人基本信息</view>
</view> </view>
<view class="white-photo" @click="selectphoto()"> <view class="white-photo" @click="selectphoto(1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">人像面</view> <view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view> <view class="photo-font">请上传身份证人像面</view>
@ -37,6 +37,17 @@
</view> </view>
</view> </view>
<!-- <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(5)">
<view class="photo-left">
<view class="photo-weight">监护人头像</view>
<view class="photo-font">请上传监护人头像(选填)</view>
</view>
<view style="position: relative;">
<image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="guardianHeadPath ? `${media_base_url}${guardianHeadPath}` : 'https://www.focusnu.com/media/default/touxiang.png' " />
</view>
</view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<!-- <view class="one"> <!-- <view class="one">
@ -137,8 +148,8 @@
const photoclick = (element) => { const photoclick = (element) => {
if (element==2) { if (element==2) {
uni.previewImage({ uni.previewImage({
urls: [specialImgeshow.value], // urls: targetphoto.value==1?[media_base_url + data.guardianIdCardPositive]:[media_base_url + data.guardianHeadPath], //
current: specialImgeshow.value, // urls[0] current: targetphoto.value==1?media_base_url + data.guardianIdCardPositive:media_base_url + data.guardianHeadPath, // urls[0]
indicator: 'default', // H5/App 'default' 'number' indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App longPressActions: { // App
itemList: ['保存图片到相册'], itemList: ['保存图片到相册'],
@ -149,9 +160,15 @@
count: 1, count: 1,
sourceType: element == 0 ? ['camera'] : ['album'], sourceType: element == 0 ? ['camera'] : ['album'],
success: chooseRes => { success: chooseRes => {
if(targetphoto.value==1){
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
}); });
}else{
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
}
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -161,20 +178,30 @@
} }
const specialImge = ref("") const specialImge = ref("")
const guardianHeadPath = ref("")
const targetphoto = ref(0)
const uping = ref(true) const uping = ref(true)
const selectphoto = () => { const selectphoto = (number) => {
// console.log("0000",bottomshow.value) // console.log("0000",bottomshow.value)
if (!uping.value) { if (!uping.value) {
return return
} }
targetphoto.value = number
if(number==1){
if (specialImge.value) { if (specialImge.value) {
bottomshow.value = true; bottomshow.value = true;
} else { } else {
angetMessage() angetMessage()
} }
}else{
if (guardianHeadPath.value) {
bottomshow.value = true;
} else {
angetMessage()
}
}
} }
// //
function angetMessage() { function angetMessage() {
@ -185,9 +212,16 @@
success: chooseRes => { success: chooseRes => {
// tempImagePath.value = chooseRes.tempFilePaths[0] // tempImagePath.value = chooseRes.tempFilePaths[0]
// //
if(targetphoto.value==1){
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
}); });
}else{
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
}
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -252,6 +286,7 @@
data.guardianWorkUnit = form.workUnit data.guardianWorkUnit = form.workUnit
data.relationship = form.relationship data.relationship = form.relationship
data.guardianIdCardPositive = specialImge.value data.guardianIdCardPositive = specialImge.value
data.guardianHeadPath = guardianHeadPath.value
data.modifyType = "jhr" data.modifyType = "jhr"
const urlpost = `${base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`; const urlpost = `${base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
uni.request({ uni.request({
@ -305,6 +340,7 @@
data.guardianWorkUnit = form.workUnit data.guardianWorkUnit = form.workUnit
data.relationship = form.relationship data.relationship = form.relationship
data.guardianIdCardPositive = specialImge.value data.guardianIdCardPositive = specialImge.value
data.guardianHeadPath = guardianHeadPath.value
const urlpost = `${base_url}/api/elderInfo/addElder?ukey=${ukey.value}`; const urlpost = `${base_url}/api/elderInfo/addElder?ukey=${ukey.value}`;
uni.request({ uni.request({
url: urlpost, url: urlpost,
@ -427,6 +463,7 @@
form[key] = data[key] || "" form[key] = data[key] || ""
}) })
specialImge.value = data.guardianIdCardPositive specialImge.value = data.guardianIdCardPositive
guardianHeadPath.value = data.guardianHeadPath
specialImgeshow.value = media_base_url + data.guardianIdCardPositive specialImgeshow.value = media_base_url + data.guardianIdCardPositive
console.log("????", uni.getStorageSync('allinfo')) console.log("????", uni.getStorageSync('allinfo'))
} }
@ -436,6 +473,33 @@
function uploadImage(filePath) { function uploadImage(filePath) {
uping.value = false; uping.value = false;
uni.showLoading() uni.showLoading()
if(targetphoto.value>3){
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz:'headPath'
},
success: uploadRes => {
let data = JSON.parse(uploadRes.data)
guardianHeadPath.value = data.message;
uping.value = true;
uni.hideLoading()
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'none'
})
uni.hideLoading()
}
})
return
}
uni.uploadFile({ uni.uploadFile({
url: `${base_url}/api/ocr/idCard`, // POST url: `${base_url}/api/ocr/idCard`, // POST
filePath, filePath,

View File

@ -54,6 +54,15 @@
</view> </view>
</view> </view>
<!-- <view class="white-photo" @click="getMessage(guardianHeadPath)" style="margin-top: 20rpx;">
<view class="photo-left">
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
</view>
<view style="position: relative;">
<image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="guardianHeadPath ? guardianHeadPath : 'https://www.focusnu.com/media/default/touxiang.png'" />
</view>
</view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@ -90,9 +99,8 @@
const show = ref(false); const show = ref(false);
const content = ref(""); const content = ref("");
const headImge0 = ref(""); const headImge0 = ref("");
const guardianHeadPath = ref("");
const statusarray = ["loading", "success", "fail"] const statusarray = ["loading", "success", "fail"]
const nameArray = [ "姓名", "电话", "身份证号码", "家庭住址", "工作单位"]; const nameArray = [ "姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
const textArray = reactive(["", "", "", "", ""]); const textArray = reactive(["", "", "", "", ""]);
@ -155,6 +163,7 @@
textArray[3] = data.guardianHomeAddress; textArray[3] = data.guardianHomeAddress;
textArray[4] = data.guardianWorkUnit; textArray[4] = data.guardianWorkUnit;
headImge0.value = `${media_base_url}${data.guardianIdCardPositive}`; headImge0.value = `${media_base_url}${data.guardianIdCardPositive}`;
guardianHeadPath.value = `${media_base_url}${data.guardianHeadPath}`;
}) })
const changeMessage = () => { const changeMessage = () => {
if (alldata.value.guardianModifyStatus == '1') { if (alldata.value.guardianModifyStatus == '1') {

View File

@ -28,8 +28,17 @@
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<!-- <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(5)">
<view class="photo-left">
<view class="photo-weight">监护人头像</view>
<view class="photo-font">请上传监护人头像(选填)</view>
</view>
<view style="position: relative;">
<image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="guardianHeadPath ? `${media_base_url}${guardianHeadPath}` : 'https://www.focusnu.com/media/default/touxiang.png' " />
</view>
</view> -->
<!-- margin重叠问题 --> <!-- margin重叠问题 -->
<view style="height: 10rpx;"></view> <view style="height: 10rpx;"></view>
@ -64,6 +73,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="white-content"> <view class="white-content">
@ -111,6 +122,14 @@
<view class="white-message"> <view class="white-message">
<view> <view>
<view class="one" style="justify-content: space-between;" @click="selectphoto(4)">
<view class="one-left">长者头像(选填)</view>
<image class="photo" style="width: 80rpx;height: 80rpx;border-radius: 50%;border: 1px solid #666;"
:src="headPath ? `${media_base_url}${headPath}` :
(textArray[1]=='女'?'https://www.focusnu.com/media/directive/index/nv.png':
'https://www.focusnu.com/media/directive/index/nan.png')" />
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
</view>
<view v-for="(item,index) in nameArray" :key="index" class="one-no" <view v-for="(item,index) in nameArray" :key="index" class="one-no"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -141,6 +160,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;"> <view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
@ -227,10 +247,25 @@
} }
const photoclick = (element) => { const photoclick = (element) => {
if (element==2) { if (element==2) {
let obj = { a:[],b:''}
let type = targetphoto.value
if (!type) {
obj.a = [media_base_url + fontphoto.value ]
} else if (type == 1) {
obj.a = [media_base_url + endphoto.value ]
} else if (type == 2) {
obj.a = [media_base_url + specialImge.value ]
}
else if (type == 4) {
obj.a = [media_base_url + headPath.value ]
}
else if (type == 5) {
obj.a = [media_base_url + guardianHeadPath.value ]
}
uni.previewImage({ uni.previewImage({
urls: [headImge.value, backImge.value, specialImgeshow.value], // urls: obj.a, //
current: targetphoto.value ? (targetphoto.value == 1 ? backImge.value : specialImgeshow current: obj.a[0], // urls[0]
.value) : headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number' indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App longPressActions: { // App
itemList: ['保存图片到相册'], itemList: ['保存图片到相册'],
@ -242,9 +277,15 @@
sourceType: element == 0 ? ['camera'] : ['album'], sourceType: element == 0 ? ['camera'] : ['album'],
success: chooseRes => { success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
if(targetphoto.value > 3){
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
}else{
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
}); });
}
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -265,28 +306,39 @@
// specialImge // specialImge
targetphoto.value = number targetphoto.value = number
if (!number) { if (!number) {
if (headImge.value) { if (fontphoto.value) {
bottomshow.value = true; bottomshow.value = true;
} else { } else {
getMessage() getMessage()
} }
} else if (number == 1) { } else if (number == 1) {
if (backImge.value) { if (endphoto.value) {
bottomshow.value = true; bottomshow.value = true;
} else { } else {
getMessage() getMessage()
} }
} else if (number == 2) { } else if (number == 2) {
if (specialImge.value) { if (specialImge.value) {
bottomshow.value = true; bottomshow.value = true;
} else { } else {
isspecial.value = true; isspecial.value = true;
getMessage() getMessage()
} }
} }
else if (number == 4) {
if (headPath.value) {
bottomshow.value = true;
} else {
getMessage()
}
}
else if (number == 5) {
if (guardianHeadPath.value) {
bottomshow.value = true;
} else {
getMessage()
}
}
} }
// //
@ -298,9 +350,16 @@
success: chooseRes => { success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
// //
if(targetphoto.value > 3){
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
}else{
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
}); });
}
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -311,6 +370,8 @@
const specialImgeshow = ref(""); const specialImgeshow = ref("");
const headImge = ref(""); const headImge = ref("");
const backImge = ref(""); const backImge = ref("");
const guardianHeadPath = ref("");
const headPath = ref("");
// //
function formatChineseDate(chineseDate) { function formatChineseDate(chineseDate) {
return chineseDate.replace(/(\d+)年(\d+)月(\d+)日/, (_, y, m, d) => { return chineseDate.replace(/(\d+)年(\d+)月(\d+)日/, (_, y, m, d) => {
@ -332,6 +393,41 @@
// //
function uploadImage(filePath) { function uploadImage(filePath) {
uping.value = false; uping.value = false;
if(targetphoto.value>3){
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz:'headPath'
},
success: uploadRes => {
let data = JSON.parse(uploadRes.data)
if(targetphoto.value==4){
headPath.value = data.message;
}else{
guardianHeadPath.value = data.message;
}
uping.value = true;
uni.hideLoading()
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'none'
})
uni.hideLoading()
}
})
return
}
uni.showLoading() uni.showLoading()
uni.uploadFile({ uni.uploadFile({
url: `${base_url}/api/ocr/idCard`, // POST url: `${base_url}/api/ocr/idCard`, // POST
@ -361,7 +457,8 @@
form.homeAddress = father.address form.homeAddress = father.address
savephoto(filePath, 2); savephoto(filePath, 2);
} }
isspecial.value = false isspecial.value = false;
uping.value = true;
} else { } else {
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) { if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data; let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
@ -409,6 +506,7 @@
}) })
uping.value = true; uping.value = true;
} }
uping.value = true;
} }
}, },
@ -482,6 +580,12 @@
} else if (type == 2) { } else if (type == 2) {
specialImge.value = JSON.parse(uploadRes.data).message specialImge.value = JSON.parse(uploadRes.data).message
} }
else if (type == 4) {
headPath.value = JSON.parse(uploadRes.data).message
}
else if (type == 5) {
guardianHeadPath.value = JSON.parse(uploadRes.data).message
}
uping.value = true; uping.value = true;
}, },
fail: err => { fail: err => {
@ -557,7 +661,6 @@
}) })
} }
const next = () => { const next = () => {
if (!specialImge.value) { if (!specialImge.value) {
uni.showToast({ uni.showToast({
title: '请上传监护人身份证人像面', title: '请上传监护人身份证人像面',
@ -596,7 +699,8 @@
title: '长者身份证号格式错误', title: '长者身份证号格式错误',
icon: 'none' icon: 'none'
}) })
} return return
}
if (canshow.value) { if (canshow.value) {
if (!form.name) { if (!form.name) {
@ -673,7 +777,12 @@
data.issuingAuthority = textArray[6] data.issuingAuthority = textArray[6]
data.startTime = start; data.startTime = start;
data.endTime = end data.endTime = end;
data.headPath = headPath.value
if(canshow.value){
data.guardianHeadPath = guardianHeadPath.value
}
if (data.endTime == '长期') { if (data.endTime == '长期') {
data.endTime = swapLongTerm(end) data.endTime = swapLongTerm(end)
} }
@ -840,6 +949,7 @@
canshow.value = false; canshow.value = false;
fontphoto.value = data.idCardPositive fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative endphoto.value = data.idCardNegative
headPath.value = data.headPath
specialImge.value = data.guardianIdCardPositive specialImge.value = data.guardianIdCardPositive
textArray[0] = data.name textArray[0] = data.name
textArray[1] = data.sex textArray[1] = data.sex

View File

@ -69,6 +69,13 @@
</view> --> </view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<view class="one" style="justify-content: space-between;" @click="getMessage( headPath?`${media_base_url}${headPath}`:'')" >
<view class="one-left">头像</view>
<view class="one-right">
<image class="photo" style="width: 80rpx;height: 80rpx;border-radius: 50%;border: 1px solid #666;"
:src="headPath ? `${media_base_url}${headPath}` : (textArray[1]=='女'?'https://www.focusnu.com/media/directive/index/nv.png':'https://www.focusnu.com/media/directive/index/nan.png')" />
</view>
</view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -118,6 +125,8 @@
const fontphoto0 = ref("") const fontphoto0 = ref("")
const endphoto0 = ref("") const endphoto0 = ref("")
const headPath = ref("")
const imgArray = ref(["", "", "", ""]) const imgArray = ref(["", "", "", ""])
const nameArray0 = ["开户行", "开户行卡号"]; const nameArray0 = ["开户行", "开户行卡号"];
@ -197,6 +206,7 @@
fontphoto.value = data.idCardPositive fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative endphoto.value = data.idCardNegative
specialImge.value = data.idCardPositive specialImge.value = data.idCardPositive
headPath.value = data.headPath
getManyDictItems( getManyDictItems(
`medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type` `medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
).then((res => { ).then((res => {

View File

@ -462,7 +462,7 @@
data.cardFmPath = endphoto.value data.cardFmPath = endphoto.value
uni.setStorageSync("backhuancun", data) uni.setStorageSync("backhuancun", data)
uni.navigateTo({ uni.navigateTo({
url: "/pages/addstaff/bankcard" url: "/pages/addstaff/information"
}); });
} else { } else {
uni.showToast({ uni.showToast({

View File

@ -27,29 +27,30 @@
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text> <text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
</view> </view>
<template> <template>
<view v-if="dexcard==0"> <view v-if="dexcard==1">
<view class="white-content"> <view class="white-content">
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
<view style="display: flex;">
<view class="shu"></view>
<view class="content-weight" style="margin-top: -2rpx;">个人信息</view>
<view class="small-blue" @click="changeMessage"
v-if="alldata.applyStatus&&alldata.applyStatus!=1&&alldata.applyStatus!=4&&code==1">
编辑
</view>
<image class="shu-img" v-else
:src="alldata.applyType==0?`https://www.focusnu.com/media/directive/index/${statusarray1[alldata.applyStatus-1]}.png` :`https://www.focusnu.com/media/directive/index/${statusarray[alldata.applyStatus-1]}.png`" />
</view>
</view>
<!-- <view class="contentred" v-if="!applyStatus&&contentred"> <!-- <view class="contentred" v-if="!applyStatus&&contentred">
<view class="contentred-bgc"> <view class="contentred-bgc">
驳回原因{{contentred}} 驳回原因{{contentred}}
</view> </view>
</view> --> </view> -->
<view class="content-title" :style="!applyStatus?{height: `100rpx`}:{height: `140rpx`}"
style="position: relative;margin-bottom: 20rpx;z-index: 999;">
<view class="shu"></view>
<view class="content-weight">个人信息</view>
</view>
<view class="white-message"> <view class="white-message">
<view> <view>
<view class="one" style="justify-content: space-between;" @click="getMessage((imgArray[4] ? `${media_base_url}${imgArray[4]}` : ''),imgArray[4],1)">
<view class="one-left">头像</view>
<view class="one-right">
<image class="photo" style="width: 80rpx;height: 80rpx;border-radius: 50%;border: 1px solid #666;"
:src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : (textArray[1]=='女'?'https://www.focusnu.com/media/directive/index/nv.png':'https://www.focusnu.com/media/directive/index/nan.png')" />
</view>
</view>
<view v-for="(item,index) in nameArray1" :key="index" class="one" <view v-for="(item,index) in nameArray1" :key="index" class="one"
@click="openLook(textArray1[index])"> @click="openLook(textArray1[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -58,22 +59,32 @@
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: center;"> <view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
<view class="finish-button" @click="dexcard = 1;gotop()"> <view class="back-button" @click="dexcard = 0;gotop()">
上一步
</view>
<view class="finish-button" @click="dexcard = 2;gotop()">
下一步 下一步
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<template> <template>
<view v-if="dexcard==1"> <view v-if="dexcard==0">
<view class="white-content"> <view class="white-content">
<view class="content-title" :style="!applyStatus?{height: `100rpx`}:{height: `140rpx`}" <view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
style="position: relative;margin-bottom: 20rpx;z-index: 999;"> <view style="display: flex;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight">身份证</view> <view class="content-weight" style="margin-top: -2rpx;">身份证</view>
<view class="small-blue" @click="changeMessage"
v-if="alldata.applyStatus&&alldata.applyStatus!=1&&alldata.applyStatus!=4&&code==1">
编辑
</view>
<image class="shu-img" v-else
:src="alldata.applyType==0?`https://www.focusnu.com/media/directive/index/${statusarray1[alldata.applyStatus-1]}.png` :`https://www.focusnu.com/media/directive/index/${statusarray[alldata.applyStatus-1]}.png`" />
</view> </view>
</view>
<view class="white-photo" @click="getMessage(headImge)"> <view class="white-photo" @click="getMessage(headImge)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">人像面</view> <view class="photo-weight">人像面</view>
@ -116,11 +127,8 @@
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;"> <view style="display: flex;width: 100%;padding: 0 10%;justify-content: center;">
<view class="back-button" @click="dexcard = 0;gotop()"> <view class="finish-button" @click="dexcard = 1;gotop()">
上一步
</view>
<view class="finish-button" @click="dexcard = 2;gotop()">
下一步 下一步
</view> </view>
</view> </view>
@ -137,7 +145,7 @@
</view> </view>
<view class="white-photo" @click="getMessage(fontphoto0,alldata.bankZmPath,1)"> <view class="white-photo" @click="getMessage(fontphoto0,alldata.bankZmPath,1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">银行卡正面</view> <view class="photo-weight">银行卡</view>
<!-- <view class="photo-font">请上传银行卡正面</view> --> <!-- <view class="photo-font">请上传银行卡正面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
@ -151,11 +159,10 @@
</view> </view>
</view> </view>
<view class="white-photo" style="margin-top: 30rpx;" <!-- <view class="white-photo" style="margin-top: 30rpx;"
@click="getMessage(endphoto0,alldata.bankFmPath,1)"> @click="getMessage(endphoto0,alldata.bankFmPath,1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">银行卡反面</view> <view class="photo-weight">银行卡反面</view>
<!-- <view class="photo-font">请上传银行卡反面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
@ -166,8 +173,7 @@
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> -->
</view>
<view class="content-title" style="margin: 30rpx 0;"> <view class="content-title" style="margin: 30rpx 0;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight">银行卡信息</view> <view class="content-weight">银行卡信息</view>
@ -191,7 +197,7 @@
<view class="white-photo" <view class="white-photo"
@click="getMessage((imgArray[0] ? `${media_base_url}${imgArray[0]}` : ''),imgArray[0],1)"> @click="getMessage((imgArray[0] ? `${media_base_url}${imgArray[0]}` : ''),imgArray[0],1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">健康证正面</view> <view class="photo-weight">健康证</view>
<!-- <view class="photo-font">请上传健康证正面</view> --> <!-- <view class="photo-font">请上传健康证正面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
@ -267,22 +273,7 @@
</view> </view>
</view> </view>
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">头像</view>
</view>
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage((imgArray[4] ? `${media_base_url}${imgArray[4]}` : ''),imgArray[4],1)">
<view class="photo-left">
<view class="photo-weight">头像</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : `https://www.focusnu.com/media/directive/index/nan.png`" />
<!-- <image v-if="!imgArray[4]"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" /> -->
</view>
</view>
</view> </view>
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 20rpx;"> <view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 20rpx;">
@ -466,7 +457,7 @@
uni.setStorageSync('specicalid', alldata.value.id); uni.setStorageSync('specicalid', alldata.value.id);
uni.setStorageSync("backhuancun", {}) uni.setStorageSync("backhuancun", {})
uni.navigateTo({ uni.navigateTo({
url: `/pages/addstaff/information` url: `/pages/addstaff/IDcard`
}); });
} }

View File

@ -22,8 +22,8 @@
</view> </view>
<view class="white-photo" @click="selectphoto(0)"> <view class="white-photo" @click="selectphoto(0)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">银行卡正面</view> <view class="photo-weight">银行卡</view>
<view class="photo-font">请上传银行卡正面</view> <view class="photo-font">请上传银行卡</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
@ -36,7 +36,7 @@
</view> </view>
</view> </view>
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)"> <!-- <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">银行卡反面</view> <view class="photo-weight">银行卡反面</view>
<view class="photo-font">请上传银行卡反面</view> <view class="photo-font">请上传银行卡反面</view>
@ -51,10 +51,10 @@
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view> -->
<view class="content-title" style="margin: 20rpx 0;"> <view class="content-title" style="margin: 20rpx 0;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight">银行卡信息</view> <view class="content-weight">银行卡信息(识别信息可能有误可编辑)</view>
</view> </view>
<view class="white-message"> <view class="white-message">
<view> <view>
@ -118,7 +118,6 @@
const states = ["审核中", "审核未通过", "审核通过"]; const states = ["审核中", "审核未通过", "审核通过"];
const fontphoto = ref(""); const fontphoto = ref("");
const endphoto = ref("");
const statesTarget = ref(0); const statesTarget = ref(0);
const shenhe = () => { const shenhe = () => {
@ -294,13 +293,8 @@
biz: path biz: path
}, },
success: uploadRes => { success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message fontphoto.value = JSON.parse(uploadRes.data).message
headImge.value = filePath; headImge.value = filePath;
} else {
endphoto.value = JSON.parse(uploadRes.data).message
backImge.value = filePath;
}
uni.hideLoading() uni.hideLoading()
if (JSON.parse(uploadRes.data).code == 401) { if (JSON.parse(uploadRes.data).code == 401) {
uni.uploadFile({ uni.uploadFile({
@ -314,11 +308,7 @@
biz: path biz: path
}, },
success: uploadRes => { success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message fontphoto.value = JSON.parse(uploadRes.data).message
} else {
endphoto.value = JSON.parse(uploadRes.data).message
}
uping.value = true; uping.value = true;
}, },
fail: err => { fail: err => {
@ -392,7 +382,6 @@
data.openingBank = textArray[0] data.openingBank = textArray[0]
data.bankCard = textArray[1] data.bankCard = textArray[1]
data.bankZmPath = fontphoto.value data.bankZmPath = fontphoto.value
data.bankFmPath = endphoto.value
uni.setStorageSync("backhuancun", data) uni.setStorageSync("backhuancun", data)
uni.navigateTo({ uni.navigateTo({
url: "/pages/addstaff/healthcertificate" url: "/pages/addstaff/healthcertificate"
@ -413,7 +402,6 @@
data.openingBank = textArray[0]; data.openingBank = textArray[0];
data.bankCard = textArray[1]; data.bankCard = textArray[1];
data.bankZmPath = fontphoto.value; data.bankZmPath = fontphoto.value;
data.bankFmPath = endphoto.value;
uni.setStorageSync("backhuancun", data) uni.setStorageSync("backhuancun", data)
} }
@ -426,13 +414,11 @@
textArray[0] = data.openingBank; textArray[0] = data.openingBank;
textArray[1] = data.bankCard; textArray[1] = data.bankCard;
fontphoto.value = data.bankZmPath fontphoto.value = data.bankZmPath
endphoto.value = data.bankFmPath
} else if (uni.getStorageSync('baddata')) { } else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata'); let data = uni.getStorageSync('baddata');
textArray[0] = data.openingBank; textArray[0] = data.openingBank;
textArray[1] = data.bankCard; textArray[1] = data.bankCard;
fontphoto.value = data.bankZmPath fontphoto.value = data.bankZmPath
endphoto.value = data.bankFmPath
} }
}) })

View File

@ -100,24 +100,21 @@
</view> </view>
<view class="content-title"> <!-- <view class="content-title">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight" >头像</view> <view class="content-weight" >头像</view>
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view> <view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view>
</view> </view>
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(4)"> <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(4)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">头像</view> <view class="photo-weight" style="margin-left: -10rpx;">头像</view>
<view class="photo-font">请上传头像</view> <view class="photo-font" style="margin-left: -10rpx;">请上传头像(选填)</view>
</view> </view>
<view style="position: relative; "> <view style="position: relative; ">
<image class="photo" <image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : `https://www.focusnu.com/media/directive/index/nan.png`" /> :src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : (sex=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png')" />
<!-- <image v-if="!imgArray[4]"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" /> -->
</view>
</view> </view>
</view> -->
</view> </view>
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 40rpx;"> <view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 40rpx;">
@ -183,7 +180,6 @@
const imgetarget = ref(0) const imgetarget = ref(0)
const selectphoto = (number) => { const selectphoto = (number) => {
if (!uping.value) { if (!uping.value) {
return return
} }
@ -213,7 +209,7 @@
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
if(imgetarget.value == 4){ if(imgetarget.value == 4){
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=1&size=1&height=1500&width=1500` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
}); });
}else{ }else{
uni.navigateTo({ uni.navigateTo({
@ -227,19 +223,24 @@
} }
}) })
} }
} }
// //
function getMessage() { function getMessage() {
uni.chooseImage({ uni.chooseImage({
count: 1, count: 1,
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: chooseRes => { success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
if(imgetarget.value == 4){
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
}else{
uni.navigateTo({ uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1` url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
}); });
}
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -313,7 +314,7 @@
const ukey = ref( const ukey = ref(
`${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}` `${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
) )
const modifyStatus = ref("") const modifyStatus = ref(0)
const next = () => { const next = () => {
// uni.showToast({ // uni.showToast({
// title: "999999999999999999", // title: "999999999999999999",
@ -364,7 +365,7 @@
} }
if (res.success) { if (res.success) {
uni.setStorageSync('changeyuangongorgCode', ""); uni.setStorageSync('changeyuangongorgCode', "");
gopush() gopush(data.modifyStatus)
} }
// uni.requestSubscribeMessage({ // uni.requestSubscribeMessage({
// // templateId // // templateId
@ -391,6 +392,7 @@
// } // }
}) })
} }
const sex = ref("")
onLoad(() => { onLoad(() => {
if (uni.getStorageSync('backhuancun').healthZmPath) { if (uni.getStorageSync('backhuancun').healthZmPath) {
let data = uni.getStorageSync('backhuancun'); let data = uni.getStorageSync('backhuancun');
@ -400,6 +402,7 @@
imgArray[2] = data.qualificationPath imgArray[2] = data.qualificationPath
imgArray[3] = data.noCrimeCertificate imgArray[3] = data.noCrimeCertificate
imgArray[4] = data?.headPath imgArray[4] = data?.headPath
sex.value = data.sex
} else if (uni.getStorageSync('baddata')) { } else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata'); let data = uni.getStorageSync('baddata');
console.log(data) console.log(data)
@ -408,11 +411,12 @@
imgArray[2] = data.qualificationPath imgArray[2] = data.qualificationPath
imgArray[3] = data.noCrimeCertificate imgArray[3] = data.noCrimeCertificate
imgArray[4] = data?.headPath imgArray[4] = data?.headPath
sex.value = data.sex
} }
}) })
const gopush = () => { const gopush = (d) => {
console.log("????", uni.getStorageSync('nostaffmessage')) console.log("????", uni.getStorageSync('nostaffmessage'))
@ -457,7 +461,7 @@
], ],
success: (res) => { success: (res) => {
uni.setStorageSync( uni.setStorageSync(
'nostaffmessage', data.modifyStatus==1?true:false); 'ygbgsq', d==1?true:false);
uni.reLaunch({ uni.reLaunch({
url: `/pages/addstaff/successpush` url: `/pages/addstaff/successpush`
}); });
@ -484,6 +488,8 @@
} else { } else {
uni.setStorageSync(
'ygbgsq', d==1?true:false);
uni.reLaunch({ uni.reLaunch({
url: `/pages/addstaff/successpush` url: `/pages/addstaff/successpush`
}); });

View File

@ -31,8 +31,18 @@
</view> </view>
</view> </view>
</view> </view>
<view class="white-message"> <view class="white-message">
<view> <view>
<view class="one" style="justify-content: space-between;position: relative;" @click="selectphoto(4)">
<view class="one-left">头像(选填)</view>
<image class="photo" style="width: 80rpx;height: 80rpx;border-radius: 50%;border: 1px solid #666;"
:src="headPath ? `${media_base_url}${headPath}` :
(sex=='女'?'https://www.focusnu.com/media/directive/index/nv.png':
'https://www.focusnu.com/media/directive/index/nan.png'
)" />
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view>
<view class="one" style="position: relative;" @click="showmarry = true"> <view class="one" style="position: relative;" @click="showmarry = true">
<view class="one-left">婚否</view> <view class="one-left">婚否</view>
<input disabled style="cursor: not-allowed;pointer-events: none; " class="one-right" type="text" <input disabled style="cursor: not-allowed;pointer-events: none; " class="one-right" type="text"
@ -131,6 +141,7 @@
下一步 下一步
</view> </view>
</view> </view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow" borderRadius="20"></u-action-sheet>
</div> </div>
</template> </template>
@ -144,6 +155,7 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
media_base_url,
base_url base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { import {
@ -151,7 +163,16 @@
} from './api/addjigou.js' } from './api/addjigou.js'
import model from "@/compontent/public/model.vue" import model from "@/compontent/public/model.vue"
const bottomlist = [{
text: '拍照',
fontSize: 40
}, {
text: '从相册选择',
fontSize: 40
}, {
text: '图片预览',
fontSize: 40
}]
// const showmarry // const showmarry
const jjlxrmax = ref(8) const jjlxrmax = ref(8)
@ -196,6 +217,121 @@
} }
}) })
) )
onShow(() => {
const img = uni.getStorageSync('imgkey0')
console.log(img,1111111111111)
if (img) {
// uploadImage(img)
savephoto(img)
uni.removeStorageSync('imgkey0')
}
})
const headPath = ref("")
const bottomshow = ref(false)
const selectphoto = (number) => {
if (!uping.value) {
return
}
if (headPath.value) {
bottomshow.value = true;
} else {
getMessage()
}
}
const tempImagePath = ref('')
function getMessage() {
uni.chooseImage({
count: 1,
sourceType: ['album', 'camera'],
success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0]
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
},
fail: err => {
console.error('拍照失败:', err)
}
})
}
const photoclick = (element) => {
if (element==2) {
uni.previewImage({
urls: [`${media_base_url}${headPath.value}`], //
// current: headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
} else {
uni.chooseImage({
count: 1,
sourceType: element == 0 ? ['camera'] : ['album'],
success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0]
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
});
},
fail: err => {
console.error('拍照失败:', err)
}
})
}
}
const uping = ref(true);
const savephoto = (filePath) => {
uping.value = false;
// category: 'jg' | 'yg' | 'zz' | 'jhr'
const now = new Date();
const yyyy = now.getFullYear();
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 0
let path = '';
switch ('yg') {
case 'jg': //
path = `${yyyy}/${mm}/jgxx/jg`;
break;
case 'yg': //
path = `${yyyy}/${mm}/ygxx/yg`;
break;
case 'zz': //
path = `${yyyy}/${mm}/zzxx/zz`;
break;
case 'jhr': //
path = `${yyyy}/${mm}/zzxx/jhr`;
break;
default:
path = `${yyyy}/${mm}/temp`;
}
console.log(filePath)
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: path
},
success: uploadRes => {
headPath.value = JSON.parse(uploadRes.data).message
console.log(headPath.value,JSON.parse(uploadRes.data))
uping.value = true;
uni.hideLoading()
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'none'
})
uni.hideLoading()
}
})
}
const confirmshowshengao = (item) => { const confirmshowshengao = (item) => {
form.height = item[0].value form.height = item[0].value
form.showheight = item[0].label form.showheight = item[0].label
@ -359,7 +495,7 @@
uni.setStorageSync("backhuancun", merged2); uni.setStorageSync("backhuancun", merged2);
uni.navigateTo({ uni.navigateTo({
url: "/pages/addstaff/IDcard" url: "/pages/addstaff/bankcard"
}); });
} }
@ -369,7 +505,7 @@
const goBack = () => { const goBack = () => {
uni.navigateBack() uni.navigateBack()
} }
const sex = ref("")
onLoad(() => { onLoad(() => {
if (uni.getStorageSync('baddata')) { if (uni.getStorageSync('baddata')) {
uni.setStorageSync("isstaffchange", true) uni.setStorageSync("isstaffchange", true)
@ -399,6 +535,7 @@
form.weight = Number(form.weight) form.weight = Number(form.weight)
form.showheight = form.height + 'cm'; form.showheight = form.height + 'cm';
form.showweight = form.weight + 'kg'; form.showweight = form.weight + 'kg';
sex.value = data.sex
} else { } else {
uni.setStorageSync("isstaffchange", false) uni.setStorageSync("isstaffchange", false)
form.tel = uni.getStorageSync('tel') form.tel = uni.getStorageSync('tel')

View File

@ -12,14 +12,9 @@
</view> </view>
<view class="small-title"> <view class="small-title">
{{ uni.getStorageSync('nostaffmessage') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!' {{ uni.getStorageSync('ygbgsq') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!'
: '尊敬的用户,您的员工入驻申请已提交成功,我们已收到。审核结果将及时通知您,欢迎加入护理单元大家庭!' }} : '尊敬的用户,您的员工入驻申请已提交成功,我们已收到。审核结果将及时通知您,欢迎加入护理单元大家庭!' }}
</view> </view>
<view class="normal">
<text>
</text>
</view>
</view> </view>
<view class="bottom-button" @click="jumpto"> <view class="bottom-button" @click="jumpto">
返回首页 返回首页

View File

@ -42,8 +42,17 @@
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<!-- <view class="white-photo" @click="getMessage(guardianHeadPath)" style="margin-top: 20rpx;">
<view class="photo-left">
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
</view>
<view style="position: relative;">
<image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="guardianHeadPath ? guardianHeadPath : 'https://www.focusnu.com/media/default/touxiang.png'" />
</view>
</view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<view v-for="(item,index) in nameArray1" :key="index" class="one" <view v-for="(item,index) in nameArray1" :key="index" class="one"
@ -109,14 +118,29 @@
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<!-- <view class="content-title" style="margin: 20rpx 0;"> <!-- <view class="white-photo" style="margin-top: 30rpx;">
<view class="photo-left">
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
</view>
<view style="position: relative;">
<image class="photo" style="width: 200rpx;border-radius: 50%;"
:src="headPath ?headPath : (textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png')" />
</view>
</view>
<view class="content-title" style="margin: 20rpx 0;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight">确认身份证信息</view> <view class="content-weight">确认身份证信息</view>
</view> --> </view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<view class="one" style="justify-content: space-between;" @click="getMessage( headPath)" >
<view class="one-left">头像</view>
<view class="one-right">
<image class="photo" style="width: 80rpx;height: 80rpx;border-radius: 50%;border: 1px solid #666;"
:src="headPath ?headPath : (textArray[1]=='女'?'https://www.focusnu.com/media/directive/index/nv.png':'https://www.focusnu.com/media/directive/index/nan.png')" />
</view>
</view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -172,6 +196,9 @@
const headImge0 = ref(""); const headImge0 = ref("");
const headImge1 = ref(""); const headImge1 = ref("");
const headPath = ref("");
const guardianHeadPath = ref("");
const fontphoto0 = ref("") const fontphoto0 = ref("")
const endphoto0 = ref("") const endphoto0 = ref("")
@ -257,6 +284,7 @@
fontphoto.value = data.idCardPositive fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative endphoto.value = data.idCardNegative
specialImge.value = data.idCardPositive specialImge.value = data.idCardPositive
headPath.value = data.headPath?`${media_base_url}${data.headPath}`:'';
}else{ }else{
console.log(123) console.log(123)
textArray1[0] = data.guardianName; textArray1[0] = data.guardianName;
@ -265,6 +293,7 @@
textArray1[3] = data.guardianHomeAddress; textArray1[3] = data.guardianHomeAddress;
textArray1[4] = data.guardianWorkUnit; textArray1[4] = data.guardianWorkUnit;
headImge1.value = `${media_base_url}${data.guardianIdCardPositive}`; headImge1.value = `${media_base_url}${data.guardianIdCardPositive}`;
guardianHeadPath.value = `${media_base_url}${data.guardianHeadPath}`;
} }
console.log(textArray1,11111111111) console.log(textArray1,11111111111)
getManyDictItems( getManyDictItems(

View File

@ -61,7 +61,7 @@
</view> </view>
<view class=""> <view class="">
<text style="font-weight: 600;"> <text style="font-weight: 600;white-space: nowrap;">
{{ getAge(item.elderInfo.dateOfBirth) }} {{ getAge(item.elderInfo.dateOfBirth) }}
</text> </text>

View File

@ -1,5 +1,5 @@
// 全局请求封装 // 全局请求封装
// export const base_url = 'http://192.168.2.17:8081/opeapi/' // export const base_url = 'http://192.168.2.18:8081/opeapi/'
export const base_url = 'https://www.focusnu.com/opeapi' export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/' export const media_base_url = 'https://www.focusnu.com/media/'
@ -7,7 +7,6 @@ export const media_base_url = 'https://www.focusnu.com/media/'
// export const base_url = 'http://192.168.2.27:8081/opeapi' // export const base_url = 'http://192.168.2.27:8081/opeapi'
// 请求超出时间 // 请求超出时间
const timeout = 5000 const timeout = 5000
// 需要修改token和根据实际修改请求头 // 需要修改token和根据实际修改请求头
export default (params) => { export default (params) => {
let url = params.url; let url = params.url;