This commit is contained in:
parent
1afcf955bc
commit
9455c44de0
|
|
@ -138,15 +138,12 @@
|
|||
</view>
|
||||
<view class="white-photo" @click="getMessage(headPath)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
|
||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="headPath ? headPath : `https://www.focusnu.com/media/directive/index/nan.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'" />
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -65,15 +65,14 @@
|
|||
<view class="white-message">
|
||||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(2)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-font">请上传头像</view>
|
||||
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
|
||||
<view class="photo-font">请上传头像(选填)</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="form.headPath ? `${media_base_url}${form.headPath}` : `https://www.focusnu.com/media/directive/index/nan.png`" />
|
||||
<image v-if="!form.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'" />
|
||||
<image class="photo" style="width: 200rpx;border-radius: 50%;"
|
||||
:src="form.headPath ? `${media_base_url}${form.headPath}` :
|
||||
(form.sex=='男'?'https://www.focusnu.com/media/directive/index/nan.png':
|
||||
'https://www.focusnu.com/media/directive/index/nv.png')" />
|
||||
</view>
|
||||
</view>
|
||||
<view @click="openpopupshow">
|
||||
|
|
@ -650,6 +649,7 @@
|
|||
form.orgPropertyType = data.orgPropertyType;
|
||||
form.orgBuildingArea = data.orgBuildingArea;
|
||||
form.headPath = data.headPath;
|
||||
form.sex = data.sex;
|
||||
} else if (uni.getStorageSync('baddata')) {
|
||||
let data = uni.getStorageSync('baddata');
|
||||
if (data.orgProvince_dictText) {
|
||||
|
|
@ -665,6 +665,7 @@
|
|||
form.orgPropertyType = data.orgPropertyType;
|
||||
form.orgBuildingArea = data.orgBuildingArea;
|
||||
form.headPath = data.headPath;
|
||||
form.sex = data.sex;
|
||||
} else {
|
||||
|
||||
form.orgLeaderPhone = uni.getStorageSync('tel');
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<view class="shu"></view>
|
||||
<view class="content-weight">监护人基本信息</view>
|
||||
</view>
|
||||
<view class="white-photo" @click="selectphoto()">
|
||||
<view class="white-photo" @click="selectphoto(1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">人像面</view>
|
||||
<view class="photo-font">请上传身份证人像面</view>
|
||||
|
|
@ -37,6 +37,17 @@
|
|||
</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>
|
||||
<!-- <view class="one">
|
||||
|
|
@ -137,8 +148,8 @@
|
|||
const photoclick = (element) => {
|
||||
if (element==2) {
|
||||
uni.previewImage({
|
||||
urls: [specialImgeshow.value], // 必填,所有要预览的图片地址数组
|
||||
current: specialImgeshow.value, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
urls: targetphoto.value==1?[media_base_url + data.guardianIdCardPositive]:[media_base_url + data.guardianHeadPath], // 必填,所有要预览的图片地址数组
|
||||
current: targetphoto.value==1?media_base_url + data.guardianIdCardPositive:media_base_url + data.guardianHeadPath, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
indicator: 'default', // 可选,指示器样式,H5/App 有效,值为 'default'(圆点)或 'number'(数字)
|
||||
longPressActions: { // 可选,仅 App 支持,长按图片时弹出的操作项
|
||||
itemList: ['保存图片到相册'],
|
||||
|
|
@ -149,9 +160,15 @@
|
|||
count: 1,
|
||||
sourceType: element == 0 ? ['camera'] : ['album'],
|
||||
success: chooseRes => {
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
|
||||
});
|
||||
if(targetphoto.value==1){
|
||||
uni.navigateTo({
|
||||
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 => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -161,20 +178,30 @@
|
|||
|
||||
}
|
||||
const specialImge = ref("")
|
||||
const guardianHeadPath = ref("")
|
||||
const targetphoto = ref(0)
|
||||
|
||||
const uping = ref(true)
|
||||
const selectphoto = () => {
|
||||
const selectphoto = (number) => {
|
||||
// console.log("0000",bottomshow.value)
|
||||
if (!uping.value) {
|
||||
return
|
||||
}
|
||||
|
||||
if (specialImge.value) {
|
||||
|
||||
bottomshow.value = true;
|
||||
|
||||
} else {
|
||||
angetMessage()
|
||||
targetphoto.value = number
|
||||
if(number==1){
|
||||
if (specialImge.value) {
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
angetMessage()
|
||||
}
|
||||
}else{
|
||||
if (guardianHeadPath.value) {
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
angetMessage()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// 拍照并上传
|
||||
function angetMessage() {
|
||||
|
|
@ -185,9 +212,16 @@
|
|||
success: chooseRes => {
|
||||
// tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
// 拍照成功后,调用上传函数
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
|
||||
});
|
||||
if(targetphoto.value==1){
|
||||
uni.navigateTo({
|
||||
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 => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -252,6 +286,7 @@
|
|||
data.guardianWorkUnit = form.workUnit
|
||||
data.relationship = form.relationship
|
||||
data.guardianIdCardPositive = specialImge.value
|
||||
data.guardianHeadPath = guardianHeadPath.value
|
||||
data.modifyType = "jhr"
|
||||
const urlpost = `${base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
|
||||
uni.request({
|
||||
|
|
@ -305,6 +340,7 @@
|
|||
data.guardianWorkUnit = form.workUnit
|
||||
data.relationship = form.relationship
|
||||
data.guardianIdCardPositive = specialImge.value
|
||||
data.guardianHeadPath = guardianHeadPath.value
|
||||
const urlpost = `${base_url}/api/elderInfo/addElder?ukey=${ukey.value}`;
|
||||
uni.request({
|
||||
url: urlpost,
|
||||
|
|
@ -427,6 +463,7 @@
|
|||
form[key] = data[key] || ""
|
||||
})
|
||||
specialImge.value = data.guardianIdCardPositive
|
||||
guardianHeadPath.value = data.guardianHeadPath
|
||||
specialImgeshow.value = media_base_url + data.guardianIdCardPositive
|
||||
console.log("????", uni.getStorageSync('allinfo'))
|
||||
}
|
||||
|
|
@ -436,6 +473,33 @@
|
|||
function uploadImage(filePath) {
|
||||
uping.value = false;
|
||||
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({
|
||||
url: `${base_url}/api/ocr/idCard`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
|
|
|
|||
|
|
@ -54,6 +54,15 @@
|
|||
</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>
|
||||
<view v-for="(item,index) in nameArray" :key="index" class="one"
|
||||
|
|
@ -90,9 +99,8 @@
|
|||
const show = ref(false);
|
||||
const content = ref("");
|
||||
const headImge0 = ref("");
|
||||
|
||||
const guardianHeadPath = ref("");
|
||||
const statusarray = ["loading", "success", "fail"]
|
||||
|
||||
const nameArray = [ "姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
|
||||
const textArray = reactive(["", "", "", "", ""]);
|
||||
|
||||
|
|
@ -155,6 +163,7 @@
|
|||
textArray[3] = data.guardianHomeAddress;
|
||||
textArray[4] = data.guardianWorkUnit;
|
||||
headImge0.value = `${media_base_url}${data.guardianIdCardPositive}`;
|
||||
guardianHeadPath.value = `${media_base_url}${data.guardianHeadPath}`;
|
||||
})
|
||||
const changeMessage = () => {
|
||||
if (alldata.value.guardianModifyStatus == '1') {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,17 @@
|
|||
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" />
|
||||
</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重叠问题 -->
|
||||
<view style="height: 10rpx;"></view>
|
||||
|
||||
|
|
@ -64,6 +73,8 @@
|
|||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="white-content">
|
||||
|
||||
|
|
@ -111,6 +122,14 @@
|
|||
|
||||
<view class="white-message">
|
||||
<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"
|
||||
@click="openLook(textArray[index])">
|
||||
<view class="one-left">{{item}}</view>
|
||||
|
|
@ -141,6 +160,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
|
||||
|
|
@ -227,10 +247,25 @@
|
|||
}
|
||||
const photoclick = (element) => {
|
||||
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({
|
||||
urls: [headImge.value, backImge.value, specialImgeshow.value], // 必填,所有要预览的图片地址数组
|
||||
current: targetphoto.value ? (targetphoto.value == 1 ? backImge.value : specialImgeshow
|
||||
.value) : headImge.value, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
urls: obj.a, // 必填,所有要预览的图片地址数组
|
||||
current: obj.a[0], // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
indicator: 'default', // 可选,指示器样式,H5/App 有效,值为 'default'(圆点)或 'number'(数字)
|
||||
longPressActions: { // 可选,仅 App 支持,长按图片时弹出的操作项
|
||||
itemList: ['保存图片到相册'],
|
||||
|
|
@ -242,9 +277,15 @@
|
|||
sourceType: element == 0 ? ['camera'] : ['album'],
|
||||
success: chooseRes => {
|
||||
tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=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({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -265,28 +306,39 @@
|
|||
// specialImge
|
||||
targetphoto.value = number
|
||||
if (!number) {
|
||||
if (headImge.value) {
|
||||
|
||||
if (fontphoto.value) {
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
getMessage()
|
||||
}
|
||||
} else if (number == 1) {
|
||||
if (backImge.value) {
|
||||
|
||||
if (endphoto.value) {
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
getMessage()
|
||||
}
|
||||
} else if (number == 2) {
|
||||
if (specialImge.value) {
|
||||
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
isspecial.value = true;
|
||||
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 => {
|
||||
tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
// 拍照成功后,调用上传函数
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=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({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -311,6 +370,8 @@
|
|||
const specialImgeshow = ref("");
|
||||
const headImge = ref("");
|
||||
const backImge = ref("");
|
||||
const guardianHeadPath = ref("");
|
||||
const headPath = ref("");
|
||||
// 日期转换
|
||||
function formatChineseDate(chineseDate) {
|
||||
return chineseDate.replace(/(\d+)年(\d+)月(\d+)日/, (_, y, m, d) => {
|
||||
|
|
@ -332,6 +393,41 @@
|
|||
// 上传图片到服务器
|
||||
function uploadImage(filePath) {
|
||||
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.uploadFile({
|
||||
url: `${base_url}/api/ocr/idCard`, // 替换为您的POST接口地址
|
||||
|
|
@ -361,7 +457,8 @@
|
|||
form.homeAddress = father.address
|
||||
savephoto(filePath, 2);
|
||||
}
|
||||
isspecial.value = false
|
||||
isspecial.value = false;
|
||||
uping.value = true;
|
||||
} else {
|
||||
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
|
||||
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
|
||||
|
|
@ -409,6 +506,7 @@
|
|||
})
|
||||
uping.value = true;
|
||||
}
|
||||
uping.value = true;
|
||||
}
|
||||
|
||||
},
|
||||
|
|
@ -482,6 +580,12 @@
|
|||
} else if (type == 2) {
|
||||
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;
|
||||
},
|
||||
fail: err => {
|
||||
|
|
@ -557,7 +661,6 @@
|
|||
})
|
||||
}
|
||||
const next = () => {
|
||||
|
||||
if (!specialImge.value) {
|
||||
uni.showToast({
|
||||
title: '请上传监护人身份证人像面',
|
||||
|
|
@ -584,19 +687,20 @@
|
|||
icon: 'none'
|
||||
})
|
||||
return
|
||||
} else if (showlevellist.value.length && form.disabilityReimbursementTypename == '') {
|
||||
uni.showToast({
|
||||
title: '请选择失能等级',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
} else if (showlevellist.value.length && form.disabilityReimbursementTypename == '') {
|
||||
uni.showToast({
|
||||
title: '请选择失能等级',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(!isValid18DigitNumber(textArray[2])) {
|
||||
uni.showToast({
|
||||
title: '长者身份证号格式错误',
|
||||
icon: 'none'
|
||||
})
|
||||
} return
|
||||
return
|
||||
}
|
||||
|
||||
if (canshow.value) {
|
||||
if (!form.name) {
|
||||
|
|
@ -673,7 +777,12 @@
|
|||
data.issuingAuthority = textArray[6]
|
||||
|
||||
data.startTime = start;
|
||||
data.endTime = end
|
||||
data.endTime = end;
|
||||
data.headPath = headPath.value
|
||||
if(canshow.value){
|
||||
data.guardianHeadPath = guardianHeadPath.value
|
||||
}
|
||||
|
||||
if (data.endTime == '长期') {
|
||||
data.endTime = swapLongTerm(end)
|
||||
}
|
||||
|
|
@ -840,6 +949,7 @@
|
|||
canshow.value = false;
|
||||
fontphoto.value = data.idCardPositive
|
||||
endphoto.value = data.idCardNegative
|
||||
headPath.value = data.headPath
|
||||
specialImge.value = data.guardianIdCardPositive
|
||||
textArray[0] = data.name
|
||||
textArray[1] = data.sex
|
||||
|
|
|
|||
|
|
@ -69,6 +69,13 @@
|
|||
</view> -->
|
||||
<view class="white-message">
|
||||
<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"
|
||||
@click="openLook(textArray[index])">
|
||||
<view class="one-left">{{item}}</view>
|
||||
|
|
@ -118,6 +125,8 @@
|
|||
|
||||
const fontphoto0 = ref("")
|
||||
const endphoto0 = ref("")
|
||||
const headPath = ref("")
|
||||
|
||||
const imgArray = ref(["", "", "", ""])
|
||||
|
||||
const nameArray0 = ["开户行", "开户行卡号"];
|
||||
|
|
@ -197,6 +206,7 @@
|
|||
fontphoto.value = data.idCardPositive
|
||||
endphoto.value = data.idCardNegative
|
||||
specialImge.value = data.idCardPositive
|
||||
headPath.value = data.headPath
|
||||
getManyDictItems(
|
||||
`medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
|
||||
).then((res => {
|
||||
|
|
|
|||
|
|
@ -462,7 +462,7 @@
|
|||
data.cardFmPath = endphoto.value
|
||||
uni.setStorageSync("backhuancun", data)
|
||||
uni.navigateTo({
|
||||
url: "/pages/addstaff/bankcard"
|
||||
url: "/pages/addstaff/information"
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -27,29 +27,30 @@
|
|||
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
|
||||
</view>
|
||||
<template>
|
||||
<view v-if="dexcard==0">
|
||||
<view v-if="dexcard==1">
|
||||
<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-bgc">
|
||||
驳回原因:{{contentred}}
|
||||
</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>
|
||||
<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"
|
||||
@click="openLook(textArray1[index])">
|
||||
<view class="one-left">{{item}}</view>
|
||||
|
|
@ -58,21 +59,31 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: center;">
|
||||
<view class="finish-button" @click="dexcard = 1;gotop()">
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
|
||||
<view class="back-button" @click="dexcard = 0;gotop()">
|
||||
上一步
|
||||
</view>
|
||||
<view class="finish-button" @click="dexcard = 2;gotop()">
|
||||
下一步
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<template>
|
||||
<view v-if="dexcard==1">
|
||||
<view v-if="dexcard==0">
|
||||
<view class="white-content">
|
||||
<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 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="white-photo" @click="getMessage(headImge)">
|
||||
<view class="photo-left">
|
||||
|
|
@ -116,11 +127,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
|
||||
<view class="back-button" @click="dexcard = 0;gotop()">
|
||||
上一步
|
||||
</view>
|
||||
<view class="finish-button" @click="dexcard = 2;gotop()">
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: center;">
|
||||
<view class="finish-button" @click="dexcard = 1;gotop()">
|
||||
下一步
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -137,7 +145,7 @@
|
|||
</view>
|
||||
<view class="white-photo" @click="getMessage(fontphoto0,alldata.bankZmPath,1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">银行卡正面</view>
|
||||
<view class="photo-weight">银行卡</view>
|
||||
<!-- <view class="photo-font">请上传银行卡正面</view> -->
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
|
|
@ -151,11 +159,10 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view class="white-photo" style="margin-top: 30rpx;"
|
||||
<!-- <view class="white-photo" style="margin-top: 30rpx;"
|
||||
@click="getMessage(endphoto0,alldata.bankFmPath,1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">银行卡反面</view>
|
||||
<!-- <view class="photo-font">请上传银行卡反面</view> -->
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
|
|
@ -166,8 +173,7 @@
|
|||
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" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-title" style="margin: 30rpx 0;">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">银行卡信息</view>
|
||||
|
|
@ -191,7 +197,7 @@
|
|||
<view class="white-photo"
|
||||
@click="getMessage((imgArray[0] ? `${media_base_url}${imgArray[0]}` : ''),imgArray[0],1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">健康证正面</view>
|
||||
<view class="photo-weight">健康证</view>
|
||||
<!-- <view class="photo-font">请上传健康证正面</view> -->
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
|
|
@ -267,22 +273,7 @@
|
|||
</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 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("backhuancun", {})
|
||||
uni.navigateTo({
|
||||
url: `/pages/addstaff/information`
|
||||
url: `/pages/addstaff/IDcard`
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
</view>
|
||||
<view class="white-photo" @click="selectphoto(0)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">银行卡正面</view>
|
||||
<view class="photo-font">请上传银行卡正面</view>
|
||||
<view class="photo-weight">银行卡</view>
|
||||
<view class="photo-font">请上传银行卡</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
</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-weight">银行卡反面</view>
|
||||
<view class="photo-font">请上传银行卡反面</view>
|
||||
|
|
@ -51,10 +51,10 @@
|
|||
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-title" style="margin: 20rpx 0;">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">银行卡信息</view>
|
||||
<view class="content-weight">银行卡信息(识别信息可能有误,可编辑)</view>
|
||||
</view>
|
||||
<view class="white-message">
|
||||
<view>
|
||||
|
|
@ -118,7 +118,6 @@
|
|||
const states = ["审核中", "审核未通过", "审核通过"];
|
||||
|
||||
const fontphoto = ref("");
|
||||
const endphoto = ref("");
|
||||
|
||||
const statesTarget = ref(0);
|
||||
const shenhe = () => {
|
||||
|
|
@ -294,13 +293,8 @@
|
|||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
headImge.value = filePath;
|
||||
} else {
|
||||
endphoto.value = JSON.parse(uploadRes.data).message
|
||||
backImge.value = filePath;
|
||||
}
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
headImge.value = filePath;
|
||||
uni.hideLoading()
|
||||
if (JSON.parse(uploadRes.data).code == 401) {
|
||||
uni.uploadFile({
|
||||
|
|
@ -314,11 +308,7 @@
|
|||
biz: path
|
||||
},
|
||||
success: uploadRes => {
|
||||
if (!type) {
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
} else {
|
||||
endphoto.value = JSON.parse(uploadRes.data).message
|
||||
}
|
||||
fontphoto.value = JSON.parse(uploadRes.data).message
|
||||
uping.value = true;
|
||||
},
|
||||
fail: err => {
|
||||
|
|
@ -392,7 +382,6 @@
|
|||
data.openingBank = textArray[0]
|
||||
data.bankCard = textArray[1]
|
||||
data.bankZmPath = fontphoto.value
|
||||
data.bankFmPath = endphoto.value
|
||||
uni.setStorageSync("backhuancun", data)
|
||||
uni.navigateTo({
|
||||
url: "/pages/addstaff/healthcertificate"
|
||||
|
|
@ -413,7 +402,6 @@
|
|||
data.openingBank = textArray[0];
|
||||
data.bankCard = textArray[1];
|
||||
data.bankZmPath = fontphoto.value;
|
||||
data.bankFmPath = endphoto.value;
|
||||
|
||||
uni.setStorageSync("backhuancun", data)
|
||||
}
|
||||
|
|
@ -426,13 +414,11 @@
|
|||
textArray[0] = data.openingBank;
|
||||
textArray[1] = data.bankCard;
|
||||
fontphoto.value = data.bankZmPath
|
||||
endphoto.value = data.bankFmPath
|
||||
} else if (uni.getStorageSync('baddata')) {
|
||||
let data = uni.getStorageSync('baddata');
|
||||
textArray[0] = data.openingBank;
|
||||
textArray[1] = data.bankCard;
|
||||
fontphoto.value = data.bankZmPath
|
||||
endphoto.value = data.bankFmPath
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -100,24 +100,21 @@
|
|||
</view>
|
||||
|
||||
|
||||
<view class="content-title">
|
||||
<!-- <view class="content-title">
|
||||
<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>
|
||||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(4)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-font">请上传头像</view>
|
||||
<view class="photo-weight" style="margin-left: -10rpx;">头像</view>
|
||||
<view class="photo-font" style="margin-left: -10rpx;">请上传头像(选填)</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 style="position: relative; ">
|
||||
<image class="photo" style="width: 200rpx;border-radius: 50%;"
|
||||
: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')" />
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<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 selectphoto = (number) => {
|
||||
|
||||
if (!uping.value) {
|
||||
return
|
||||
}
|
||||
|
|
@ -213,7 +209,7 @@
|
|||
tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
if(imgetarget.value == 4){
|
||||
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{
|
||||
uni.navigateTo({
|
||||
|
|
@ -227,19 +223,24 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
// 拍照并上传
|
||||
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`
|
||||
});
|
||||
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({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -313,7 +314,7 @@
|
|||
const ukey = ref(
|
||||
`${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 = () => {
|
||||
// uni.showToast({
|
||||
// title: "999999999999999999",
|
||||
|
|
@ -364,7 +365,7 @@
|
|||
}
|
||||
if (res.success) {
|
||||
uni.setStorageSync('changeyuangongorgCode', "");
|
||||
gopush()
|
||||
gopush(data.modifyStatus)
|
||||
}
|
||||
// uni.requestSubscribeMessage({
|
||||
// // 这里填后台申请好的 templateId 数组
|
||||
|
|
@ -391,6 +392,7 @@
|
|||
// }
|
||||
})
|
||||
}
|
||||
const sex = ref("")
|
||||
onLoad(() => {
|
||||
if (uni.getStorageSync('backhuancun').healthZmPath) {
|
||||
let data = uni.getStorageSync('backhuancun');
|
||||
|
|
@ -400,6 +402,7 @@
|
|||
imgArray[2] = data.qualificationPath
|
||||
imgArray[3] = data.noCrimeCertificate
|
||||
imgArray[4] = data?.headPath
|
||||
sex.value = data.sex
|
||||
} else if (uni.getStorageSync('baddata')) {
|
||||
let data = uni.getStorageSync('baddata');
|
||||
console.log(data)
|
||||
|
|
@ -408,11 +411,12 @@
|
|||
imgArray[2] = data.qualificationPath
|
||||
imgArray[3] = data.noCrimeCertificate
|
||||
imgArray[4] = data?.headPath
|
||||
sex.value = data.sex
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const gopush = () => {
|
||||
const gopush = (d) => {
|
||||
console.log("????", uni.getStorageSync('nostaffmessage'))
|
||||
|
||||
|
||||
|
|
@ -457,7 +461,7 @@
|
|||
],
|
||||
success: (res) => {
|
||||
uni.setStorageSync(
|
||||
'nostaffmessage', data.modifyStatus==1?true:false);
|
||||
'ygbgsq', d==1?true:false);
|
||||
uni.reLaunch({
|
||||
url: `/pages/addstaff/successpush`
|
||||
});
|
||||
|
|
@ -484,6 +488,8 @@
|
|||
|
||||
|
||||
} else {
|
||||
uni.setStorageSync(
|
||||
'ygbgsq', d==1?true:false);
|
||||
uni.reLaunch({
|
||||
url: `/pages/addstaff/successpush`
|
||||
});
|
||||
|
|
|
|||
|
|
@ -31,8 +31,18 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="white-message">
|
||||
<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-left">婚否</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none; " class="one-right" type="text"
|
||||
|
|
@ -131,6 +141,7 @@
|
|||
下一步
|
||||
</view>
|
||||
</view>
|
||||
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow" borderRadius="20"></u-action-sheet>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -144,6 +155,7 @@
|
|||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
media_base_url,
|
||||
base_url
|
||||
} from '@/request/index.js';
|
||||
import {
|
||||
|
|
@ -151,7 +163,16 @@
|
|||
} from './api/addjigou.js'
|
||||
import model from "@/compontent/public/model.vue"
|
||||
|
||||
|
||||
const bottomlist = [{
|
||||
text: '拍照',
|
||||
fontSize: 40
|
||||
}, {
|
||||
text: '从相册选择',
|
||||
fontSize: 40
|
||||
}, {
|
||||
text: '图片预览',
|
||||
fontSize: 40
|
||||
}]
|
||||
// const showmarry
|
||||
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) => {
|
||||
form.height = item[0].value
|
||||
form.showheight = item[0].label
|
||||
|
|
@ -359,7 +495,7 @@
|
|||
|
||||
uni.setStorageSync("backhuancun", merged2);
|
||||
uni.navigateTo({
|
||||
url: "/pages/addstaff/IDcard"
|
||||
url: "/pages/addstaff/bankcard"
|
||||
});
|
||||
|
||||
}
|
||||
|
|
@ -369,7 +505,7 @@
|
|||
const goBack = () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
const sex = ref("")
|
||||
onLoad(() => {
|
||||
if (uni.getStorageSync('baddata')) {
|
||||
uni.setStorageSync("isstaffchange", true)
|
||||
|
|
@ -399,6 +535,7 @@
|
|||
form.weight = Number(form.weight)
|
||||
form.showheight = form.height + 'cm';
|
||||
form.showweight = form.weight + 'kg';
|
||||
sex.value = data.sex
|
||||
} else {
|
||||
uni.setStorageSync("isstaffchange", false)
|
||||
form.tel = uni.getStorageSync('tel')
|
||||
|
|
|
|||
|
|
@ -12,14 +12,9 @@
|
|||
</view>
|
||||
|
||||
<view class="small-title">
|
||||
{{ uni.getStorageSync('nostaffmessage') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!'
|
||||
{{ uni.getStorageSync('ygbgsq') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!'
|
||||
: '尊敬的用户,您的员工入驻申请已提交成功,我们已收到。审核结果将及时通知您,欢迎加入护理单元大家庭!' }}
|
||||
</view>
|
||||
<view class="normal">
|
||||
<text>
|
||||
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-button" @click="jumpto">
|
||||
返回首页
|
||||
|
|
|
|||
|
|
@ -42,8 +42,17 @@
|
|||
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" />
|
||||
</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>
|
||||
<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%);"
|
||||
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
||||
</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="content-weight">确认身份证信息</view>
|
||||
</view> -->
|
||||
<view class="white-message">
|
||||
<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"
|
||||
@click="openLook(textArray[index])">
|
||||
<view class="one-left">{{item}}</view>
|
||||
|
|
@ -172,6 +196,9 @@
|
|||
|
||||
const headImge0 = ref("");
|
||||
const headImge1 = ref("");
|
||||
const headPath = ref("");
|
||||
const guardianHeadPath = ref("");
|
||||
|
||||
|
||||
const fontphoto0 = ref("")
|
||||
const endphoto0 = ref("")
|
||||
|
|
@ -257,6 +284,7 @@
|
|||
fontphoto.value = data.idCardPositive
|
||||
endphoto.value = data.idCardNegative
|
||||
specialImge.value = data.idCardPositive
|
||||
headPath.value = data.headPath?`${media_base_url}${data.headPath}`:'';
|
||||
}else{
|
||||
console.log(123)
|
||||
textArray1[0] = data.guardianName;
|
||||
|
|
@ -265,6 +293,7 @@
|
|||
textArray1[3] = data.guardianHomeAddress;
|
||||
textArray1[4] = data.guardianWorkUnit;
|
||||
headImge1.value = `${media_base_url}${data.guardianIdCardPositive}`;
|
||||
guardianHeadPath.value = `${media_base_url}${data.guardianHeadPath}`;
|
||||
}
|
||||
console.log(textArray1,11111111111)
|
||||
getManyDictItems(
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
</view>
|
||||
<view class="">
|
||||
<text style="font-weight: 600;">
|
||||
<text style="font-weight: 600;white-space: nowrap;">
|
||||
{{ getAge(item.elderInfo.dateOfBirth) }}岁
|
||||
</text>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 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'
|
||||
// 请求超出时间
|
||||
const timeout = 5000
|
||||
|
||||
// 需要修改token,和根据实际修改请求头
|
||||
export default (params) => {
|
||||
let url = params.url;
|
||||
|
|
|
|||
Loading…
Reference in New Issue