9999999999

This commit is contained in:
Teng 2025-08-21 16:52:59 +08:00
parent cb933368ba
commit 63d54a14af
57 changed files with 4797 additions and 562 deletions

View File

@ -116,6 +116,41 @@
"navigationBarTitleText": "选择护理单元"
}
},
{
"path": "pages/addstaff/all",
"style": {
"navigationBarTitleText": "入职登记表"
}
},
{
"path": "pages/addstaff/information",
"style": {
"navigationBarTitleText": "入职登记表"
}
},
{
"path": "pages/addstaff/IDcard",
"style": {
"navigationBarTitleText": "入职登记表"
}
},
{
"path": "pages/addstaff/bankcard",
"style": {
"navigationBarTitleText": "入职登记表"
}
},
{
"path": "pages/addstaff/healthcertificate",
"style": {
"navigationBarTitleText": "入职登记表"
}
},
{
"path": "pages/addjigou/all",
"style": {

View File

@ -13,11 +13,7 @@
<view class="contentred-bgc">
驳回原因{{contentred}}
</view>
</view>
<!-- <view class="finish-button" @click="next" v-if="special && (alldata.modifyStatus === `0`) && alldata.ischange" >
修改信息
</view> -->
<view class="white-content">
<view class="content-title" :style="special?{height: `100rpx`}:{height: `140rpx`}" style="position: relative;margin-bottom: 20rpx;z-index: 999;">
<view class="shu"></view>
@ -95,7 +91,6 @@
<view v-for="(item,index) in nameArray0" :key="index" class="one"
@click="openLook(textArray0[index])">
<view class="one-left">{{item}}</view>
<!-- <view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view> -->
<view class="one-right">{{textArray0[index] ? textArray0[index] : "自动获取" }}</view>
</view>
</view>
@ -117,13 +112,7 @@
</view>
</view>
</view>
<view style="display: flex;width: 100%;margin-top: 40rpx;">
<!-- <view class="finish-button" v-if="alldata.status!=3 && alldata.status!=0" >
进入机构端
</view> -->
</view>
<view style="display: flex;width: 100%;margin-top: 40rpx;"></view>
</div>
</template>
@ -168,7 +157,6 @@
const endphoto = ref("");
const statesTarget = ref(0);
//
const tempImagePath = ref('')
@ -191,25 +179,6 @@
})
}
// const next = () => {
// let trans = alldata.value
// trans.id = null
// uni.setStorageSync("baddata", trans)
// uni.setStorageSync('specicalid', trans.id);
// uni.setStorageSync("backhuancun", {})
// uni.navigateTo({
// url: `/pages/addjigou/name`
// });
// // uni.setStorageSync('specicalid', alldata.value.id);
// // uni.setStorageSync("baddata",alldata.value)
// // uni.setStorageSync("backhuancun",{})
// // uni.navigateTo({
// // url: `/pages/addjigou/name`
// // });
// }
function isAtLeastEightChars(str) {
return typeof str === 'string' && str.length >= 12;
}
@ -230,11 +199,8 @@
special.value = true
}
alldata.value = JSON.parse(options.element);
statesTarget.value = Number(alldata.value.status)
// console.log("????",alldata.value,statesTarget.value)
let data = alldata.value
// console.log("????",data)
if(data.content){
contentred.value = data.content
}
@ -248,13 +214,11 @@
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson;
headImge0.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
// console.log("????",data.orgProvince_dictText,data.orgCity_dictText,data.orgDistrict_dictText)
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``);
textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader;
@ -274,15 +238,11 @@
width: 100%;
background-color: #F7F7F7;
position: relative;
// box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content {
width: 90%;
margin-left: 5%;
// margin-top: 30rpx;
// height: 1200rpx;
border-radius: 35rpx;
// background-color: rgb(245, 251, 254);
.content-title {
display: flex;
@ -292,11 +252,7 @@
font-weight: 600;
.content-weight {
// font-size: 35rpx;
// margin-left: 10rpx;
font-size: 32rpx;
// margin-top: 20rpx;
}
.content-img {
@ -311,13 +267,9 @@
.white-photo {
width: 100%;
// margin-left: 5%;
// margin-top: 30rpx;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
align-items: center;
display: flex;
@ -330,38 +282,19 @@
.white-message {
width: 100%;
// margin-left: 5%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
// height: 800rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
// align-items: center;
display: flex;
flex-direction: column;
.message-title {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
.message-weight {
font-size: 30rpx;
// font-weight: 600;
}
}
.one {
width: 90%;
margin-left: 5%;
// border-bottom: 1rpx solid #F7F7F7;
height: 100rpx;
display: flex;
justify-content: space-between;
@ -410,22 +343,6 @@
color: #999999;
}
// .finish-button {
// display: flex;
// justify-content: center;
// align-items: center;
// width: 92%;
// height: 90rpx;
// margin: 0rpx auto;
// margin-bottom: 10rpx;
// margin-top: 20rpx;
// color: #fff;
// background: linear-gradient(to right, #00C9FF, #0076FF);
// border-radius: 37rpx;
// font-size: 35rpx;
// z-index: 1;
// }
.title-back {
margin-top: 100rpx;
width: 100%;
@ -447,42 +364,6 @@
}
}
.rightStautes {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background-color: #FF913A;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesred {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #FF4A76, #FF553A);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesblue {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #00C9FF, #0076FF);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.shu {
width: 14rpx;
height: 36rpx;
@ -511,7 +392,6 @@
}
.contentred{
width: 90%;
border: dashed 3rpx #FF4B2F;
border-radius: 15rpx;
margin: 15rpx 0;

View File

@ -1,6 +1,5 @@
<template>
<div class="container">
<!-- <u-modal v-model="show" :content="content"></u-modal> -->
<model :show="show" @close="show=false" :content="content" />
<view class="title-back">
<view class="left-father" @click="goBack">
@ -36,7 +35,6 @@
<view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])">
<view class="one-left">{{item}}</view>
<!-- <view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view> -->
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
</view>
</view>
@ -133,12 +131,9 @@
sourceType: ['album', 'camera'],
success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0]
//
//
uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
});
// uploadImage(tempImagePath.value)
},
fail: err => {
console.error('拍照失败:', err)
@ -174,7 +169,6 @@
return
}
console.log("营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data)
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.companyName) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.companyName;
@ -184,7 +178,6 @@
headImge.value = filePath;
savephoto(filePath);
} else {
// 1500ms
uni.showToast({
title: '识别失败',
icon: 'error',
@ -193,26 +186,6 @@
uping.value = true;
uni.hideLoading()
}
// if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
// textArray[4] = father.birthDate;
// textArray[5] = father.address;
// uni.showToast({
// title: '',
// })
//
// uni.hideLoading()
// } else {
// let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
// textArray[6] = father.issueAuthority;
// textArray[7] = father.validPeriod;
// uni.showToast({
// title: '',
// })
// backImge.value = filePath;
// uni.hideLoading()
// }
},
fail: err => {
uni.showToast({
@ -276,35 +249,6 @@
uni.navigateTo({
url: "/pages/addjigou/where"
});
// let pushMessage = {
// id: uni.getStorageSync('specicalid') || "",
// tel: uni.getStorageSync('tel'),
// comName: textArray[0],
// comRegisterAddress: textArray[1],
// comCreditCode: textArray[2],
// comLegalPerson: textArray[3],
// comBusinessLicense: fontphoto.value,
// }
// // console.log("????",pushMessage)
// changemessage(pushMessage).then(res => {
// if (res.success) {
// if (res.message == ``) {
// uni.navigateTo({
// url: "/pages/addjigou/where"
// });
// } else {
// uni.navigateTo({
// url: "/pages/addjigou/where"
// });
// }
// } else {
// uni.showToast({
// title: res.message,
// icon: 'error'
// })
// }
// })
} else {
uni.showToast({
title: '请上传清晰的营业执照',
@ -334,8 +278,6 @@
textArray[3] = data.comLegalPerson;
let data0 = uni.getStorageSync('backhuancun')
data0.comName = data.id
uni.setStorageSync("backhuancun", data)
if (data.comBusinessLicense) {
headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
@ -377,15 +319,11 @@
width: 100%;
background-color: #F7F7F7;
position: relative;
// box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content {
width: 90%;
margin-left: 5%;
// margin-top: 10rpx;
// height: 1200rpx;
border-radius: 35rpx;
// background-color: rgb(245, 251, 254);
.content-title {
display: flex;
@ -397,7 +335,6 @@
font-size: 32rpx;
font-weight: 600;
margin-left: 20rpx;
// margin-top: 20rpx;
}
.content-img {
@ -412,12 +349,9 @@
.white-photo {
width: 100%;
// margin-left: 5%;
// margin-top: 30rpx;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
align-items: center;
display: flex;
@ -430,17 +364,12 @@
.white-message {
width: 100%;
// margin-left: 5%;
// margin-top: 30rpx;
margin-bottom: 30rpx;
padding-top: 30rpx;
padding-bottom: 30rpx;
// height: 800rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
// align-items: center;
display: flex;
flex-direction: column;
@ -460,14 +389,12 @@
.message-weight {
font-size: 30rpx;
// font-weight: 600;
}
}
.one {
width: 90%;
margin-left: 5%;
// border-bottom: 1rpx solid #F7F7F7;
height: 100rpx;
display: flex;
justify-content: space-between;
@ -532,8 +459,6 @@
align-items: center;
width: 44%;
height: 90rpx;
// margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);

View File

@ -1,6 +1,5 @@
<template>
<div class="container">
<!-- <u-modal v-model="show" :content="content"></u-modal> -->
<model :show="show" @close="show=false" :content="content" />
<view class="title-back">
<view class="left-father" @click="goBack">
@ -12,7 +11,6 @@
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">身份证</view>
<!-- <view style="font-size: 20rpx;margin: 12rpx 0 0 15rpx;color: red;">(必填)</view> -->
</view>
<view class="white-photo" @click="selectphoto(0)">
<view class="photo-left">
@ -66,9 +64,6 @@
</view>
</view>
<view style="display: flex;width: 100%;">
<!-- <view class="finish-button" @click="goBack">
上一步
</view> -->
<view class="finish-button" @click="next">
确认并继续
</view>
@ -212,7 +207,6 @@
duration: 2000
})
uping.value = true;
return
}
@ -224,25 +218,16 @@
textArray[3] = father.ethnicity;
textArray[4] = father.birthDate;
textArray[5] = father.address;
// uni.showToast({
// title: '',
// })
headImge.value = filePath;
savephoto(filePath, 0);
} else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back)
{
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod;
// uni.showToast({
// title: '',
// })
backImge.value = filePath;
savephoto(filePath, 1);
} else {
uni.hideLoading()
uni.showToast({
@ -251,7 +236,6 @@
duration: 2000
})
uping.value = true;
}
},
fail: err => {
@ -346,14 +330,6 @@
})
return
}
// if(!fontphoto.value || !endphoto.value ){
// uni.showToast({
// title: '',
// icon: 'error'
// })
// return
// }
// console.log("??????")
const allNonEmpty = textArray.every(item => {
// item.trim() !== ''
return item !== '';
@ -365,22 +341,6 @@
if (allNonEmpty) {
const range = textArray[7];
const [start, end] = range.split('-');
// let pushMessage = {
// // id: uni.getStorageSync('specicalid') || "",
// tel: uni.getStorageSync('tel'),
// name: textArray[0],
// sex: textArray[1],
// idCard: textArray[2],
// national: textArray[3],
// birthDate: textArray[4],
// idCardAddress: textArray[5],
// issuingAuthority: textArray[6],
// startTime: start,
// endTime: end,
// cardZmPath: fontphoto.value,
// cardFmPath: endphoto.value
// }
// if(textArray[0]){
let data = uni.getStorageSync('backhuancun')
data.tel = uni.getStorageSync('tel')
data.name = textArray[0]
@ -398,28 +358,6 @@
uni.navigateTo({
url: "/pages/addjigou/card"
});
// }
// console.log("????",pushMessage)
// changemessage(pushMessage).then(res => {
// if (res.success) {
// if (res.message == ``) {
// uni.navigateTo({
// url: "/pages/addjigou/card"
// });
// } else {
// uni.setStorageSync('specicalid', res.result.id);
// uni.navigateTo({
// url: "/pages/addjigou/card"
// });
// }
// } else {
// uni.showToast({
// title: res.message,
// icon: 'error'
// })
// }
// })
} else {
uni.showToast({
title: '请上传清晰的身份证',
@ -466,15 +404,11 @@
width: 100%;
background-color: #F7F7F7;
position: relative;
// box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content {
width: 90%;
margin-left: 5%;
// margin-top: 30rpx;
// height: 1200rpx;
border-radius: 35rpx;
// background-color: rgb(245, 251, 254);
.content-title {
display: flex;
@ -484,11 +418,7 @@
font-weight: 600;
.content-weight {
// font-size: 35rpx;
// margin-left: 10rpx;
font-size: 32rpx;
// margin-top: 20rpx;
}
.content-img {
@ -503,12 +433,9 @@
.white-photo {
width: 100%;
// margin-left: 5%;
// margin-top: 30rpx;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
align-items: center;
display: flex;
@ -521,38 +448,28 @@
.white-message {
width: 100%;
// margin-left: 5%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
// height: 800rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
// align-items: center;
display: flex;
flex-direction: column;
.message-title {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
.message-weight {
font-size: 30rpx;
// font-weight: 600;
}
}
.one {
width: 90%;
margin-left: 5%;
// border-bottom: 1rpx solid #F7F7F7;
height: 100rpx;
display: flex;
justify-content: space-between;
@ -636,42 +553,6 @@
}
}
.rightStautes {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background-color: #FF913A;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesred {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #FF4A76, #FF553A);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesblue {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #00C9FF, #0076FF);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.shu {
width: 14rpx;
height: 36rpx;

View File

@ -1,6 +1,5 @@
<template>
<div class="container">
<!-- <u-modal v-model="show" :content="content"></u-modal> -->
<model :show="show" @close="show=false" :content="content" />
<u-popup v-model="popupshow" mode="bottom" border-radius="40" height="600px">
<view class="popup-father">
@ -26,12 +25,8 @@
</view>
</view>
<view style="height: 180rpx;width: 100%;">
</view>
<view style="height: 80rpx;width: 100%;" v-if="address.length">
</view>
<view style="height: 180rpx;width: 100%;"></view>
<view style="height: 80rpx;width: 100%;" v-if="address.length"></view>
<view class="other-title">
选择地区
</view>
@ -92,9 +87,6 @@
<view>
<view class="one" style="position: relative;" @click="showselect = true">
<view class="one-left">房屋性质</view>
<!-- <input class="one-right-select" type="select" placeholder="请输入房屋性质" v-model="form.orgPropertyType"
@click="showselect=true" /> -->
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择房屋性质" v-model="form.orgPropertyType" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
@ -155,18 +147,6 @@
const list = ref([]);
const showselect = ref(false);
const showlist = reactive(
// [{
// value: ``,
// },
// {
// value: ``,
// },
// {
// value: `使`,
// } ,{
// value: ``,
// }
// ]
[{
value: 1,
label: '租赁'
@ -184,8 +164,6 @@
label: '其它'
}
]
)
function onSelect1(arr) {
@ -197,7 +175,6 @@
orgAddress: "",
orgPropertyType: "",
orgBuildingArea: "",
// orgAddress: "",
orgCoordinateLo: "",
orgCoordinateLa: "",
id: uni.getStorageSync('specicalid') || "",
@ -206,7 +183,6 @@
})
//
const tempImagePath = ref('')
const headImge = ref("");
const backImge = ref("");
@ -229,7 +205,6 @@
const deleteUP = (index) => {
address.value = takeFirst(address.value, index);
if (index) {
// clickcard(address.value[0])
list.value = [];
getdate(address.value[0].id).then(res => {
list.value = dedupeFirstLetter(res.result)
@ -240,8 +215,6 @@
list.value = dedupeFirstLetter(res.result)
})
}
console.log("删除了", index)
}
function isValid11DigitNumber(val) {
@ -249,8 +222,6 @@
}
const next = () => {
if (!form.address) {
uni.showToast({
title: '请选择机构位置',
@ -294,11 +265,8 @@
})
return
}
const allNonEmpty = form.orgLeader && form.orgLeaderPhone && form.orgAddress && form.orgPropertyType &&
form.orgBuildingArea && form.address
let data = uni.getStorageSync('backhuancun')
data.openId = uni.getStorageSync('openid')
data.address = form.address
@ -315,23 +283,11 @@
} else {
data.status = form.status
}
uni.setStorageSync("backhuancun", data)
if (allNonEmpty) {
// if(!isValid11DigitNumber(form.orgLeaderPhone)){
// uni.showToast({
// title: '',
// icon: 'error'
// })
// return
// }
// console.log("????",uni.getStorageSync('backhuancun'))
changemessage(uni.getStorageSync('backhuancun')).then(res => {
if (res.success) {
// console.log("????", uni.getStorageSync('backhuancun').id)
uni.requestSubscribeMessage({
// templateId
tmplIds: ['CJ6NDNV4mTTyOdYhbksyA_YjDORVemJRmzEVAUZMBis'],
@ -350,14 +306,6 @@
});
}
});
// } else {
// uni.setStorageSync('specicalid', res.result.id);
// uni.reLaunch({
// url: `/pages/login/specialsmall?type=1&special=${uni.getStorageSync('backhuancun').id===null}`
// });
// }
} else {
uni.showToast({
title: res.message,
@ -385,7 +333,6 @@
data.orgLeaderPhone = form.orgLeaderPhone
data.orgPropertyType = form.orgPropertyType
data.orgBuildingArea = form.orgBuildingArea
uni.setStorageSync("backhuancun", data)
}
uni.navigateBack()
@ -399,10 +346,7 @@
const clickcard = (element) => {
if (address.value.length < 3) {
list.value = [];
address.value.push(element)
getdate(element.id).then(res => {
if (res.result.length) {
list.value = dedupeFirstLetter(res.result)
@ -494,12 +438,9 @@
getdate(`xzqhdm`).then(res => {
list.value = dedupeFirstLetter(res.result)
})
// form.orgAddress
if (uni.getStorageSync('backhuancun').address) {
let data = uni.getStorageSync('backhuancun');
// if (data.orgProvince_dictText) {
form.address = data.address
// }
form.orgProvince = data.orgProvince;
form.orgCity = data.orgCity;
form.orgDistrict = data.orgDistrict;
@ -513,7 +454,6 @@
if (data.orgProvince_dictText) {
form.address = data.orgProvince_dictText + (data.orgCity_dictText != null ? data.orgCity_dictText :
``) + (data.orgDistrict_dictText != null ? data.orgDistrict_dictText : ``)
// textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``);
}
form.orgProvince = data.orgProvince;
form.orgCity = data.orgCity;
@ -535,15 +475,11 @@
width: 100%;
background-color: #F7F7F7;
position: relative;
// box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content {
width: 100%;
// margin-left: 5%;
margin-top: 20rpx;
// height: 1200rpx;
border-radius: 35rpx;
// background-color: rgb(245, 251, 254);
.content-title {
display: flex;
@ -555,7 +491,6 @@
font-size: 32rpx;
font-weight: 600;
margin-left: 20rpx;
// margin-top: 20rpx;
}
.content-img {
@ -571,11 +506,9 @@
.white-photo {
width: 90%;
margin-left: 5%;
// margin-top: 30rpx;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
align-items: center;
display: flex;
@ -592,12 +525,9 @@
margin-top: 10rpx;
margin-bottom: 30rpx;
padding: 30rpx 0;
// height: 800rpx;
border-radius: 35rpx;
background-color: #fff;
// box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
// align-items: center;
display: flex;
flex-direction: column;
@ -607,18 +537,14 @@
align-items: center;
display: flex;
.message-weight {
font-size: 30rpx;
// font-weight: 600;
}
}
.one {
width: 90%;
margin-left: 5%;
// border-bottom: 1rpx solid #F7F7F7;
height: 100rpx;
display: flex;
justify-content: space-between;
@ -682,8 +608,6 @@
right: 10rpx;
width: 60rpx;
height: 50rpx;
// margin-right: 10rpx;
// margin-left: 35rpx;
}
.pingfangmi {
@ -702,14 +626,12 @@
.popup-father {
width: 100%;
// height: 100%;
position: relative;
.popup-title {
position: fixed;
top: 0;
left: 0;
// background-color: red;
display: flex;
flex-direction: column;
width: 100%;
@ -741,7 +663,6 @@
.cards {
width: 100%;
display: flex;
// justify-content: center;
align-items: center;
height: 100rpx;
@ -783,7 +704,6 @@
align-items: center;
width: 44%;
height: 90rpx;
// margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
@ -829,20 +749,16 @@
width: 100rpx;
height: 120rpx;
position: absolute;
// top: 50%;
top: 10rpx;
right: 80rpx;
// transform: translateY(-50%);
}
.button-father {
height: 60rpx;
// width: 23%;
padding: 0 20rpx;
display: flex;
align-items: center;
justify-content: center;
// justify-content: space-between;
position: relative;
background-color: #F5F5F5;
color: #666666;

644
pages/addstaff/IDcard.vue Normal file
View File

@ -0,0 +1,644 @@
<template>
<div class="container">
<model :show="show" @close="show=false" :content="content" />
<view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">入职登记表</view>
</view>
</view>
<view class="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">身份证</view>
</view>
<view class="white-photo" @click="selectphoto(0)">
<view class="photo-left">
<view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
<image v-if="!fontphoto"
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(1)">
<view class="photo-left">
<view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
<image v-if="!endphoto"
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="shu"></view>
<view class="content-weight">确认身份证信息</view>
</view>
<view class="white-message">
<view>
<view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
</view>
</view>
</view>
</view>
<view class="gray-font">
<view style="color: #333333;">注意事项:</view>
<view style="margin-top: 30rpx;font-size: 28rpx;">
<view class="line">1.同一个身份证号只能认证一个账号</view>
<view class="line">2.国徽与正面信息应为同一身份证的信息且在有效期内</view>
<view class="line">3.所有上传照片需清晰且未遮挡请勿进行美化和修改</view>
<view class="line">4.所有上传信息均会被妥善保管不会用于其他商业用途或传输给第三方</view>
</view>
</view>
<!-- <view style="display: flex;width: 100%;">
<view class="finish-button" @click="next">
确认并继续
</view>
</view> -->
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
<view class="back-button" @click="goBack">
返回上一步
</view>
<view class="finish-button" @click="next">
确认并继续
</view>
</view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow"></u-action-sheet>
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
import {
base_url
} from '@/request/index.js';
import {
changemessage
} from './api/addjigou.js'
import model from "@/compontent/public/model.vue"
const show = ref(false);
const content = ref("");
const bottomshow = ref(false);
const bottomlist = [{
text: '拍摄图片',
fontSize: 40
}, {
text: '图片预览',
fontSize: 40
}]
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]);
const states = ["审核中", "审核未通过", "审核通过"];
const fontphoto = ref("");
const endphoto = ref("");
const statesTarget = ref(0);
const shenhe = () => {
if (statesTarget.value == 2) {
statesTarget.value = 0
} else {
statesTarget.value++
}
}
const photoclick = (element) => {
if (element) {
uni.previewImage({
urls: [headImge.value, backImge.value], //
current: targetphoto.value ? backImge.value : headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
} else {
getMessage()
}
}
//
const tempImagePath = ref('')
const targetphoto = ref(0)
const selectphoto = (number) => {
if (!uping.value) {
return
}
if (backImge.value && headImge.value) {
targetphoto.value = number
bottomshow.value = true;
} else {
getMessage()
}
}
//
function getMessage() {
// 使 UniApp API
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`
});
},
fail: err => {
console.error('拍照失败:', err)
}
})
}
const headImge = ref("");
const backImge = ref("");
//
function formatChineseDate(chineseDate) {
return chineseDate.replace(/(\d+)年(\d+)月(\d+)日/, (_, y, m, d) => {
return `${y}.${m}.${d}`;
});
}
function toIsoDate(dateStr) {
return dateStr.replace(
/(\d{2,4})\.(\d{1,2})\.(\d{1,2})/,
(_, y, m, d) => {
//
const mm = m.padStart(2, '0');
const dd = d.padStart(2, '0');
return `${y}-${mm}-${dd}`;
}
);
}
//
function uploadImage(filePath) {
uping.value = false;
uni.showLoading()
uni.uploadFile({
url: `${base_url}/api/ocr/idCard`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {},
success: uploadRes => {
console.log("token", uni.getStorageSync('token'))
if (!JSON.parse(uploadRes.data).success) {
uni.hideLoading()
uni.showToast({
title: '识别失败',
icon: 'error',
duration: 2000
})
uping.value = true;
return
}
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
textArray[0] = father.name;
textArray[1] = father.sex;
textArray[2] = father.idNumber;
textArray[3] = father.ethnicity;
textArray[4] = father.birthDate;
textArray[5] = father.address;
headImge.value = filePath;
savephoto(filePath, 0);
} else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back)
{
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod;
backImge.value = filePath;
savephoto(filePath, 1);
} else {
uni.hideLoading()
uni.showToast({
title: '识别失败',
icon: 'error',
duration: 2000
})
uping.value = true;
}
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
const uping = ref(true)
const savephoto = (filePath, type) => {
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: `temp`
},
success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message
} else {
endphoto.value = JSON.parse(uploadRes.data).message
}
uni.hideLoading()
if (JSON.parse(uploadRes.data).code == 401) {
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: `temp`
},
success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message
} else {
endphoto.value = JSON.parse(uploadRes.data).message
}
uping.value = true;
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
uping.value = true;
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
function isAtLeastEightChars(str) {
return typeof str === 'string' && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true
}
}
const next = () => {
if (!fontphoto.value) {
uni.showToast({
title: '请上传身份证正面',
icon: 'error'
})
return
} else if (!endphoto.value) {
uni.showToast({
title: '请上传身份证背面',
icon: 'error'
})
return
}
const allNonEmpty = textArray.every(item => {
// item.trim() !== ''
return item !== '';
});
if (!uping.value) {
return
}
if (allNonEmpty) {
const range = textArray[7];
const [start, end] = range.split('-');
let data = uni.getStorageSync('backhuancun')
data.startTime = start
data.endTime = end
// data.tel = uni.getStorageSync('tel')
data.name = textArray[0]
data.sex = textArray[1]
data.idCard = textArray[2]
data.national = textArray[3]
data.birthDate = textArray[4]
data.idCardAddress = textArray[5]
data.issuingAuthority = textArray[6]
data.cardZmPath = fontphoto.value
data.cardFmPath = endphoto.value
uni.setStorageSync("backhuancun", data)
uni.navigateTo({
url: "/pages/addstaff/bankcard"
});
} else {
uni.showToast({
title: '请上传清晰的身份证',
icon: 'error'
})
}
}
const goBack = () => {
if (!uping.value) {
return
}
if (textArray[0]) {
let data = uni.getStorageSync('backhuancun')
const range = textArray[7];
const [start, end] = range.split('-');
data.startTime = start
data.endTime = end
data.name = textArray[0];
data.sex = textArray[1];
data.idCard = textArray[2];
data.national = textArray[3];
data.birthDate = textArray[4];
data.idCardAddress = textArray[5];
data.issuingAuthority = textArray[6];
data.cardZmPath = fontphoto.value;
data.cardFmPath = endphoto.value;
uni.setStorageSync("backhuancun", data)
// console.log("rightsave")
}
uni.navigateBack()
}
onLoad(() => {
console.log("11",uni.getStorageSync('backhuancun'))
if (uni.getStorageSync('backhuancun').name) {
console.log("????",uni.getStorageSync('backhuancun'))
let data = uni.getStorageSync('backhuancun');
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
fontphoto.value = data.cardZmPath
endphoto.value = data.cardFmPath
} else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata');
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
fontphoto.value = data.cardZmPath
endphoto.value = data.cardFmPath
}
})
onShow(() => {
const img = uni.getStorageSync('imgkey0')
if (img) {
uploadImage(img)
uni.removeStorageSync('imgkey0')
}
})
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
.white-content {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
.content-title {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
.content-weight {
font-size: 32rpx;
}
.content-img {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
}
}
.white-photo {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
.photo {
width: 300rpx;
height: 200rpx;
}
}
.white-message {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
.message-title {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
.message-weight {
font-size: 30rpx;
}
}
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
}
.one-right {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
}
}
}
.photo-left {
.photo-weight {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-font {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
}
.gray-font {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
// .finish-button {
// display: flex;
// justify-content: center;
// align-items: center;
// width: 80%;
// height: 90rpx;
// margin: 0rpx auto;
// margin-bottom: 80rpx;
// margin-top: 20rpx;
// color: #fff;
// background: linear-gradient(to left, #00C9FF, #0076FF);
// border-radius: 35rpx;
// font-size: 33rpx;
// }
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father {
display: flex;
align-items: center;
.back-img {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line {
margin: 10rpx 0;
}
.finish-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
// margin: 0rpx auto;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}
</style>

409
pages/addstaff/all.vue Normal file
View File

@ -0,0 +1,409 @@
<template>
<div class="container">
<!-- <u-modal v-model="show" :content="content"></u-modal> -->
<model :show="show" @close="show=false" :content="content" />
<image class="greenbgc" src="https://www.focusnu.com/media/directive/index/greenbgc.png" />
<view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">机构加盟</view>
</view>
</view>
<view class="contentred" v-if="statesTarget==3||alldata.status==`5`||alldata.status==`3`">
<view class="contentred-bgc">
驳回原因{{contentred}}
</view>
</view>
<view class="white-content">
<view class="content-title" :style="special?{height: `100rpx`}:{height: `140rpx`}" style="position: relative;margin-bottom: 20rpx;z-index: 999;">
<view class="shu"></view>
<view class="content-weight">身份证</view>
<image class="shu-img" :src="!special? `https://www.focusnu.com/media/directive/index/${statusarray[statesTarget-1]}.png`:``" />
</view>
<view class="white-photo" @click="getMessage(headImge)">
<view class="photo-left">
<view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
<image v-if="!headImge"
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="getMessage(backImge)">
<view class="photo-left">
<view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="backImge ? backImge : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
<image v-if="!backImge"
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="shu"></view>
<view class="content-weight">确认身份证信息</view>
</view>
<view class="white-message">
<view>
<view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
</view>
</view>
</view>
</view>
<view class="white-content">
<view class="content-title" style="margin-bottom: 30rpx;">
<view class="shu"></view>
<view class="content-weight">营业执照</view>
</view>
<view class="white-photo" @click="getMessage(headImge0)">
<view class="photo-left">
<view class="photo-weight">营业执照</view>
<view class="photo-font">请上传营业执照</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="headImge0 ? headImge0 : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!headImge0"
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-top: 30rpx;">
<view class="shu"></view>
<view class="content-weight">企业信息</view>
</view>
<view class="white-message">
<view>
<view v-for="(item,index) in nameArray0" :key="index" class="one"
@click="openLook(textArray0[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray0[index] ? textArray0[index] : "自动获取" }}</view>
</view>
</view>
</view>
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">机构信息</view>
</view>
</view>
<view class="white-content" style="margin-top: 0rpx;">
<view class="white-message">
<view style="margin-bottom: 20rpx;">
<view v-for="(item,index) in nameArray1" :key="index" class="one"
@click="openLook(textArray1[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray1[index] ? textArray1[index] : "自动获取" }}</view>
</view>
</view>
</view>
</view>
<view style="display: flex;width: 100%;margin-top: 40rpx;"></view>
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad
} from '@dcloudio/uni-app';
import {
base_url
} from '@/request/index.js';
import { getrel } from '@/pages/addjigou/api/addjigou.js';
import model from "@/compontent/public/model.vue"
const show = ref(false);
const content = ref("");
const statusarray = ["loading","success","fail"]
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]);
const headImge = ref("");
const headImge0 = ref("");
const nameArray0 = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray0 = reactive(["", "", "", "", "", "", ""]);
const nameArray1 = ["机构位置","详细地址","机构负责人", "机构负责人电话", "房屋性质","建筑面积"];
const textArray1 = reactive([ "","", "", "", "", ""]);
const backImge = ref("");
const states = ["待提交","审核中", "审核通过", "审核未通过"];
const fontphoto = ref("");
const endphoto = ref("");
const statesTarget = ref(0);
//
const tempImagePath = ref('')
//
function getMessage(url) {
uni.previewImage({
current: url, //
urls: [url], //
indicator: 'default', // 'default'|'number'|'none'
loop: true, //
longPressActions: {
itemList: ['保存图片'],
success: (data) => {
console.log('长按操作成功', data)
},
fail: (err) => {
console.error('长按操作失败', err)
}
}
})
}
function isAtLeastEightChars(str) {
return typeof str === 'string' && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true
}
}
const goBack = () => {
uni.navigateBack()
}
const alldata = ref("");
const contentred = ref("")
const special = ref(false);
onLoad((options) => {
if(options.special){
special.value = true
}
alldata.value = JSON.parse(options.element);
let data = alldata.value
if(data.content){
contentred.value = data.content
}
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson;
headImge0.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``);
textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader;
textArray1[3] = data.orgLeaderPhone;
textArray1[4] = data.orgPropertyType;
if(data.orgBuildingArea){
textArray1[5] = data.orgBuildingArea + 'm²';
}
})
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
.white-content {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
.content-title {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
.content-weight {
font-size: 32rpx;
}
.content-img {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
}
}
.white-photo {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
.photo {
width: 300rpx;
height: 200rpx;
}
}
.white-message {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
}
.one-right {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
}
}
}
.photo-left {
z-index: 1;
.photo-weight {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-font {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
}
.gray-font {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father {
display: flex;
align-items: center;
z-index: 1;
.back-img {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line {
margin: 10rpx 0;
}
.shu-img{
position: absolute;
right: 20rpx;
top: 40%;
transform: translateY(-40%);
width: 150rpx;
height: 130rpx;
}
.greenbgc{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 700rpx;
}
.contentred{
width: 90%;
border: dashed 3rpx #FF4B2F;
border-radius: 15rpx;
margin: 15rpx 0;
margin-left: 5%;
padding: 5rpx;
.contentred-bgc{
background-color: rgb(240,228,228);
border-radius: 15rpx;
color: red;
padding: 20rpx;
padding-bottom: 30rpx;
}
}
</style>

View File

@ -0,0 +1,41 @@
// src/composables/useWeChatAuth.js
import { ref } from 'vue';
import request from '@/request/index.js';
//新增/编辑机构加盟申请信息
export function changemessage(data){
return request({
url: `/api/employessAdvisiory/saveApiEmployess`,
method: 'post',
data,
})
}
//根据手机号获取机构加盟申请信息
// export function getMessageList(id){
// return request({
// url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`,
// method: 'get',
// })
// }
// export function getMessageListsuccess(id){
// return request({
// url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,
// method: 'get',
// })
// }
// //获取省市区
// export function getdate(id){
// return request({
// url: `/api/common/queryAreaDict?id=${id}`,
// method: 'get',
// })
// }
// //将地址id转换成汉字
// export function getrel(id){
// return request({
// url: `/api/common/queryAreaNameById?id=${id}`,
// method: 'get',
// })
// }

575
pages/addstaff/bankcard.vue Normal file
View File

@ -0,0 +1,575 @@
<template>
<div class="container">
<model :show="show" @close="show=false" :content="content" />
<view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">入职登记表</view>
</view>
</view>
<view class="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">银行卡</view>
</view>
<view class="white-photo" @click="selectphoto(0)">
<view class="photo-left">
<view class="photo-weight">银行卡正面</view>
<view class="photo-font">请上传银行卡正面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
<image v-if="!fontphoto"
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(1)">
<view class="photo-left">
<view class="photo-weight">银行卡反面</view>
<view class="photo-font">请上传银行卡反面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
<image v-if="!endphoto"
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="shu"></view>
<view class="content-weight">确认身份证信息</view>
</view>
<view class="white-message">
<view>
<view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
</view>
</view>
</view>
</view>
<!-- <view class="gray-font">
<view style="color: #333333;">注意事项:</view>
<view style="margin-top: 30rpx;font-size: 28rpx;">
<view class="line">1.同一个身份证号只能认证一个账号</view>
<view class="line">2.国徽与正面信息应为同一身份证的信息且在有效期内</view>
<view class="line">3.所有上传照片需清晰且未遮挡请勿进行美化和修改</view>
<view class="line">4.所有上传信息均会被妥善保管不会用于其他商业用途或传输给第三方</view>
</view>
</view> -->
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
<view class="back-button" @click="goBack">
返回上一步
</view>
<view class="finish-button" @click="next">
确认并继续
</view>
</view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow"></u-action-sheet>
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
import {
base_url
} from '@/request/index.js';
import {
changemessage
} from './api/addjigou.js'
import model from "@/compontent/public/model.vue"
const show = ref(false);
const content = ref("");
const bottomshow = ref(false);
const bottomlist = [{
text: '拍摄图片',
fontSize: 40
}, {
text: '图片预览',
fontSize: 40
}]
const nameArray = ["开户行", "开户行卡号"];
const textArray = reactive(["", ""]);
const states = ["审核中", "审核未通过", "审核通过"];
const fontphoto = ref("");
const endphoto = ref("");
const statesTarget = ref(0);
const shenhe = () => {
if (statesTarget.value == 2) {
statesTarget.value = 0
} else {
statesTarget.value++
}
}
const photoclick = (element) => {
if (element) {
uni.previewImage({
urls: [headImge.value, backImge.value], //
current: targetphoto.value ? backImge.value : headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
} else {
getMessage()
}
}
//
const tempImagePath = ref('')
const targetphoto = ref(0)
const selectphoto = (number) => {
if (!uping.value) {
return
}
targetphoto.value = number
if (backImge.value && headImge.value) {
// targetphoto.value = number
bottomshow.value = true;
} else {
getMessage()
}
}
//
function getMessage() {
// 使 UniApp API
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`
});
},
fail: err => {
console.error('拍照失败:', err)
}
})
}
const headImge = ref("");
const backImge = ref("");
//
function formatChineseDate(chineseDate) {
return chineseDate.replace(/(\d+)年(\d+)月(\d+)日/, (_, y, m, d) => {
return `${y}.${m}.${d}`;
});
}
function toIsoDate(dateStr) {
return dateStr.replace(
/(\d{2,4})\.(\d{1,2})\.(\d{1,2})/,
(_, y, m, d) => {
//
const mm = m.padStart(2, '0');
const dd = d.padStart(2, '0');
return `${y}-${mm}-${dd}`;
}
);
}
//
function uploadImage(filePath) {
uping.value = false;
uni.showLoading()
uni.uploadFile({
url: `${base_url}/api/ocr/bankCard`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {},
success: uploadRes => {
savephoto(filePath, targetphoto.value);
if (!JSON.parse(uploadRes.data).success) {
uni.hideLoading()
uping.value = true;
return
}
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.bankName) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.bankName;
textArray[1] = father.cardNumber;
uping.value = true;
}
else {
uni.hideLoading()
uping.value = true;
}
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
const uping = ref(true)
const savephoto = (filePath, type) => {
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: `temp`
},
success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message
} else {
endphoto.value = JSON.parse(uploadRes.data).message
}
uni.hideLoading()
if(JSON.parse(uploadRes.data).code==401){
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: `temp`
},
success: uploadRes => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message
} else {
endphoto.value = JSON.parse(uploadRes.data).message
}
uping.value = true;
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
uping.value = true;
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
function isAtLeastEightChars(str) {
return typeof str === 'string' && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true
}
}
const next = () => {
if (!fontphoto.value) {
uni.showToast({
title: '请上银行卡正面',
icon: 'none'
})
return
} else if (!endphoto.value) {
uni.showToast({
title: '请上传银行卡背面',
icon: 'none'
})
return
}
const allNonEmpty = textArray.every(item => {
// item.trim() !== ''
return item !== '';
});
if (!uping.value) {
return
}
if (allNonEmpty) {
let data = uni.getStorageSync('backhuancun')
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"
});
} else {
uni.showToast({
title: '请上传清晰的身份证',
icon: 'error'
})
}
}
const goBack = () => {
if (!uping.value) {
return
}
if (textArray[0]) {
let data = uni.getStorageSync('backhuancun')
data.openingBank = textArray[0];
data.bankCard = textArray[1];
data.bankZmPath = fontphoto.value;
data.bankFmPath = endphoto.value;
uni.setStorageSync("backhuancun", data)
}
uni.navigateBack()
}
onLoad(() => {
if (uni.getStorageSync('backhuancun').openingBank) {
let data = uni.getStorageSync('backhuancun');
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
}
})
onShow(() => {
const img = uni.getStorageSync('imgkey0')
if (img) {
uploadImage(img)
uni.removeStorageSync('imgkey0')
}
})
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
.white-content {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
.content-title {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
.content-weight {
font-size: 32rpx;
}
.content-img {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
}
}
.white-photo {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
.photo {
width: 300rpx;
height: 200rpx;
}
}
.white-message {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
.message-title {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
.message-weight {
font-size: 30rpx;
}
}
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
}
.one-right {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
}
}
}
.photo-left {
.photo-weight {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-font {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
}
.gray-font {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
// .finish-button {
// display: flex;
// justify-content: center;
// align-items: center;
// width: 80%;
// height: 90rpx;
// margin: 0rpx auto;
// margin-bottom: 80rpx;
// margin-top: 20rpx;
// color: #fff;
// background: linear-gradient(to left, #00C9FF, #0076FF);
// border-radius: 35rpx;
// font-size: 33rpx;
// }
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father {
display: flex;
align-items: center;
.back-img {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line {
margin: 10rpx 0;
}
.finish-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
// margin: 0rpx auto;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}
</style>

View File

@ -0,0 +1,466 @@
<template>
<div class="container">
<model :show="show" @close="show=false" :content="content" />
<view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">入职登记表</view>
</view>
</view>
<view class="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">健康证</view>
</view>
<view class="white-photo" @click="selectphoto(0)">
<view class="photo-left">
<view class="photo-weight">健康证正面</view>
<view class="photo-font">请上传健康证正面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="imgArray[0] ? `${base_url}/sys/common/static/${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!imgArray[0]"
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="selectphoto(1)">
<view class="photo-left">
<view class="photo-weight">健康证反面</view>
<view class="photo-font">请上传健康证反面</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="imgArray[1] ? `${base_url}/sys/common/static/${imgArray[1]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!imgArray[1]"
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="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">资质证</view>
</view>
<view class="white-photo" @click="selectphoto(2)">
<view class="photo-left">
<view class="photo-weight">资质证</view>
<view class="photo-font">请上传资质证</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="imgArray[2] ? `${base_url}/sys/common/static/${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!imgArray[2]"
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="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">无犯罪证明</view>
</view>
<view class="white-photo" @click="selectphoto(3)">
<view class="photo-left">
<view class="photo-weight">无犯罪证明</view>
<view class="photo-font">请上传无犯罪证明</view>
</view>
<view style="position: relative;">
<image class="photo"
:src="imgArray[3] ? `${base_url}/sys/common/static/${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!imgArray[3]"
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="gray-font">
<view style="color: #333333;margin-bottom: 30rpx;">注意事项:</view>
<view class="gray-text">
1. 运用企业个体工商户政府事业单位学校组织等账号归属企业
</view>
<view class="gray-text">
2.一个企业信息主体默认可认证1个账号
</view>
<view class="gray-text">
3.所有上传信息均会被妥善保管不会用于其他商业用途或传输给其他第三方
</view>
</view> -->
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 20rpx;">
<view class="back-button" @click="goBack">
返回上一步
</view>
<view class="finish-button" @click="next">
确认并继续
</view>
</view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow"></u-action-sheet>
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
import {
base_url
} from '@/request/index.js'
import {
changemessage
} from './api/addjigou.js'
import model from "@/compontent/public/model.vue"
const show = ref(false);
const content = ref("");
const imgArray = reactive(["", "", "", ""])
const nameArray = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray = reactive(["", "", "", ""]);
const bottomlist = [{
text: '拍摄图片',
fontSize: 40
}, {
text: '图片预览',
fontSize: 40
}]
const bottomshow = ref(false)
//
const tempImagePath = ref('')
const imgetarget = ref(0)
const selectphoto = (number) => {
if (!uping.value) {
return
}
imgetarget.value = number
if (imgArray[number]) {
bottomshow.value = true;
} else {
getMessage()
}
}
const photoclick = (element) => {
if (element) {
uni.previewImage({
urls: [ `${base_url}/sys/common/static/${imgArray[imgetarget.value]}`], //
// current: headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
} else {
getMessage()
}
}
//
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`
});
},
fail: err => {
console.error('拍照失败:', err)
}
})
}
const headImge = ref("");
const backImge = ref("");
const uping = ref(true);
const fontphoto = ref("");
const savephoto = (filePath) => {
uping.value = false;
uni.uploadFile({
url: `${base_url}/sys/common/upload`, // POST
filePath,
name: 'file', //
header: {
'X-Access-Token': uni.getStorageSync('token') || '',
},
formData: {
biz: `temp`
},
success: uploadRes => {
imgArray[imgetarget.value] = JSON.parse(uploadRes.data).message
// fontphoto.value = JSON.parse(uploadRes.data).message;
uping.value = true;
uni.hideLoading()
},
fail: err => {
uni.showToast({
title: '上传出错',
icon: 'error'
})
uni.hideLoading()
}
})
}
function isAtLeastEightChars(str) {
return typeof str === 'string' && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true
}
}
const next = () => {
if (!uping.value) {
return
}
}
onLoad(() => {
if (uni.getStorageSync('backhuancun').healthZmPath) {
let data = uni.getStorageSync('backhuancun');
imgArray[0] = data.healthZmPath
imgArray[1] = data.healthFmPath
imgArray[2] = data.qualificationPath
imgArray[3] = data.noCrimeCertificate
} else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata');
imgArray[0] = data.healthZmPath
imgArray[1] = data.healthFmPath
imgArray[2] = data.qualificationPath
imgArray[3] = data.noCrimeCertificate
}
})
const goBack = () => {
if (!uping.value) {
return
}
if (imgArray[0] || imgArray[1] || imgArray[2] || imgArray[3]) {
let data = uni.getStorageSync('backhuancun')
data.healthZmPath = imgArray[0]
data.healthFmPath = imgArray[1]
data.qualificationPath = imgArray[2]
data.noCrimeCertificate = imgArray[3]
uni.setStorageSync("backhuancun", data)
}
uni.navigateBack()
}
onShow(() => {
const img = uni.getStorageSync('imgkey0')
if (img) {
// uploadImage(img)
savephoto(img)
uni.removeStorageSync('imgkey0')
}
})
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
.white-content {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
.content-title {
display: flex;
align-items: center;
height: 110rpx;
position: relative;
.content-weight {
font-size: 32rpx;
font-weight: 600;
margin-left: 20rpx;
}
.content-img {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
}
}
.white-photo {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
.photo {
width: 300rpx;
height: 200rpx;
}
}
.white-message {
width: 100%;
margin-bottom: 30rpx;
padding-top: 30rpx;
padding-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
.message-title {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
.shu {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 0rpx 0 30rpx;
}
.message-weight {
font-size: 30rpx;
}
}
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
}
.one-right {
margin-right: 10rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
font-size: 30rpx;
}
}
}
}
.photo-left {
.photo-weight {
font-size: 30rpx;
font-weight: 600;
}
.photo-font {
font-size: 28rpx;
margin-top: 10rpx;
}
}
.gray-font {
padding: 30rpx 60rpx;
color: #999999;
}
.finish-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
// margin: 0rpx auto;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}
.gray-text {
margin: 10rpx 0;
font-size: 28rpx;
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 0rpx 0 30rpx;
}
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
.left-father {
display: flex;
align-items: center;
.back-img {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
}
</style>

View File

@ -0,0 +1,421 @@
<template>
<div class="container">
<view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">入职登记表</view>
</view>
</view>
<view class="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">个人信息</view>
</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"
placeholder="请选择婚否" v-model="form.marriedOrNot" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist"
@confirm="confirmmarry"></u-select>
<view class="one">
<view class="one-left">联系电话</view>
<input class="one-right" type="number" maxlength="11" placeholder="请输入联系电话" v-model="form.tel" />
</view>
<view class="one">
<view class="one-left">身高</view>
<input class="one-right" type="number" maxlength="11" placeholder="请输入身高(单位:CM)"
v-model="form.height" />
</view>
<view class="one">
<view class="one-left">体重</view>
<input class="one-right" type="number" maxlength="11" placeholder="请输入体重(单位:KG)"
v-model="form.weight" />
</view>
<view class="one" style="position: relative;" @click="showhealth = true">
<view class="one-left">健康状况</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择健康状况" v-model="form.healthStatus" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showhealth" :list="showhealthlist"
@confirm="confirmshowhealth"></u-select>
<view class="one" style="position: relative;" @click="showface = true">
<view class="one-left">政治面貌</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择政治面貌" v-model="form.politicalAppearance" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showface" :list="showfacelist"
@confirm="confirmshowface"></u-select>
<view class="one">
<view class="one-left">紧急联系人</view>
<input class="one-right" maxlength="11" placeholder="请输入紧急联系人" v-model="form.emergencyContact" />
</view>
<view class="one">
<view class="one-left">紧急联系人电话</view>
<input class="one-right" maxlength="11" type="number" placeholder="请输入紧急联系人电话"
v-model="form.emergencyTel" />
</view>
<view class="one">
<view class="one-left">联系人与本人关系</view>
<input class="one-right" maxlength="11" placeholder="请输入联系人与本人关系"
v-model="form.emergencyRelationship" />
</view>
<view class="one" style="position: relative;" @click="showform = true">
<view class="one-left">户口性质</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择户口性质" v-model="form.hukouNature" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showform" :list="showformlist"
@confirm="confirmshowform"></u-select>
</view>
<view style="display: flex;width: 100%;">
<view class="finish-button" @click="next">
确认并继续
</view>
</view>
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
import {
base_url
} from '@/request/index.js';
import {
changemessage
} from './api/addjigou.js'
import model from "@/compontent/public/model.vue"
// const showmarry
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]);
const states = ["审核中", "审核未通过", "审核通过"];
const showmarry = ref(false);
const showmarrylist = reactive(
[{
value: '已婚',
label: '已婚',
},
{
value: '未婚',
label: '未婚',
},
]
)
const showhealth = ref(false);
const showhealthlist = reactive(
[{
value: '健康',
label: '健康',
},
{
value: '患病',
label: '患病',
},
]
)
const showface = ref(false);
const showfacelist = reactive(
[{
value: '共产党员',
label: '共产党员',
},
{
value: '国民党',
label: '国民党',
},
{
value: '民主党',
label: '民主党',
},
{
value: '无党派',
label: '无党派',
},
]
)
const showform = ref(false);
const showformlist = reactive(
[{
value: '非农业',
label: '非农业',
},
{
value: '农业',
label: '农业',
},
]
)
const confirmmarry = (item) => {
form.marriedOrNot = item[0].value
}
const confirmshowhealth = (item) => {
form.healthStatus = item[0].value
}
const confirmshowface = (item) => {
form.politicalAppearance = item[0].value
}
const confirmshowform = (item) => {
form.hukouNature = item[0].value
}
const form = reactive({
marriedOrNot: "",
tel: "",
height: "",
weight: "",
healthStatus: "",
politicalAppearance: "",
emergencyContact: "",
emergencyTel: "",
emergencyRelationship: "",
hukouNature: ""
})
function isValid11DigitNumber(val) {
return /^(\d{11})$/.test(val);
}
const next = () => {
if (!form.marriedOrNot) {
uni.showToast({
title: '请填写婚否',
icon: 'error'
})
} else if (!form.tel) {
uni.showToast({
title: '请填写联系电话',
icon: 'error'
})
} else if (!isValid11DigitNumber(form.tel)) {
uni.showToast({
title: '手机号格式错误',
icon: 'error'
})
return
} else if (!form.height) {
uni.showToast({
title: '请填写身高',
icon: 'error'
})
} else if (!form.weight) {
uni.showToast({
title: '请填写体重',
icon: 'error'
})
} else if (!form.healthStatus) {
uni.showToast({
title: '请填写健康状态',
icon: 'error'
})
} else if (!form.politicalAppearance) {
uni.showToast({
title: '请填写政治面貌',
icon: 'error'
})
} else if (!form.emergencyContact) {
uni.showToast({
title: '请填写紧急联系人',
icon: 'none'
})
} else if (!form.emergencyTel) {
uni.showToast({
title: '请填写紧急联系人电话',
icon: 'none'
})
} else if (!isValid11DigitNumber(form.emergencyTel)) {
uni.showToast({
title: '紧急联系人手机号格式错误',
icon: 'none'
})
return
} else if (!form.emergencyRelationship) {
uni.showToast({
title: '请填写联系人和本人的关系',
icon: 'none'
})
} else if (!form.hukouNature) {
uni.showToast({
title: '请填写户口性质',
icon: 'error'
})
} else {
const data = form
const merged2 = {
...uni.getStorageSync('backhuancun'),
...data
};
uni.setStorageSync("backhuancun", merged2);
uni.navigateTo({
url: "/pages/addstaff/IDcard"
});
}
}
const goBack = () => {
uni.navigateBack()
}
onLoad(() => {
if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata');
form = data
}
})
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
.white-content {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
.content-title {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
.content-weight {
font-size: 32rpx;
}
.content-img {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
}
}
}
.finish-button {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
margin-top: 20rpx;
color: #fff;
background: linear-gradient(to left, #00C9FF, #0076FF);
border-radius: 35rpx;
font-size: 33rpx;
}
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father {
display: flex;
align-items: center;
.back-img {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line {
margin: 10rpx 0;
}
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
}
.one-right {
font-size: 30rpx;
height: 100%;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
font-size: 25rpx;
text-overflow: ellipsis;
width: 350rpx;
display: flex;
}
.triangle-down {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}
}
</style>

View File

@ -1,12 +1,5 @@
<template>
<view class="login-container">
<!-- <view class="title">
<image class="title-imge" src="https://www.focusnu.com/media/directive/index/nu.png" @click="ceshi" />
<view class="title-font">
<view class="">您好</view>
<view class="">欢迎使用护理单元~</view>
</view>
</view> -->
<image class="photo-imge" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
lazy-load="false" />
<view class="title-back">
@ -14,40 +7,6 @@
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
</view>
</view>
<!-- <image class="photo-imge" src="https://www.focusnu.com/media/directive/index/bgc.png" /> -->
<!-- <image class="old-imge" src="https://www.focusnu.com/media/directive/index/old.png" /> -->
<!-- <view class="under-container">
<three style="width: 90%;margin-left: 5%;" @updateCenterIndex="changePhoto" />
<view class="font-father">
<view class="font">
{{fontArray[itemTarget]}}
</view>
</view>
<view class="button-father" v-if="itemTarget==0">
<view class="button-blue" @click="jumpToindex">
绑定单元
</view>
</view>
<view class="button-father" v-if="itemTarget==2">
<view class="button-blue" style="margin-right: 30rpx;" @click="gotowork(0)">
审核详情
</view>
<view class="button-blue" @click="">
申请入驻
</view>
</view>
<view class="button-father" v-if="itemTarget==1">
<view class="button-blue" style="margin-right: 30rpx;" @click="gotowork(1)">
审核详情
</view>
<view class="button-blue" @click="gotoadd">
申请加盟
</view>
</view>
</view> -->
<!-- <view class="card-title">
恭喜您已成功绑定手机 <text style="color: #01A9FF ;">{{phone}}</text>现在您可以
</view> -->
<view class="card" style="margin-top: 550rpx;">
<view class="card-left">
<view class="card-weight">
@ -77,7 +36,7 @@
<!-- <view class="white-button" style="margin-right: 30rpx;">
审核列表
</view> -->
<view class="white-button">
<view class="white-button" @click="tobestaff">
申请入驻
</view>
</view>
@ -159,15 +118,26 @@
});
}
const gotoadd = () => {
//ID
uni.setStorageSync('specicalid', "");
//
uni.setStorageSync("baddata", "")
//
uni.setStorageSync("backhuancun", {})
uni.navigateTo({
url: `/pages/addjigou/name`
});
// uni.navigateTo({
// url: `/pages/addjigou/where`
// });
}
const tobestaff = () =>{
//ID
uni.setStorageSync('specicalid', "");
//
uni.setStorageSync("baddata", "")
//
uni.setStorageSync("backhuancun", {})
uni.navigateTo({
url: `/pages/addstaff/information`
});
}
const close = () => {
uni.exitMiniProgram({});

View File

@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n</style>\n","import App from './App'\r\nimport uView from './uni_modules/vk-uview-ui';\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nimport uView from './uni_modules/vk-uview-ui';\nVue.use(uView);\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACQM,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,iCAAK;AACb,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"./uni_modules/vk-uview-ui/index.scss\";\r\n</style>\n","import App from './App'\r\nimport uView from './uni_modules/vk-uview-ui';\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nimport uView from './uni_modules/vk-uview-ui';\nVue.use(uView);\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\t// 使用 uView UI\r\n\tapp.use(uView)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App","uView"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACQM,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAE5B,MAAI,IAAIC,iCAAK;AACb,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"file":"addjigou.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,11 @@ if (!Math) {
"./pages/addoldman/yibao.js";
"./pages/addoldman/IDcard.js";
"./pages/selectunit/map.js";
"./pages/addstaff/all.js";
"./pages/addstaff/information.js";
"./pages/addstaff/IDcard.js";
"./pages/addstaff/bankcard.js";
"./pages/addstaff/healthcertificate.js";
"./pages/addjigou/all.js";
"./pages/addjigou/where.js";
"./pages/addjigou/name.js";

View File

@ -19,6 +19,11 @@
"pages/addoldman/yibao",
"pages/addoldman/IDcard",
"pages/selectunit/map",
"pages/addstaff/all",
"pages/addstaff/information",
"pages/addstaff/IDcard",
"pages/addstaff/bankcard",
"pages/addstaff/healthcertificate",
"pages/addjigou/all",
"pages/addjigou/where",
"pages/addjigou/name",

View File

@ -7041,9 +7041,9 @@ function isConsoleWritable() {
return isWritable;
}
function initRuntimeSocketService() {
const hosts = "192.168.2.25,127.0.0.1";
const hosts = "192.168.2.35,127.0.0.1";
const port = "8090";
const id = "mp-weixin_hRoMfD";
const id = "mp-weixin_Zb1UrH";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@ -37,10 +37,10 @@ const _sfc_main = {
longPressActions: {
itemList: ["保存图片"],
success: (data) => {
common_vendor.index.__f__("log", "at pages/addjigou/all.vue:185", "长按操作成功", data);
common_vendor.index.__f__("log", "at pages/addjigou/all.vue:173", "长按操作成功", data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/all.vue:188", "长按操作失败", err);
common_vendor.index.__f__("error", "at pages/addjigou/all.vue:176", "长按操作失败", err);
}
}
});
@ -65,7 +65,6 @@ const _sfc_main = {
special.value = true;
}
alldata.value = JSON.parse(options.element);
statesTarget.value = Number(alldata.value.status);
let data = alldata.value;
if (data.content) {
contentred.value = data.content;

View File

@ -78,15 +78,6 @@
display: flex;
flex-direction: column;
}
.container .white-message .message-title.data-v-9afbabf9 {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
}
.container .white-message .message-title .message-weight.data-v-9afbabf9 {
font-size: 30rpx;
}
.container .white-message .one.data-v-9afbabf9 {
width: 90%;
margin-left: 5%;
@ -148,39 +139,6 @@
margin-left: 40rpx;
margin-right: 15rpx;
}
.rightStautes.data-v-9afbabf9 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background-color: #FF913A;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesred.data-v-9afbabf9 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #FF4A76, #FF553A);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesblue.data-v-9afbabf9 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #00C9FF, #0076FF);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.shu.data-v-9afbabf9 {
width: 14rpx;
height: 36rpx;

View File

@ -65,7 +65,7 @@ const _sfc_main = {
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/card.vue:144", "拍照失败:", err);
common_vendor.index.__f__("error", "at pages/addjigou/card.vue:139", "拍照失败:", err);
}
});
}
@ -96,7 +96,6 @@ const _sfc_main = {
uping.value = true;
return;
}
common_vendor.index.__f__("log", "at pages/addjigou/card.vue:177", "营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data);
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.companyName) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.companyName;

View File

@ -70,7 +70,7 @@ const _sfc_main = {
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/name.vue:168", "拍照失败:", err);
common_vendor.index.__f__("error", "at pages/addjigou/name.vue:163", "拍照失败:", err);
}
});
}
@ -90,7 +90,7 @@ const _sfc_main = {
},
formData: {},
success: (uploadRes) => {
common_vendor.index.__f__("log", "at pages/addjigou/name.vue:206", "token", common_vendor.index.getStorageSync("token"));
common_vendor.index.__f__("log", "at pages/addjigou/name.vue:201", "token", common_vendor.index.getStorageSync("token"));
if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({

View File

@ -158,39 +158,6 @@
margin-left: 40rpx;
margin-right: 15rpx;
}
.rightStautes.data-v-4363d488 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background-color: #FF913A;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesred.data-v-4363d488 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #FF4A76, #FF553A);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.rightStautesblue.data-v-4363d488 {
width: 170rpx;
height: 62rpx;
border-radius: 60rpx;
background: linear-gradient(to right, #00C9FF, #0076FF);
display: flex;
justify-content: center;
align-items: center;
color: #fff;
margin-right: 30rpx;
}
.shu.data-v-4363d488 {
width: 14rpx;
height: 36rpx;

View File

@ -23,18 +23,6 @@ const _sfc_main = {
const list = common_vendor.ref([]);
const showselect = common_vendor.ref(false);
const showlist = common_vendor.reactive(
// [{
// value: `租赁`,
// },
// {
// value: `自由产权`,
// },
// {
// value: `合作使用`,
// } ,{
// value: `其它`,
// }
// ]
[
{
value: 1,
@ -63,7 +51,6 @@ const _sfc_main = {
orgAddress: "",
orgPropertyType: "",
orgBuildingArea: "",
// orgAddress: "",
orgCoordinateLo: "",
orgCoordinateLa: "",
id: common_vendor.index.getStorageSync("specicalid") || "",
@ -90,7 +77,6 @@ const _sfc_main = {
list.value = dedupeFirstLetter(res.result);
});
}
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:244", "删除了", index);
};
function isValid11DigitNumber(val) {
return /^(\d{11})$/.test(val);
@ -164,14 +150,14 @@ const _sfc_main = {
// 这里填后台申请好的 templateId 数组
tmplIds: ["CJ6NDNV4mTTyOdYhbksyA_YjDORVemJRmzEVAUZMBis"],
success: (res2) => {
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:339", "????", res2);
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:295", "????", res2);
common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.reLaunch({
url: `/pages/login/specialsmall?type=1&special=${common_vendor.index.getStorageSync("backhuancun").id === null}`
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/where.vue:346", "订阅接口调用失败:", err);
common_vendor.index.__f__("error", "at pages/addjigou/where.vue:302", "订阅接口调用失败:", err);
common_vendor.index.showToast({
title: "订阅失败",
icon: "none"
@ -241,7 +227,7 @@ const _sfc_main = {
common_vendor.onShow(() => {
const data = common_vendor.index.getStorageSync("dingwei");
if (data) {
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:441", "data", data);
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:385", "data", data);
jigouweizhi.value = data.name;
form.orgAddress = data.name;
form.orgCoordinateLo = data.lng;

View File

@ -0,0 +1,357 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
if (!Array) {
const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
_easycom_u_action_sheet2();
}
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) {
(model + _easycom_u_action_sheet)();
}
const model = () => "../../compontent/public/model.js";
const _sfc_main = {
__name: "IDcard",
setup(__props) {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const bottomshow = common_vendor.ref(false);
const bottomlist = [{
text: "拍摄图片",
fontSize: 40
}, {
text: "图片预览",
fontSize: 40
}];
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = common_vendor.reactive(["", "", "", "", "", "", "", ""]);
const fontphoto = common_vendor.ref("");
const endphoto = common_vendor.ref("");
common_vendor.ref(0);
const photoclick = (element) => {
if (element) {
common_vendor.index.previewImage({
urls: [headImge.value, backImge.value],
// 必填,所有要预览的图片地址数组
current: targetphoto.value ? backImge.value : headImge.value,
// 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default",
// 可选指示器样式H5/App 有效,值为 'default'(圆点)或 'number'(数字)
longPressActions: {
// 可选,仅 App 支持,长按图片时弹出的操作项
itemList: ["保存图片到相册"]
}
});
} else {
getMessage();
}
};
const tempImagePath = common_vendor.ref("");
const targetphoto = common_vendor.ref(0);
const selectphoto = (number) => {
if (!uping.value) {
return;
}
if (backImge.value && headImge.value) {
targetphoto.value = number;
bottomshow.value = true;
} else {
getMessage();
}
};
function getMessage() {
common_vendor.index.chooseImage({
count: 1,
sourceType: ["album", "camera"],
success: (chooseRes) => {
tempImagePath.value = chooseRes.tempFilePaths[0];
common_vendor.index.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/IDcard.vue:171", "拍照失败:", err);
}
});
}
const headImge = common_vendor.ref("");
const backImge = common_vendor.ref("");
function uploadImage(filePath) {
uping.value = false;
common_vendor.index.showLoading();
common_vendor.index.uploadFile({
url: `${request_index.base_url}/api/ocr/idCard`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {},
success: (uploadRes) => {
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:209", "token", common_vendor.index.getStorageSync("token"));
if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "识别失败",
icon: "error",
duration: 2e3
});
uping.value = true;
return;
}
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
textArray[0] = father.name;
textArray[1] = father.sex;
textArray[2] = father.idNumber;
textArray[3] = father.ethnicity;
textArray[4] = father.birthDate;
textArray[5] = father.address;
headImge.value = filePath;
savephoto(filePath, 0);
} else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod;
backImge.value = filePath;
savephoto(filePath, 1);
} else {
common_vendor.index.hideLoading();
common_vendor.index.showToast({
title: "识别失败",
icon: "error",
duration: 2e3
});
uping.value = true;
}
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
}
const uping = common_vendor.ref(true);
const savephoto = (filePath, type) => {
common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {
biz: `temp`
},
success: (uploadRes) => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message;
} else {
endphoto.value = JSON.parse(uploadRes.data).message;
}
common_vendor.index.hideLoading();
if (JSON.parse(uploadRes.data).code == 401) {
common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {
biz: `temp`
},
success: (uploadRes2) => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes2.data).message;
} else {
endphoto.value = JSON.parse(uploadRes2.data).message;
}
uping.value = true;
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
}
uping.value = true;
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
};
function isAtLeastEightChars(str) {
return typeof str === "string" && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true;
}
};
const next = () => {
if (!fontphoto.value) {
common_vendor.index.showToast({
title: "请上传身份证正面",
icon: "error"
});
return;
} else if (!endphoto.value) {
common_vendor.index.showToast({
title: "请上传身份证背面",
icon: "error"
});
return;
}
const allNonEmpty = textArray.every((item) => {
return item !== "";
});
if (!uping.value) {
return;
}
if (allNonEmpty) {
const range = textArray[7];
const [start, end] = range.split("-");
let data = common_vendor.index.getStorageSync("backhuancun");
data.startTime = start;
data.endTime = end;
data.name = textArray[0];
data.sex = textArray[1];
data.idCard = textArray[2];
data.national = textArray[3];
data.birthDate = textArray[4];
data.idCardAddress = textArray[5];
data.issuingAuthority = textArray[6];
data.cardZmPath = fontphoto.value;
data.cardFmPath = endphoto.value;
common_vendor.index.setStorageSync("backhuancun", data);
common_vendor.index.navigateTo({
url: "/pages/addstaff/bankcard"
});
} else {
common_vendor.index.showToast({
title: "请上传清晰的身份证",
icon: "error"
});
}
};
const goBack = () => {
if (!uping.value) {
return;
}
if (textArray[0]) {
let data = common_vendor.index.getStorageSync("backhuancun");
const range = textArray[7];
const [start, end] = range.split("-");
data.startTime = start;
data.endTime = end;
data.name = textArray[0];
data.sex = textArray[1];
data.idCard = textArray[2];
data.national = textArray[3];
data.birthDate = textArray[4];
data.idCardAddress = textArray[5];
data.issuingAuthority = textArray[6];
data.cardZmPath = fontphoto.value;
data.cardFmPath = endphoto.value;
common_vendor.index.setStorageSync("backhuancun", data);
}
common_vendor.index.navigateBack();
};
common_vendor.onLoad(() => {
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:405", "11", common_vendor.index.getStorageSync("backhuancun"));
if (common_vendor.index.getStorageSync("backhuancun").name) {
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:407", "????", common_vendor.index.getStorageSync("backhuancun"));
let data = common_vendor.index.getStorageSync("backhuancun");
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`;
fontphoto.value = data.cardZmPath;
endphoto.value = data.cardFmPath;
} else if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata");
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`;
fontphoto.value = data.cardZmPath;
endphoto.value = data.cardFmPath;
}
});
common_vendor.onShow(() => {
const img = common_vendor.index.getStorageSync("imgkey0");
if (img) {
uploadImage(img);
common_vendor.index.removeStorageSync("imgkey0");
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => show.value = false),
b: common_vendor.p({
show: show.value,
content: content.value
}),
c: common_vendor.o(goBack),
d: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDcard.png`,
e: !fontphoto.value
}, !fontphoto.value ? {} : {}, {
f: common_vendor.o(($event) => selectphoto(0)),
g: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`,
h: !endphoto.value
}, !endphoto.value ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(1)),
j: common_vendor.f(nameArray, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.t(textArray[index] ? textArray[index] : "自动获取"),
c: index,
d: common_vendor.o(($event) => openLook(textArray[index]), index)
};
}),
k: common_vendor.o(goBack),
l: common_vendor.o(next),
m: common_vendor.o(photoclick),
n: common_vendor.o(($event) => bottomshow.value = $event),
o: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7bdeba37"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addstaff/IDcard.js.map

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "入职登记表",
"usingComponents": {
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet",
"model": "../../compontent/public/model"
}
}

View File

@ -0,0 +1 @@
<view class="container data-v-7bdeba37"><model wx:if="{{b}}" class="data-v-7bdeba37" bindclose="{{a}}" u-i="7bdeba37-0" bind:__l="__l" u-p="{{b}}"/><view class="title-back data-v-7bdeba37"><view class="left-father data-v-7bdeba37" bindtap="{{c}}"><image class="back-img data-v-7bdeba37" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-7bdeba37" style="font-size:30rpx">入职登记表</view></view></view><view class="white-content data-v-7bdeba37"><view class="content-title data-v-7bdeba37"><view class="shu data-v-7bdeba37"></view><view class="content-weight data-v-7bdeba37">身份证</view></view><view class="white-photo data-v-7bdeba37" bindtap="{{f}}"><view class="photo-left data-v-7bdeba37"><view class="photo-weight data-v-7bdeba37">人像面</view><view class="photo-font data-v-7bdeba37">请上传身份证人像面</view></view><view class="data-v-7bdeba37" style="position:relative"><image class="photo data-v-7bdeba37" src="{{d}}"/><image wx:if="{{e}}" class="data-v-7bdeba37" 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 data-v-7bdeba37" style="margin-top:30rpx" bindtap="{{i}}"><view class="photo-left data-v-7bdeba37"><view class="photo-weight data-v-7bdeba37">国徽面</view><view class="photo-font data-v-7bdeba37">请上传身份证国徽面</view></view><view class="data-v-7bdeba37" style="position:relative"><image class="photo data-v-7bdeba37" src="{{g}}"/><image wx:if="{{h}}" class="data-v-7bdeba37" 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 data-v-7bdeba37" style="margin:20rpx 0"><view class="shu data-v-7bdeba37"></view><view class="content-weight data-v-7bdeba37">确认身份证信息</view></view><view class="white-message data-v-7bdeba37"><view class="data-v-7bdeba37"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="one data-v-7bdeba37" bindtap="{{item.d}}"><view class="one-left data-v-7bdeba37">{{item.a}}</view><view class="one-right data-v-7bdeba37">{{item.b}}</view></view></view></view></view><view class="gray-font data-v-7bdeba37"><view class="data-v-7bdeba37" style="color:#333333">注意事项:</view><view class="data-v-7bdeba37" style="margin-top:30rpx;font-size:28rpx"><view class="line data-v-7bdeba37">1.同一个身份证号只能认证一个账号。</view><view class="line data-v-7bdeba37">2.国徽与正面信息应为同一身份证的信息且在有效期内。</view><view class="line data-v-7bdeba37">3.所有上传照片需清晰且未遮挡,请勿进行美化和修改。</view><view class="line data-v-7bdeba37">4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。</view></view></view><view class="data-v-7bdeba37" style="display:flex;width:100%;padding:0 10%;justify-content:space-between"><view class="back-button data-v-7bdeba37" bindtap="{{k}}"> 返回上一步 </view><view class="finish-button data-v-7bdeba37" bindtap="{{l}}"> 确认并继续 </view></view><u-action-sheet wx:if="{{o}}" class="data-v-7bdeba37" bindclick="{{m}}" u-i="7bdeba37-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></u-action-sheet></view>

View File

@ -0,0 +1,180 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果您是插件开发者建议您使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果您是App开发者插件使用者您可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果您的项目同样使用了scss预处理您也可以直接在您的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container.data-v-7bdeba37 {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
}
.container .white-content.data-v-7bdeba37 {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
}
.container .white-content .content-title.data-v-7bdeba37 {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
}
.container .white-content .content-title .content-weight.data-v-7bdeba37 {
font-size: 32rpx;
}
.container .white-content .content-title .content-img.data-v-7bdeba37 {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
.container .white-photo.data-v-7bdeba37 {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
}
.container .white-photo .photo.data-v-7bdeba37 {
width: 300rpx;
height: 200rpx;
}
.container .white-message.data-v-7bdeba37 {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
}
.container .white-message .message-title.data-v-7bdeba37 {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
}
.container .white-message .message-title .message-weight.data-v-7bdeba37 {
font-size: 30rpx;
}
.container .white-message .one.data-v-7bdeba37 {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.container .white-message .one .one-left.data-v-7bdeba37 {
margin-left: 10rpx;
font-size: 30rpx;
}
.container .white-message .one .one-right.data-v-7bdeba37 {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
.photo-left .photo-weight.data-v-7bdeba37 {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-left .photo-font.data-v-7bdeba37 {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
.gray-font.data-v-7bdeba37 {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
.title-back.data-v-7bdeba37 {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father.data-v-7bdeba37 {
display: flex;
align-items: center;
}
.left-father .back-img.data-v-7bdeba37 {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
.shu.data-v-7bdeba37 {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line.data-v-7bdeba37 {
margin: 10rpx 0;
}
.finish-button.data-v-7bdeba37 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button.data-v-7bdeba37 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}

View File

@ -0,0 +1,156 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
if (!Math) {
model();
}
const model = () => "../../compontent/public/model.js";
const _sfc_main = {
__name: "all",
setup(__props) {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const statusarray = ["loading", "success", "fail"];
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = common_vendor.reactive(["", "", "", "", "", "", "", ""]);
const headImge = common_vendor.ref("");
const headImge0 = common_vendor.ref("");
const nameArray0 = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray0 = common_vendor.reactive(["", "", "", "", "", "", ""]);
const nameArray1 = ["机构位置", "详细地址", "机构负责人", "机构负责人电话", "房屋性质", "建筑面积"];
const textArray1 = common_vendor.reactive(["", "", "", "", "", ""]);
const backImge = common_vendor.ref("");
common_vendor.ref("");
common_vendor.ref("");
const statesTarget = common_vendor.ref(0);
common_vendor.ref("");
function getMessage(url) {
common_vendor.index.previewImage({
current: url,
// 当前显示图片的链接
urls: [url],
// 可以预览的图片列表
indicator: "default",
// 显示面板指示点,'default'|'number'|'none'
loop: true,
// 是否可循环预览
longPressActions: {
itemList: ["保存图片"],
success: (data) => {
common_vendor.index.__f__("log", "at pages/addstaff/all.vue:173", "长按操作成功", data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/all.vue:176", "长按操作失败", err);
}
}
});
}
function isAtLeastEightChars(str) {
return typeof str === "string" && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true;
}
};
const goBack = () => {
common_vendor.index.navigateBack();
};
const alldata = common_vendor.ref("");
const contentred = common_vendor.ref("");
const special = common_vendor.ref(false);
common_vendor.onLoad((options) => {
if (options.special) {
special.value = true;
}
alldata.value = JSON.parse(options.element);
let data = alldata.value;
if (data.content) {
contentred.value = data.content;
}
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.birthDate;
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`;
textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson;
headImge0.value = `${request_index.base_url}/sys/common/static/${data.comBusinessLicense}`;
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText != null ? data.orgCity_dictText : ``) + (data.orgDistrict_dictText != null ? data.orgDistrict_dictText : ``);
textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader;
textArray1[3] = data.orgLeaderPhone;
textArray1[4] = data.orgPropertyType;
if (data.orgBuildingArea) {
textArray1[5] = data.orgBuildingArea + "m²";
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => show.value = false),
b: common_vendor.p({
show: show.value,
content: content.value
}),
c: common_vendor.o(goBack),
d: statesTarget.value == 3 || alldata.value.status == `5` || alldata.value.status == `3`
}, statesTarget.value == 3 || alldata.value.status == `5` || alldata.value.status == `3` ? {
e: common_vendor.t(contentred.value)
} : {}, {
f: !special.value ? `https://www.focusnu.com/media/directive/index/${statusarray[statesTarget.value - 1]}.png` : ``,
g: common_vendor.s(special.value ? {
height: `100rpx`
} : {
height: `140rpx`
}),
h: headImge.value ? headImge.value : `https://www.focusnu.com/media/directive/index/IDcard.png`,
i: !headImge.value
}, !headImge.value ? {} : {}, {
j: common_vendor.o(($event) => getMessage(headImge.value)),
k: backImge.value ? backImge.value : `https://www.focusnu.com/media/directive/index/backIDcard.png`,
l: !backImge.value
}, !backImge.value ? {} : {}, {
m: common_vendor.o(($event) => getMessage(backImge.value)),
n: common_vendor.f(nameArray, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.t(textArray[index] ? textArray[index] : "自动获取"),
c: index,
d: common_vendor.o(($event) => openLook(textArray[index]), index)
};
}),
o: headImge0.value ? headImge0.value : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
p: !headImge0.value
}, !headImge0.value ? {} : {}, {
q: common_vendor.o(($event) => getMessage(headImge0.value)),
r: common_vendor.f(nameArray0, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.t(textArray0[index] ? textArray0[index] : "自动获取"),
c: index,
d: common_vendor.o(($event) => openLook(textArray0[index]), index)
};
}),
s: common_vendor.f(nameArray1, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.t(textArray1[index] ? textArray1[index] : "自动获取"),
c: index,
d: common_vendor.o(($event) => openLook(textArray1[index]), index)
};
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-919262b9"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addstaff/all.js.map

View File

@ -0,0 +1,6 @@
{
"navigationBarTitleText": "入职登记表",
"usingComponents": {
"model": "../../compontent/public/model"
}
}

View File

@ -0,0 +1 @@
<view class="container data-v-919262b9"><model wx:if="{{b}}" class="data-v-919262b9" bindclose="{{a}}" u-i="919262b9-0" bind:__l="__l" u-p="{{b}}"/><image class="greenbgc data-v-919262b9" src="https://www.focusnu.com/media/directive/index/greenbgc.png"/><view class="title-back data-v-919262b9"><view class="left-father data-v-919262b9" bindtap="{{c}}"><image class="back-img data-v-919262b9" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-919262b9" style="font-size:30rpx">机构加盟</view></view></view><view wx:if="{{d}}" class="contentred data-v-919262b9"><view class="contentred-bgc data-v-919262b9"> 驳回原因:{{e}}</view></view><view class="white-content data-v-919262b9"><view class="content-title data-v-919262b9" style="{{g + ';' + 'position:relative;margin-bottom:20rpx;z-index:999'}}"><view class="shu data-v-919262b9"></view><view class="content-weight data-v-919262b9">身份证</view><image class="shu-img data-v-919262b9" src="{{f}}"/></view><view class="white-photo data-v-919262b9" bindtap="{{j}}"><view class="photo-left data-v-919262b9"><view class="photo-weight data-v-919262b9">人像面</view><view class="photo-font data-v-919262b9">请上传身份证人像面</view></view><view class="data-v-919262b9" style="position:relative"><image class="photo data-v-919262b9" src="{{h}}"/><image wx:if="{{i}}" class="data-v-919262b9" 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 data-v-919262b9" style="margin-top:30rpx" bindtap="{{m}}"><view class="photo-left data-v-919262b9"><view class="photo-weight data-v-919262b9">国徽面</view><view class="photo-font data-v-919262b9">请上传身份证国徽面</view></view><view class="data-v-919262b9" style="position:relative"><image class="photo data-v-919262b9" src="{{k}}"/><image wx:if="{{l}}" class="data-v-919262b9" 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 data-v-919262b9" style="margin:20rpx 0"><view class="shu data-v-919262b9"></view><view class="content-weight data-v-919262b9">确认身份证信息</view></view><view class="white-message data-v-919262b9"><view class="data-v-919262b9"><view wx:for="{{n}}" wx:for-item="item" wx:key="c" class="one data-v-919262b9" bindtap="{{item.d}}"><view class="one-left data-v-919262b9">{{item.a}}</view><view class="one-right data-v-919262b9">{{item.b}}</view></view></view></view></view><view class="white-content data-v-919262b9"><view class="content-title data-v-919262b9" style="margin-bottom:30rpx"><view class="shu data-v-919262b9"></view><view class="content-weight data-v-919262b9">营业执照</view></view><view class="white-photo data-v-919262b9" bindtap="{{q}}"><view class="photo-left data-v-919262b9"><view class="photo-weight data-v-919262b9">营业执照</view><view class="photo-font data-v-919262b9">请上传营业执照</view></view><view class="data-v-919262b9" style="position:relative"><image class="photo data-v-919262b9" src="{{o}}"/><image wx:if="{{p}}" class="data-v-919262b9" 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 data-v-919262b9" style="margin-top:30rpx"><view class="shu data-v-919262b9"></view><view class="content-weight data-v-919262b9">企业信息</view></view><view class="white-message data-v-919262b9"><view class="data-v-919262b9"><view wx:for="{{r}}" wx:for-item="item" wx:key="c" class="one data-v-919262b9" bindtap="{{item.d}}"><view class="one-left data-v-919262b9">{{item.a}}</view><view class="one-right data-v-919262b9">{{item.b}}</view></view></view></view><view class="content-title data-v-919262b9"><view class="shu data-v-919262b9"></view><view class="content-weight data-v-919262b9">机构信息</view></view></view><view class="white-content data-v-919262b9" style="margin-top:0rpx"><view class="white-message data-v-919262b9"><view class="data-v-919262b9" style="margin-bottom:20rpx"><view wx:for="{{s}}" wx:for-item="item" wx:key="c" class="one data-v-919262b9" bindtap="{{item.d}}"><view class="one-left data-v-919262b9">{{item.a}}</view><view class="one-right data-v-919262b9">{{item.b}}</view></view></view></view></view><view class="data-v-919262b9" style="display:flex;width:100%;margin-top:40rpx"></view></view>

View File

@ -0,0 +1,181 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果您是插件开发者建议您使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果您是App开发者插件使用者您可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果您的项目同样使用了scss预处理您也可以直接在您的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container.data-v-919262b9 {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
}
.container .white-content.data-v-919262b9 {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
}
.container .white-content .content-title.data-v-919262b9 {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
}
.container .white-content .content-title .content-weight.data-v-919262b9 {
font-size: 32rpx;
}
.container .white-content .content-title .content-img.data-v-919262b9 {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
.container .white-photo.data-v-919262b9 {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
}
.container .white-photo .photo.data-v-919262b9 {
width: 300rpx;
height: 200rpx;
}
.container .white-message.data-v-919262b9 {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
}
.container .white-message .one.data-v-919262b9 {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.container .white-message .one .one-left.data-v-919262b9 {
margin-left: 10rpx;
font-size: 30rpx;
}
.container .white-message .one .one-right.data-v-919262b9 {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
.photo-left.data-v-919262b9 {
z-index: 1;
}
.photo-left .photo-weight.data-v-919262b9 {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-left .photo-font.data-v-919262b9 {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
.gray-font.data-v-919262b9 {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
.title-back.data-v-919262b9 {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father.data-v-919262b9 {
display: flex;
align-items: center;
z-index: 1;
}
.left-father .back-img.data-v-919262b9 {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
.shu.data-v-919262b9 {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line.data-v-919262b9 {
margin: 10rpx 0;
}
.shu-img.data-v-919262b9 {
position: absolute;
right: 20rpx;
top: 40%;
transform: translateY(-40%);
width: 150rpx;
height: 130rpx;
}
.greenbgc.data-v-919262b9 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 700rpx;
}
.contentred.data-v-919262b9 {
width: 90%;
border: dashed 3rpx #FF4B2F;
border-radius: 15rpx;
margin: 15rpx 0;
margin-left: 5%;
padding: 5rpx;
}
.contentred .contentred-bgc.data-v-919262b9 {
background-color: #f0e4e4;
border-radius: 15rpx;
color: red;
padding: 20rpx;
padding-bottom: 30rpx;
}

View File

@ -0,0 +1,3 @@
"use strict";
require("../../../common/vendor.js");
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/addstaff/api/addjigou.js.map

View File

@ -0,0 +1,300 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
if (!Array) {
const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
_easycom_u_action_sheet2();
}
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) {
(model + _easycom_u_action_sheet)();
}
const model = () => "../../compontent/public/model.js";
const _sfc_main = {
__name: "bankcard",
setup(__props) {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const bottomshow = common_vendor.ref(false);
const bottomlist = [{
text: "拍摄图片",
fontSize: 40
}, {
text: "图片预览",
fontSize: 40
}];
const nameArray = ["开户行", "开户行卡号"];
const textArray = common_vendor.reactive(["", ""]);
const fontphoto = common_vendor.ref("");
const endphoto = common_vendor.ref("");
common_vendor.ref(0);
const photoclick = (element) => {
if (element) {
common_vendor.index.previewImage({
urls: [headImge.value, backImge.value],
// 必填,所有要预览的图片地址数组
current: targetphoto.value ? backImge.value : headImge.value,
// 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default",
// 可选指示器样式H5/App 有效,值为 'default'(圆点)或 'number'(数字)
longPressActions: {
// 可选,仅 App 支持,长按图片时弹出的操作项
itemList: ["保存图片到相册"]
}
});
} else {
getMessage();
}
};
const tempImagePath = common_vendor.ref("");
const targetphoto = common_vendor.ref(0);
const selectphoto = (number) => {
if (!uping.value) {
return;
}
targetphoto.value = number;
if (backImge.value && headImge.value) {
bottomshow.value = true;
} else {
getMessage();
}
};
function getMessage() {
common_vendor.index.chooseImage({
count: 1,
sourceType: ["album", "camera"],
success: (chooseRes) => {
tempImagePath.value = chooseRes.tempFilePaths[0];
common_vendor.index.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/bankcard.vue:167", "拍照失败:", err);
}
});
}
const headImge = common_vendor.ref("");
const backImge = common_vendor.ref("");
function uploadImage(filePath) {
uping.value = false;
common_vendor.index.showLoading();
common_vendor.index.uploadFile({
url: `${request_index.base_url}/api/ocr/bankCard`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {},
success: (uploadRes) => {
savephoto(filePath, targetphoto.value);
if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.hideLoading();
uping.value = true;
return;
}
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.bankName) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.bankName;
textArray[1] = father.cardNumber;
uping.value = true;
} else {
common_vendor.index.hideLoading();
uping.value = true;
}
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
}
const uping = common_vendor.ref(true);
const savephoto = (filePath, type) => {
common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {
biz: `temp`
},
success: (uploadRes) => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes.data).message;
} else {
endphoto.value = JSON.parse(uploadRes.data).message;
}
common_vendor.index.hideLoading();
if (JSON.parse(uploadRes.data).code == 401) {
common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {
biz: `temp`
},
success: (uploadRes2) => {
if (!type) {
fontphoto.value = JSON.parse(uploadRes2.data).message;
} else {
endphoto.value = JSON.parse(uploadRes2.data).message;
}
uping.value = true;
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
}
uping.value = true;
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
};
function isAtLeastEightChars(str) {
return typeof str === "string" && str.length >= 12;
}
const openLook = (res) => {
if (isAtLeastEightChars(res)) {
content.value = res;
show.value = true;
}
};
const next = () => {
if (!fontphoto.value) {
common_vendor.index.showToast({
title: "请上银行卡正面",
icon: "none"
});
return;
} else if (!endphoto.value) {
common_vendor.index.showToast({
title: "请上传银行卡背面",
icon: "none"
});
return;
}
const allNonEmpty = textArray.every((item) => {
return item !== "";
});
if (!uping.value) {
return;
}
if (allNonEmpty) {
let data = common_vendor.index.getStorageSync("backhuancun");
data.openingBank = textArray[0];
data.bankCard = textArray[1];
data.bankZmPath = fontphoto.value;
data.bankFmPath = endphoto.value;
common_vendor.index.setStorageSync("backhuancun", data);
common_vendor.index.navigateTo({
url: "/pages/addstaff/healthcertificate"
});
} else {
common_vendor.index.showToast({
title: "请上传清晰的身份证",
icon: "error"
});
}
};
const goBack = () => {
if (!uping.value) {
return;
}
if (textArray[0]) {
let data = common_vendor.index.getStorageSync("backhuancun");
data.openingBank = textArray[0];
data.bankCard = textArray[1];
data.bankZmPath = fontphoto.value;
data.bankFmPath = endphoto.value;
common_vendor.index.setStorageSync("backhuancun", data);
}
common_vendor.index.navigateBack();
};
common_vendor.onLoad(() => {
if (common_vendor.index.getStorageSync("backhuancun").openingBank) {
let data = common_vendor.index.getStorageSync("backhuancun");
textArray[0] = data.openingBank;
textArray[1] = data.bankCard;
fontphoto.value = data.bankZmPath;
endphoto.value = data.bankFmPath;
} else if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata");
textArray[0] = data.openingBank;
textArray[1] = data.bankCard;
fontphoto.value = data.bankZmPath;
endphoto.value = data.bankFmPath;
}
});
common_vendor.onShow(() => {
const img = common_vendor.index.getStorageSync("imgkey0");
if (img) {
uploadImage(img);
common_vendor.index.removeStorageSync("imgkey0");
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => show.value = false),
b: common_vendor.p({
show: show.value,
content: content.value
}),
c: common_vendor.o(goBack),
d: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDcard.png`,
e: !fontphoto.value
}, !fontphoto.value ? {} : {}, {
f: common_vendor.o(($event) => selectphoto(0)),
g: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`,
h: !endphoto.value
}, !endphoto.value ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(1)),
j: common_vendor.f(nameArray, (item, index, i0) => {
return {
a: common_vendor.t(item),
b: common_vendor.t(textArray[index] ? textArray[index] : "自动获取"),
c: index,
d: common_vendor.o(($event) => openLook(textArray[index]), index)
};
}),
k: common_vendor.o(goBack),
l: common_vendor.o(next),
m: common_vendor.o(photoclick),
n: common_vendor.o(($event) => bottomshow.value = $event),
o: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b0243273"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addstaff/bankcard.js.map

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "入职登记表",
"usingComponents": {
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet",
"model": "../../compontent/public/model"
}
}

View File

@ -0,0 +1 @@
<view class="container data-v-b0243273"><model wx:if="{{b}}" class="data-v-b0243273" bindclose="{{a}}" u-i="b0243273-0" bind:__l="__l" u-p="{{b}}"/><view class="title-back data-v-b0243273"><view class="left-father data-v-b0243273" bindtap="{{c}}"><image class="back-img data-v-b0243273" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-b0243273" style="font-size:30rpx">入职登记表</view></view></view><view class="white-content data-v-b0243273"><view class="content-title data-v-b0243273"><view class="shu data-v-b0243273"></view><view class="content-weight data-v-b0243273">银行卡</view></view><view class="white-photo data-v-b0243273" bindtap="{{f}}"><view class="photo-left data-v-b0243273"><view class="photo-weight data-v-b0243273">银行卡正面</view><view class="photo-font data-v-b0243273">请上传银行卡正面</view></view><view class="data-v-b0243273" style="position:relative"><image class="photo data-v-b0243273" src="{{d}}"/><image wx:if="{{e}}" class="data-v-b0243273" 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 data-v-b0243273" style="margin-top:30rpx" bindtap="{{i}}"><view class="photo-left data-v-b0243273"><view class="photo-weight data-v-b0243273">银行卡反面</view><view class="photo-font data-v-b0243273">请上传银行卡反面</view></view><view class="data-v-b0243273" style="position:relative"><image class="photo data-v-b0243273" src="{{g}}"/><image wx:if="{{h}}" class="data-v-b0243273" 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 data-v-b0243273" style="margin:20rpx 0"><view class="shu data-v-b0243273"></view><view class="content-weight data-v-b0243273">确认身份证信息</view></view><view class="white-message data-v-b0243273"><view class="data-v-b0243273"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="one data-v-b0243273" bindtap="{{item.d}}"><view class="one-left data-v-b0243273">{{item.a}}</view><view class="one-right data-v-b0243273">{{item.b}}</view></view></view></view></view><view class="data-v-b0243273" style="display:flex;width:100%;padding:0 10%;justify-content:space-between"><view class="back-button data-v-b0243273" bindtap="{{k}}"> 返回上一步 </view><view class="finish-button data-v-b0243273" bindtap="{{l}}"> 确认并继续 </view></view><u-action-sheet wx:if="{{o}}" class="data-v-b0243273" bindclick="{{m}}" u-i="b0243273-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></u-action-sheet></view>

View File

@ -0,0 +1,180 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果您是插件开发者建议您使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果您是App开发者插件使用者您可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果您的项目同样使用了scss预处理您也可以直接在您的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container.data-v-b0243273 {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
}
.container .white-content.data-v-b0243273 {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
}
.container .white-content .content-title.data-v-b0243273 {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
}
.container .white-content .content-title .content-weight.data-v-b0243273 {
font-size: 32rpx;
}
.container .white-content .content-title .content-img.data-v-b0243273 {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
.container .white-photo.data-v-b0243273 {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
}
.container .white-photo .photo.data-v-b0243273 {
width: 300rpx;
height: 200rpx;
}
.container .white-message.data-v-b0243273 {
width: 100%;
margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
}
.container .white-message .message-title.data-v-b0243273 {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
}
.container .white-message .message-title .message-weight.data-v-b0243273 {
font-size: 30rpx;
}
.container .white-message .one.data-v-b0243273 {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.container .white-message .one .one-left.data-v-b0243273 {
margin-left: 10rpx;
font-size: 30rpx;
}
.container .white-message .one .one-right.data-v-b0243273 {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
}
.photo-left .photo-weight.data-v-b0243273 {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
.photo-left .photo-font.data-v-b0243273 {
font-size: 28rpx;
margin-top: 10rpx;
color: #666;
}
.gray-font.data-v-b0243273 {
padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999;
}
.title-back.data-v-b0243273 {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father.data-v-b0243273 {
display: flex;
align-items: center;
}
.left-father .back-img.data-v-b0243273 {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
.shu.data-v-b0243273 {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line.data-v-b0243273 {
margin: 10rpx 0;
}
.finish-button.data-v-b0243273 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button.data-v-b0243273 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}

View File

@ -0,0 +1,184 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
if (!Array) {
const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
_easycom_u_action_sheet2();
}
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) {
(model + _easycom_u_action_sheet)();
}
const model = () => "../../compontent/public/model.js";
const _sfc_main = {
__name: "healthcertificate",
setup(__props) {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const imgArray = common_vendor.reactive(["", "", "", ""]);
common_vendor.reactive(["", "", "", ""]);
const bottomlist = [{
text: "拍摄图片",
fontSize: 40
}, {
text: "图片预览",
fontSize: 40
}];
const bottomshow = common_vendor.ref(false);
const tempImagePath = common_vendor.ref("");
const imgetarget = common_vendor.ref(0);
const selectphoto = (number) => {
if (!uping.value) {
return;
}
imgetarget.value = number;
if (imgArray[number]) {
bottomshow.value = true;
} else {
getMessage();
}
};
const photoclick = (element) => {
if (element) {
common_vendor.index.previewImage({
urls: [`${request_index.base_url}/sys/common/static/${imgArray[imgetarget.value]}`],
// 必填,所有要预览的图片地址数组
// current: headImge.value, // 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default",
// 可选指示器样式H5/App 有效,值为 'default'(圆点)或 'number'(数字)
longPressActions: {
// 可选,仅 App 支持,长按图片时弹出的操作项
itemList: ["保存图片到相册"]
}
});
} else {
getMessage();
}
};
function getMessage() {
common_vendor.index.chooseImage({
count: 1,
sourceType: ["album", "camera"],
success: (chooseRes) => {
tempImagePath.value = chooseRes.tempFilePaths[0];
common_vendor.index.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/healthcertificate.vue:186", "拍照失败:", err);
}
});
}
common_vendor.ref("");
common_vendor.ref("");
const uping = common_vendor.ref(true);
common_vendor.ref("");
const savephoto = (filePath) => {
uping.value = false;
common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`,
// 替换为您的POST接口地址
filePath,
name: "file",
// 后端接收时的字段名
header: {
"X-Access-Token": common_vendor.index.getStorageSync("token") || ""
},
formData: {
biz: `temp`
},
success: (uploadRes) => {
imgArray[imgetarget.value] = JSON.parse(uploadRes.data).message;
uping.value = true;
common_vendor.index.hideLoading();
},
fail: (err) => {
common_vendor.index.showToast({
title: "上传出错",
icon: "error"
});
common_vendor.index.hideLoading();
}
});
};
const next = () => {
if (!uping.value) {
return;
}
};
common_vendor.onLoad(() => {
if (common_vendor.index.getStorageSync("backhuancun").healthZmPath) {
let data = common_vendor.index.getStorageSync("backhuancun");
imgArray[0] = data.healthZmPath;
imgArray[1] = data.healthFmPath;
imgArray[2] = data.qualificationPath;
imgArray[3] = data.noCrimeCertificate;
} else if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata");
imgArray[0] = data.healthZmPath;
imgArray[1] = data.healthFmPath;
imgArray[2] = data.qualificationPath;
imgArray[3] = data.noCrimeCertificate;
}
});
const goBack = () => {
if (!uping.value) {
return;
}
if (imgArray[0] || imgArray[1] || imgArray[2] || imgArray[3]) {
let data = common_vendor.index.getStorageSync("backhuancun");
data.healthZmPath = imgArray[0];
data.healthFmPath = imgArray[1];
data.qualificationPath = imgArray[2];
data.noCrimeCertificate = imgArray[3];
common_vendor.index.setStorageSync("backhuancun", data);
}
common_vendor.index.navigateBack();
};
common_vendor.onShow(() => {
const img = common_vendor.index.getStorageSync("imgkey0");
if (img) {
savephoto(img);
common_vendor.index.removeStorageSync("imgkey0");
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(($event) => show.value = false),
b: common_vendor.p({
show: show.value,
content: content.value
}),
c: common_vendor.o(goBack),
d: imgArray[0] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
e: !imgArray[0]
}, !imgArray[0] ? {} : {}, {
f: common_vendor.o(($event) => selectphoto(0)),
g: imgArray[1] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[1]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
h: !imgArray[1]
}, !imgArray[1] ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(1)),
j: imgArray[2] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
k: !imgArray[2]
}, !imgArray[2] ? {} : {}, {
l: common_vendor.o(($event) => selectphoto(2)),
m: imgArray[3] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
n: !imgArray[3]
}, !imgArray[3] ? {} : {}, {
o: common_vendor.o(($event) => selectphoto(3)),
p: common_vendor.o(goBack),
q: common_vendor.o(next),
r: common_vendor.o(photoclick),
s: common_vendor.o(($event) => bottomshow.value = $event),
t: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bef94c05"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addstaff/healthcertificate.js.map

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "入职登记表",
"usingComponents": {
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet",
"model": "../../compontent/public/model"
}
}

View File

@ -0,0 +1 @@
<view class="container data-v-bef94c05"><model wx:if="{{b}}" class="data-v-bef94c05" bindclose="{{a}}" u-i="bef94c05-0" bind:__l="__l" u-p="{{b}}"/><view class="title-back data-v-bef94c05"><view class="left-father data-v-bef94c05" bindtap="{{c}}"><image class="back-img data-v-bef94c05" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-bef94c05" style="font-size:30rpx">入职登记表</view></view></view><view class="white-content data-v-bef94c05"><view class="content-title data-v-bef94c05"><view class="shu data-v-bef94c05"></view><view class="content-weight data-v-bef94c05">健康证</view></view><view class="white-photo data-v-bef94c05" bindtap="{{f}}"><view class="photo-left data-v-bef94c05"><view class="photo-weight data-v-bef94c05">健康证正面</view><view class="photo-font data-v-bef94c05">请上传健康证正面</view></view><view class="data-v-bef94c05" style="position:relative"><image class="photo data-v-bef94c05" src="{{d}}"/><image wx:if="{{e}}" class="data-v-bef94c05" 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 data-v-bef94c05" bindtap="{{i}}"><view class="photo-left data-v-bef94c05"><view class="photo-weight data-v-bef94c05">健康证反面</view><view class="photo-font data-v-bef94c05">请上传健康证反面</view></view><view class="data-v-bef94c05" style="position:relative"><image class="photo data-v-bef94c05" src="{{g}}"/><image wx:if="{{h}}" class="data-v-bef94c05" 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="white-content data-v-bef94c05"><view class="content-title data-v-bef94c05"><view class="shu data-v-bef94c05"></view><view class="content-weight data-v-bef94c05">资质证</view></view><view class="white-photo data-v-bef94c05" bindtap="{{l}}"><view class="photo-left data-v-bef94c05"><view class="photo-weight data-v-bef94c05">资质证</view><view class="photo-font data-v-bef94c05">请上传资质证</view></view><view class="data-v-bef94c05" style="position:relative"><image class="photo data-v-bef94c05" src="{{j}}"/><image wx:if="{{k}}" class="data-v-bef94c05" 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="white-content data-v-bef94c05"><view class="content-title data-v-bef94c05"><view class="shu data-v-bef94c05"></view><view class="content-weight data-v-bef94c05">无犯罪证明</view></view><view class="white-photo data-v-bef94c05" bindtap="{{o}}"><view class="photo-left data-v-bef94c05"><view class="photo-weight data-v-bef94c05">无犯罪证明</view><view class="photo-font data-v-bef94c05">请上传无犯罪证明</view></view><view class="data-v-bef94c05" style="position:relative"><image class="photo data-v-bef94c05" src="{{m}}"/><image wx:if="{{n}}" class="data-v-bef94c05" 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="data-v-bef94c05" style="display:flex;width:100%;padding:0 10%;justify-content:space-between;margin-top:20rpx"><view class="back-button data-v-bef94c05" bindtap="{{p}}"> 返回上一步 </view><view class="finish-button data-v-bef94c05" bindtap="{{q}}"> 确认并继续 </view></view><u-action-sheet wx:if="{{t}}" class="data-v-bef94c05" bindclick="{{r}}" u-i="bef94c05-1" bind:__l="__l" bindupdateModelValue="{{s}}" u-p="{{t}}"></u-action-sheet></view>

View File

@ -0,0 +1,185 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果您是插件开发者建议您使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果您是App开发者插件使用者您可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果您的项目同样使用了scss预处理您也可以直接在您的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container.data-v-bef94c05 {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
}
.container .white-content.data-v-bef94c05 {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
}
.container .white-content .content-title.data-v-bef94c05 {
display: flex;
align-items: center;
height: 110rpx;
position: relative;
}
.container .white-content .content-title .content-weight.data-v-bef94c05 {
font-size: 32rpx;
font-weight: 600;
margin-left: 20rpx;
}
.container .white-content .content-title .content-img.data-v-bef94c05 {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
.container .white-photo.data-v-bef94c05 {
width: 100%;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
align-items: center;
display: flex;
}
.container .white-photo .photo.data-v-bef94c05 {
width: 300rpx;
height: 200rpx;
}
.container .white-message.data-v-bef94c05 {
width: 100%;
margin-bottom: 30rpx;
padding-top: 30rpx;
padding-bottom: 30rpx;
border-radius: 35rpx;
background-color: #fff;
justify-content: space-around;
display: flex;
flex-direction: column;
}
.container .white-message .message-title.data-v-bef94c05 {
width: 100%;
height: 100rpx;
align-items: center;
display: flex;
}
.container .white-message .message-title .shu.data-v-bef94c05 {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 0rpx 0 30rpx;
}
.container .white-message .message-title .message-weight.data-v-bef94c05 {
font-size: 30rpx;
}
.container .white-message .one.data-v-bef94c05 {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.container .white-message .one .one-left.data-v-bef94c05 {
margin-left: 10rpx;
font-size: 30rpx;
}
.container .white-message .one .one-right.data-v-bef94c05 {
margin-right: 10rpx;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
max-width: 380rpx;
font-size: 30rpx;
}
.photo-left .photo-weight.data-v-bef94c05 {
font-size: 30rpx;
font-weight: 600;
}
.photo-left .photo-font.data-v-bef94c05 {
font-size: 28rpx;
margin-top: 10rpx;
}
.gray-font.data-v-bef94c05 {
padding: 30rpx 60rpx;
color: #999999;
}
.finish-button.data-v-bef94c05 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 37rpx;
font-size: 33rpx;
}
.back-button.data-v-bef94c05 {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 37rpx;
font-size: 33rpx;
}
.gray-text.data-v-bef94c05 {
margin: 10rpx 0;
font-size: 28rpx;
}
.shu.data-v-bef94c05 {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 0rpx 0 30rpx;
}
.title-back.data-v-bef94c05 {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.title-back .left-father.data-v-bef94c05 {
display: flex;
align-items: center;
}
.title-back .left-father .back-img.data-v-bef94c05 {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}

View File

@ -0,0 +1,244 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_u_select2 = common_vendor.resolveComponent("u-select");
_easycom_u_select2();
}
const _easycom_u_select = () => "../../uni_modules/vk-uview-ui/components/u-select/u-select.js";
if (!Math) {
_easycom_u_select();
}
const _sfc_main = {
__name: "information",
setup(__props) {
common_vendor.reactive(["", "", "", "", "", "", "", ""]);
const showmarry = common_vendor.ref(false);
const showmarrylist = common_vendor.reactive(
[
{
value: "已婚",
label: "已婚"
},
{
value: "未婚",
label: "未婚"
}
]
);
const showhealth = common_vendor.ref(false);
const showhealthlist = common_vendor.reactive(
[
{
value: "健康",
label: "健康"
},
{
value: "患病",
label: "患病"
}
]
);
const showface = common_vendor.ref(false);
const showfacelist = common_vendor.reactive(
[
{
value: "共产党员",
label: "共产党员"
},
{
value: "国民党",
label: "国民党"
},
{
value: "民主党",
label: "民主党"
},
{
value: "无党派",
label: "无党派"
}
]
);
const showform = common_vendor.ref(false);
const showformlist = common_vendor.reactive(
[
{
value: "非农业",
label: "非农业"
},
{
value: "农业",
label: "农业"
}
]
);
const confirmmarry = (item) => {
form.marriedOrNot = item[0].value;
};
const confirmshowhealth = (item) => {
form.healthStatus = item[0].value;
};
const confirmshowface = (item) => {
form.politicalAppearance = item[0].value;
};
const confirmshowform = (item) => {
form.hukouNature = item[0].value;
};
const form = common_vendor.reactive({
marriedOrNot: "",
tel: "",
height: "",
weight: "",
healthStatus: "",
politicalAppearance: "",
emergencyContact: "",
emergencyTel: "",
emergencyRelationship: "",
hukouNature: ""
});
function isValid11DigitNumber(val) {
return /^(\d{11})$/.test(val);
}
const next = () => {
if (!form.marriedOrNot) {
common_vendor.index.showToast({
title: "请填写婚否",
icon: "error"
});
} else if (!form.tel) {
common_vendor.index.showToast({
title: "请填写联系电话",
icon: "error"
});
} else if (!isValid11DigitNumber(form.tel)) {
common_vendor.index.showToast({
title: "手机号格式错误",
icon: "error"
});
return;
} else if (!form.height) {
common_vendor.index.showToast({
title: "请填写身高",
icon: "error"
});
} else if (!form.weight) {
common_vendor.index.showToast({
title: "请填写体重",
icon: "error"
});
} else if (!form.healthStatus) {
common_vendor.index.showToast({
title: "请填写健康状态",
icon: "error"
});
} else if (!form.politicalAppearance) {
common_vendor.index.showToast({
title: "请填写政治面貌",
icon: "error"
});
} else if (!form.emergencyContact) {
common_vendor.index.showToast({
title: "请填写紧急联系人",
icon: "none"
});
} else if (!form.emergencyTel) {
common_vendor.index.showToast({
title: "请填写紧急联系人电话",
icon: "none"
});
} else if (!isValid11DigitNumber(form.emergencyTel)) {
common_vendor.index.showToast({
title: "紧急联系人手机号格式错误",
icon: "none"
});
return;
} else if (!form.emergencyRelationship) {
common_vendor.index.showToast({
title: "请填写联系人和本人的关系",
icon: "none"
});
} else if (!form.hukouNature) {
common_vendor.index.showToast({
title: "请填写户口性质",
icon: "error"
});
} else {
const data = form;
const merged2 = {
...common_vendor.index.getStorageSync("backhuancun"),
...data
};
common_vendor.index.setStorageSync("backhuancun", merged2);
common_vendor.index.navigateTo({
url: "/pages/addstaff/IDcard"
});
}
};
const goBack = () => {
common_vendor.index.navigateBack();
};
common_vendor.onLoad(() => {
if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata");
form = data;
}
});
return (_ctx, _cache) => {
return {
a: common_vendor.o(goBack),
b: form.marriedOrNot,
c: common_vendor.o(($event) => form.marriedOrNot = $event.detail.value),
d: common_vendor.o(($event) => showmarry.value = true),
e: common_vendor.o(confirmmarry),
f: common_vendor.o(($event) => showmarry.value = $event),
g: common_vendor.p({
list: showmarrylist,
modelValue: showmarry.value
}),
h: form.tel,
i: common_vendor.o(($event) => form.tel = $event.detail.value),
j: form.height,
k: common_vendor.o(($event) => form.height = $event.detail.value),
l: form.weight,
m: common_vendor.o(($event) => form.weight = $event.detail.value),
n: form.healthStatus,
o: common_vendor.o(($event) => form.healthStatus = $event.detail.value),
p: common_vendor.o(($event) => showhealth.value = true),
q: common_vendor.o(confirmshowhealth),
r: common_vendor.o(($event) => showhealth.value = $event),
s: common_vendor.p({
list: showhealthlist,
modelValue: showhealth.value
}),
t: form.politicalAppearance,
v: common_vendor.o(($event) => form.politicalAppearance = $event.detail.value),
w: common_vendor.o(($event) => showface.value = true),
x: common_vendor.o(confirmshowface),
y: common_vendor.o(($event) => showface.value = $event),
z: common_vendor.p({
list: showfacelist,
modelValue: showface.value
}),
A: form.emergencyContact,
B: common_vendor.o(($event) => form.emergencyContact = $event.detail.value),
C: form.emergencyTel,
D: common_vendor.o(($event) => form.emergencyTel = $event.detail.value),
E: form.emergencyRelationship,
F: common_vendor.o(($event) => form.emergencyRelationship = $event.detail.value),
G: form.hukouNature,
H: common_vendor.o(($event) => form.hukouNature = $event.detail.value),
I: common_vendor.o(($event) => showform.value = true),
J: common_vendor.o(confirmshowform),
K: common_vendor.o(($event) => showform.value = $event),
L: common_vendor.p({
list: showformlist,
modelValue: showform.value
}),
M: common_vendor.o(next)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5da0d94e"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addstaff/information.js.map

View File

@ -0,0 +1,6 @@
{
"navigationBarTitleText": "入职登记表",
"usingComponents": {
"u-select": "../../uni_modules/vk-uview-ui/components/u-select/u-select"
}
}

View File

@ -0,0 +1 @@
<view class="container data-v-5da0d94e"><view class="title-back data-v-5da0d94e"><view class="left-father data-v-5da0d94e" bindtap="{{a}}"><image class="back-img data-v-5da0d94e" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-5da0d94e" style="font-size:30rpx">入职登记表</view></view></view><view class="white-content data-v-5da0d94e"><view class="content-title data-v-5da0d94e"><view class="shu data-v-5da0d94e"></view><view class="content-weight data-v-5da0d94e">个人信息</view></view><view class="one data-v-5da0d94e" style="position:relative" bindtap="{{d}}"><view class="one-left data-v-5da0d94e">婚否</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-5da0d94e" type="text" placeholder="请选择婚否" value="{{b}}" bindinput="{{c}}"/><image class="triangle-down data-v-5da0d94e" src="https://www.focusnu.com/media/directive/login/xia.png"/></view><u-select wx:if="{{g}}" class="data-v-5da0d94e" style="font-size:35rpx" bindconfirm="{{e}}" u-i="5da0d94e-0" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"></u-select><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">联系电话</view><input class="one-right data-v-5da0d94e" type="number" maxlength="11" placeholder="请输入联系电话" value="{{h}}" bindinput="{{i}}"/></view><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">身高</view><input class="one-right data-v-5da0d94e" type="number" maxlength="11" placeholder="请输入身高(单位:CM)" value="{{j}}" bindinput="{{k}}"/></view><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">体重</view><input class="one-right data-v-5da0d94e" type="number" maxlength="11" placeholder="请输入体重(单位:KG)" value="{{l}}" bindinput="{{m}}"/></view><view class="one data-v-5da0d94e" style="position:relative" bindtap="{{p}}"><view class="one-left data-v-5da0d94e">健康状况</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-5da0d94e" type="text" placeholder="请选择健康状况" value="{{n}}" bindinput="{{o}}"/><image class="triangle-down data-v-5da0d94e" src="https://www.focusnu.com/media/directive/login/xia.png"/></view><u-select wx:if="{{s}}" class="data-v-5da0d94e" style="font-size:35rpx" bindconfirm="{{q}}" u-i="5da0d94e-1" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"></u-select><view class="one data-v-5da0d94e" style="position:relative" bindtap="{{w}}"><view class="one-left data-v-5da0d94e">政治面貌</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-5da0d94e" type="text" placeholder="请选择政治面貌" value="{{t}}" bindinput="{{v}}"/><image class="triangle-down data-v-5da0d94e" src="https://www.focusnu.com/media/directive/login/xia.png"/></view><u-select wx:if="{{z}}" class="data-v-5da0d94e" style="font-size:35rpx" bindconfirm="{{x}}" u-i="5da0d94e-2" bind:__l="__l" bindupdateModelValue="{{y}}" u-p="{{z}}"></u-select><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">紧急联系人</view><input class="one-right data-v-5da0d94e" maxlength="11" placeholder="请输入紧急联系人" value="{{A}}" bindinput="{{B}}"/></view><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">紧急联系人电话</view><input class="one-right data-v-5da0d94e" maxlength="11" type="number" placeholder="请输入紧急联系人电话" value="{{C}}" bindinput="{{D}}"/></view><view class="one data-v-5da0d94e"><view class="one-left data-v-5da0d94e">联系人与本人关系</view><input class="one-right data-v-5da0d94e" maxlength="11" placeholder="请输入联系人与本人关系" value="{{E}}" bindinput="{{F}}"/></view><view class="one data-v-5da0d94e" style="position:relative" bindtap="{{I}}"><view class="one-left data-v-5da0d94e">户口性质</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-5da0d94e" type="text" placeholder="请选择户口性质" value="{{G}}" bindinput="{{H}}"/><image class="triangle-down data-v-5da0d94e" src="https://www.focusnu.com/media/directive/login/xia.png"/></view><u-select wx:if="{{L}}" class="data-v-5da0d94e" style="font-size:35rpx" bindconfirm="{{J}}" u-i="5da0d94e-3" bind:__l="__l" bindupdateModelValue="{{K}}" u-p="{{L}}"></u-select></view><view class="data-v-5da0d94e" style="display:flex;width:100%"><view class="finish-button data-v-5da0d94e" bindtap="{{M}}"> 确认并继续 </view></view></view>

View File

@ -0,0 +1,131 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果您是插件开发者建议您使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果您是App开发者插件使用者您可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果您的项目同样使用了scss预处理您也可以直接在您的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container.data-v-5da0d94e {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: #F7F7F7;
position: relative;
}
.container .white-content.data-v-5da0d94e {
width: 90%;
margin-left: 5%;
border-radius: 35rpx;
}
.container .white-content .content-title.data-v-5da0d94e {
display: flex;
align-items: center;
height: 100rpx;
position: relative;
font-weight: 600;
}
.container .white-content .content-title .content-weight.data-v-5da0d94e {
font-size: 32rpx;
}
.container .white-content .content-title .content-img.data-v-5da0d94e {
position: absolute;
right: 0;
top: 0;
width: 400rpx;
height: 100%;
}
.finish-button.data-v-5da0d94e {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
margin-top: 20rpx;
color: #fff;
background: linear-gradient(to left, #00C9FF, #0076FF);
border-radius: 35rpx;
font-size: 33rpx;
}
.title-back.data-v-5da0d94e {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.left-father.data-v-5da0d94e {
display: flex;
align-items: center;
}
.left-father .back-img.data-v-5da0d94e {
width: 45rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
.shu.data-v-5da0d94e {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line.data-v-5da0d94e {
margin: 10rpx 0;
}
.one.data-v-5da0d94e {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.one .one-left.data-v-5da0d94e {
margin-left: 10rpx;
font-size: 30rpx;
}
.one .one-right.data-v-5da0d94e {
font-size: 30rpx;
height: 100%;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
font-size: 25rpx;
text-overflow: ellipsis;
width: 350rpx;
display: flex;
}
.one .triangle-down.data-v-5da0d94e {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}

View File

@ -25,6 +25,14 @@ const _sfc_main = {
url: `/pages/addjigou/name`
});
};
const tobestaff = () => {
common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.setStorageSync("baddata", "");
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({
url: `/pages/addstaff/information`
});
};
const phone = common_vendor.ref("");
const op0 = common_vendor.ref(false);
const op1 = common_vendor.ref(false);
@ -38,15 +46,16 @@ const _sfc_main = {
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(goBack),
b: op2.value == `1`
b: common_vendor.o(tobestaff),
c: op2.value == `1`
}, op2.value == `1` ? {
c: common_vendor.o(jumpToindex)
d: common_vendor.o(jumpToindex)
} : {}, {
d: op2.value != `1`
e: op2.value != `1`
}, op2.value != `1` ? {
e: common_vendor.o(gotoadd)
f: common_vendor.o(gotoadd)
} : {}, {
f: common_vendor.o(ceshi)
g: common_vendor.o(ceshi)
});
};
}

View File

@ -1 +1 @@
<view class="login-container data-v-f4bd7fdd"><image class="photo-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" lazy-load="false"/><view class="title-back data-v-f4bd7fdd"><view class="left-father data-v-f4bd7fdd" bindtap="{{a}}"><image class="back-img data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/index/left.png"/></view></view><view class="card data-v-f4bd7fdd" style="margin-top:550rpx"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 长者入住 </view><view class="card-text data-v-f4bd7fdd"> 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 </view><view class="white-button data-v-f4bd7fdd"> 申请入住 </view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/old.png"/></view></view><view class="card data-v-f4bd7fdd"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 员工入驻 </view><view class="card-text data-v-f4bd7fdd"> 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 </view><view class="data-v-f4bd7fdd" style="display:flex"><view class="white-button data-v-f4bd7fdd"> 申请入驻 </view></view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/yuangong.png"/></view></view><view class="card data-v-f4bd7fdd" style="height:340rpx"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 机构加盟 </view><view class="card-text data-v-f4bd7fdd"> 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 </view><view class="data-v-f4bd7fdd" style="display:flex"><view wx:if="{{b}}" class="white-button data-v-f4bd7fdd" bindtap="{{c}}"> 进入机构 </view><view wx:if="{{d}}" class="white-button data-v-f4bd7fdd" bindtap="{{e}}"> 申请加盟 </view></view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/gongsi.png" bindtap="{{f}}"/></view></view></view>
<view class="login-container data-v-f4bd7fdd"><image class="photo-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" lazy-load="false"/><view class="title-back data-v-f4bd7fdd"><view class="left-father data-v-f4bd7fdd" bindtap="{{a}}"><image class="back-img data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/index/left.png"/></view></view><view class="card data-v-f4bd7fdd" style="margin-top:550rpx"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 长者入住 </view><view class="card-text data-v-f4bd7fdd"> 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 </view><view class="white-button data-v-f4bd7fdd"> 申请入住 </view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/old.png"/></view></view><view class="card data-v-f4bd7fdd"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 员工入驻 </view><view class="card-text data-v-f4bd7fdd"> 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 </view><view class="data-v-f4bd7fdd" style="display:flex"><view class="white-button data-v-f4bd7fdd" bindtap="{{b}}"> 申请入驻 </view></view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/yuangong.png"/></view></view><view class="card data-v-f4bd7fdd" style="height:340rpx"><view class="card-left data-v-f4bd7fdd"><view class="card-weight data-v-f4bd7fdd"> 机构加盟 </view><view class="card-text data-v-f4bd7fdd"> 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 </view><view class="data-v-f4bd7fdd" style="display:flex"><view wx:if="{{c}}" class="white-button data-v-f4bd7fdd" bindtap="{{d}}"> 进入机构 </view><view wx:if="{{e}}" class="white-button data-v-f4bd7fdd" bindtap="{{f}}"> 申请加盟 </view></view></view><view class="card-right data-v-f4bd7fdd"><image class="right-imge data-v-f4bd7fdd" src="https://www.focusnu.com/media/directive/login/gongsi.png" bindtap="{{g}}"/></view></view></view>

View File

@ -5,12 +5,11 @@
},
"setting": {
"urlCheck": false,
"es6": true,
"es6": false,
"postcss": false,
"minified": true,
"newFeature": true,
"bigPackageSizeSupport": true,
"enhance": true
"bigPackageSizeSupport": true
},
"compileType": "miniprogram",
"libVersion": "",