2025-08-21 16:52:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
<model :show="show" @close="show=false" :content="content" />
|
2025-10-13 14:58:45 +08:00
|
|
|
|
<!-- <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="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+35}px`}">
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<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>
|
2025-10-13 14:58:45 +08:00
|
|
|
|
<view :style="{height:`${uni.getStorageSync('moveHeight') + 30}px`}"></view>
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<view class="white-content">
|
|
|
|
|
|
<view class="content-title">
|
|
|
|
|
|
<view class="shu"></view>
|
|
|
|
|
|
<view class="content-weight">健康证</view>
|
2025-08-22 14:30:39 +08:00
|
|
|
|
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view>
|
2025-08-21 16:52:59 +08:00
|
|
|
|
</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"
|
2025-08-22 14:30:39 +08:00
|
|
|
|
:src="imgArray[0] ? `${base_url}/sys/common/static/${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/healfront.png`" />
|
2025-09-09 17:45:04 +08:00
|
|
|
|
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
|
|
|
|
|
|
:src="imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<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>
|
2025-09-19 17:12:59 +08:00
|
|
|
|
<!-- <view class="white-photo" @click="selectphoto(1)">
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<view class="photo-left">
|
|
|
|
|
|
<view class="photo-weight">健康证反面</view>
|
|
|
|
|
|
<view class="photo-font">请上传健康证反面</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view style="position: relative;">
|
|
|
|
|
|
<image class="photo"
|
2025-08-22 14:30:39 +08:00
|
|
|
|
:src="imgArray[1] ? `${base_url}/sys/common/static/${imgArray[1]}` : `https://www.focusnu.com/media/directive/index/healend.png`" />
|
|
|
|
|
|
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
|
|
|
|
|
|
:src="imgArray[1] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<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>
|
|
|
|
|
|
|
2025-09-19 17:12:59 +08:00
|
|
|
|
</view> -->
|
2025-08-21 16:52:59 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="white-content">
|
|
|
|
|
|
<view class="content-title">
|
|
|
|
|
|
<view class="shu"></view>
|
|
|
|
|
|
<view class="content-weight">资质证</view>
|
2025-08-22 14:30:39 +08:00
|
|
|
|
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view>
|
2025-08-21 16:52:59 +08:00
|
|
|
|
</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"
|
2025-08-22 14:30:39 +08:00
|
|
|
|
:src="imgArray[2] ? `${base_url}/sys/common/static/${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zizhi.png`" />
|
|
|
|
|
|
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
|
|
|
|
|
|
:src="imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<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>
|
2025-08-22 14:30:39 +08:00
|
|
|
|
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view>
|
2025-08-21 16:52:59 +08:00
|
|
|
|
</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"
|
2025-08-22 14:30:39 +08:00
|
|
|
|
:src="imgArray[3] ? `${base_url}/sys/common/static/${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/fanzui.png`" />
|
|
|
|
|
|
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
|
|
|
|
|
|
:src="imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<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>
|
2025-10-13 14:58:45 +08:00
|
|
|
|
|
2025-08-22 14:30:39 +08:00
|
|
|
|
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 40rpx;">
|
2025-08-21 16:52:59 +08:00
|
|
|
|
<view class="back-button" @click="goBack">
|
|
|
|
|
|
返回上一步
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="finish-button" @click="next">
|
2025-09-23 17:15:17 +08:00
|
|
|
|
确认
|
2025-08-21 16:52:59 +08:00
|
|
|
|
</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"
|
2025-09-15 17:23:33 +08:00
|
|
|
|
import {
|
|
|
|
|
|
swapLongTerm
|
|
|
|
|
|
} from '@/compontent/public/long.js'
|
2025-09-23 17:15:17 +08:00
|
|
|
|
import {
|
|
|
|
|
|
Apply
|
|
|
|
|
|
} from './api/addjigou.js'
|
|
|
|
|
|
import {
|
|
|
|
|
|
getMessageList
|
|
|
|
|
|
} from '@/pages/addstaff/api/addjigou.js'
|
2025-08-21 16:52:59 +08:00
|
|
|
|
|
|
|
|
|
|
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({
|
2025-09-09 17:45:04 +08:00
|
|
|
|
urls: [`${base_url}/sys/common/static/${imgArray[imgetarget.value]}`], // 必填,所有要预览的图片地址数组
|
2025-08-21 16:52:59 +08:00
|
|
|
|
// 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
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-10-16 16:23:30 +08:00
|
|
|
|
const ukey = ref(
|
|
|
|
|
|
`${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
|
|
|
|
|
|
)
|
2025-08-21 16:52:59 +08:00
|
|
|
|
const next = () => {
|
|
|
|
|
|
if (!uping.value) {
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2025-10-16 16:23:30 +08:00
|
|
|
|
|
2025-09-09 17:45:04 +08:00
|
|
|
|
let data = uni.getStorageSync('backhuancun');
|
2025-09-23 17:15:17 +08:00
|
|
|
|
data.healthZmPath = imgArray[0]
|
2025-09-09 17:45:04 +08:00
|
|
|
|
data.healthFmPath = imgArray[1]
|
|
|
|
|
|
data.qualificationPath = imgArray[2]
|
|
|
|
|
|
data.noCrimeCertificate = imgArray[3]
|
2025-09-15 17:23:33 +08:00
|
|
|
|
data.endTime = swapLongTerm(data.endTime);
|
2025-09-25 17:30:11 +08:00
|
|
|
|
data.orgCode = uni.getStorageSync('changeyuangongorgCode')
|
|
|
|
|
|
uni.setStorageSync('changeyuangongorgCode', "");
|
2025-10-16 16:23:30 +08:00
|
|
|
|
|
|
|
|
|
|
changemessage(data, ukey.value).then(res => {
|
|
|
|
|
|
if (res.success && res.result != '重复提交') {
|
2025-09-23 17:15:17 +08:00
|
|
|
|
gopush()
|
2025-08-22 14:30:39 +08:00
|
|
|
|
}
|
2025-09-23 17:15:17 +08:00
|
|
|
|
// uni.requestSubscribeMessage({
|
|
|
|
|
|
// // 这里填后台申请好的 templateId 数组
|
|
|
|
|
|
// tmplIds: ['yvvhlRft1CAdtU-dWlCW8U63VnTwRU8w3gR0BUdqcWw'],
|
|
|
|
|
|
// success: (res) => {
|
|
|
|
|
|
// uni.setStorageSync('specicalid', "");
|
|
|
|
|
|
// gopush()
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
// fail: (err) => {
|
|
|
|
|
|
// // console.error('订阅接口调用失败:', err);
|
|
|
|
|
|
// gopush()
|
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
|
// title: '订阅失败',
|
|
|
|
|
|
// icon: 'none'
|
|
|
|
|
|
// });
|
|
|
|
|
|
// }
|
|
|
|
|
|
// });
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
|
// title: res.message,
|
|
|
|
|
|
// icon: 'error'
|
|
|
|
|
|
// })
|
|
|
|
|
|
// }
|
2025-08-22 14:30:39 +08:00
|
|
|
|
})
|
2025-08-21 16:52:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2025-09-23 17:15:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const gopush = () => {
|
|
|
|
|
|
// console.log("????", uni.getStorageSync('nostaffmessage'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (uni.getStorageSync('nostaffmessage')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getMessageList().then(res => {
|
|
|
|
|
|
if (res.success) {
|
|
|
|
|
|
let data = res.result[0]
|
|
|
|
|
|
data = {
|
|
|
|
|
|
...data,
|
|
|
|
|
|
dateOfBirth: data.birthDate,
|
|
|
|
|
|
marriedOrNot: data.maritalStatus,
|
|
|
|
|
|
address: data.address,
|
|
|
|
|
|
emergencyContact: data.contactName,
|
|
|
|
|
|
emergencyTel: data.contactTel,
|
|
|
|
|
|
emergencyRelationship: data.contactRelationship,
|
|
|
|
|
|
hukouNature: data.hukouType,
|
|
|
|
|
|
idCardPositive: data.cardZmPath,
|
|
|
|
|
|
idCardNegative: data.cardFmPath,
|
|
|
|
|
|
healthCertificatePositive: data.healthZmPath,
|
|
|
|
|
|
healthCertificateNegative: data.healthFmPath,
|
|
|
|
|
|
bankPositive: data.bankZmPath,
|
|
|
|
|
|
bankNegative: data.bankFmPath,
|
|
|
|
|
|
qualification: data.qualificationPath,
|
|
|
|
|
|
noCrimeCertificate: data.noCrimeCertificate,
|
|
|
|
|
|
houseAddress: data.idCardAddress,
|
|
|
|
|
|
employeeId: data.id,
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
createTime: null,
|
|
|
|
|
|
updateBy: null,
|
|
|
|
|
|
updateTime: null,
|
|
|
|
|
|
orgCode: uni.getStorageSync('nostaffmessage')
|
|
|
|
|
|
}
|
|
|
|
|
|
Apply(data).then((data) => {
|
|
|
|
|
|
if (data.success) {
|
|
|
|
|
|
uni.requestSubscribeMessage({
|
|
|
|
|
|
// 这里填后台申请好的 templateId 数组
|
|
|
|
|
|
tmplIds: [
|
|
|
|
|
|
'cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'
|
|
|
|
|
|
],
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
uni.setStorageSync(
|
|
|
|
|
|
'nostaffmessage', "");
|
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
|
url: `/pages/addstaff/successpush`
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: (err) => {
|
|
|
|
|
|
uni.setStorageSync(
|
|
|
|
|
|
'nostaffmessage', "");
|
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
|
url: `/pages/addstaff/successpush`
|
|
|
|
|
|
});
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
title: '订阅失败',
|
|
|
|
|
|
icon: 'none'
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
|
url: `/pages/addstaff/successpush`
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-21 16:52:59 +08:00
|
|
|
|
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;
|
2025-08-22 14:30:39 +08:00
|
|
|
|
font-weight: 600;
|
2025-08-21 16:52:59 +08:00
|
|
|
|
|
|
|
|
|
|
.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 {
|
2025-10-13 14:58:45 +08:00
|
|
|
|
background-color: #EFF6F9;
|
2025-08-21 16:52:59 +08:00
|
|
|
|
width: 100%;
|
2025-10-13 14:58:45 +08:00
|
|
|
|
height: 70rpx;
|
2025-08-21 16:52:59 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2025-10-13 14:58:45 +08:00
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
|
border-bottom: 1rpx solid #cbd1d2;
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
z-index: 9999;
|
2025-08-21 16:52:59 +08:00
|
|
|
|
|
|
|
|
|
|
.left-father {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
.back-img {
|
|
|
|
|
|
width: 45rpx;
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
margin-left: 40rpx;
|
|
|
|
|
|
margin-right: 15rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|