This commit is contained in:
wangweidong 2026-02-03 15:12:28 +08:00
parent 2a7f19bf6d
commit 7124d296be
12 changed files with 106 additions and 91 deletions

View File

@ -1,6 +1,6 @@
<template>
<!-- 通过 v-show 控制显隐并根据 show 添加 is-active 类触发 CSS 过渡 -->
<view :class="['neuro-wrapper', show ? 'is-active' : '']" v-show="show">
<view :class="['neuro-wrapper', show ? 'is-active' : '']" v-show="show" @touchmove.stop>
<!-- 遮罩层点击触发关闭 -->
<view class="neuro-mask" @click="handleClose"></view>
<!-- 拟态框阻止冒泡点击 -->
@ -76,7 +76,7 @@
// background-size: 100% auto;
background-position: top center;
background-repeat: no-repeat;
z-index: 1;
z-index: 110;
padding: 0 10%;
}

View File

@ -47,7 +47,7 @@ export function getManyDictItems(dictCodeList){
//根据手机号获取员工信息
// export function getMessageList(id){
// return request({
// url: `/api/employessAdvisiory/queryApiEmployessInfo?openId=${id}&status=1,2,3`,
// url: `/api/employeesAdvisiory/queryApiEmployeesInfo?openId=${id}&status=1,2,3`,
// method: 'get',
// })
// }

View File

@ -22,18 +22,18 @@
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
<view style="display: flex;">
<view class="shu"></view>
<view class="content-weight" style="margin-top: -2rpx;">监护人基本信息</view>
<view class="content-weight" style="margin-top: -2rpx;">监护人信息</view>
<image class="shu-img"
:src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" />
</view>
<view class="small-blue" @click="changeMessage" v-if="!applyStatus">
修改监护人信息
编辑
</view>
</view>
<view class="white-photo" @click="getMessage(headImge0)">
<view class="photo-left">
<view class="photo-weight">监护人人像面</view>
<view class="photo-weight">人像面</view>
<!-- <view class="photo-font">请上传营业执照</view> -->
</view>
<view style="position: relative;">
@ -50,7 +50,7 @@
<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>
</view>
@ -299,7 +299,7 @@
position: fixed;
top: 0;
left: 0;
z-index: 9999;
z-index: 2;
}
.left-father {

View File

@ -12,10 +12,11 @@
<view class="content-title" style="margin: 10rpx 0;display: flex;">
<view class="shu"></view>
<view class="content-weight">监护人信息</view>
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(必填)</view>
</view>
<view class="white-photo" @click="selectphoto(2)">
<view class="photo-left">
<view class="photo-weight">监护人人像面</view>
<view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view>
</view>
<view style="position: relative;">
@ -36,16 +37,16 @@
<view>
<view class="one">
<view class="one-left">监护人姓名</view>
<input class="one-right" disabled maxlength="5" placeholder="请输入监护人姓名" v-model="form.name" />
<input class="one-right" disabled maxlength="5" placeholder="自动获取" v-model="form.name" />
</view>
<view class="one">
<view class="one-left">监护人电话</view>
<input class="one-right" type="number" maxlength="11" placeholder="请输入监护人电话"
v-model="form.tel" />
v-model="form.tel" disabled/>
</view>
<view class="one">
<view class="one-left">身份证号</view>
<input class="one-right" disabled maxlength="18" placeholder="请输入身份证号" v-model="form.idCard" />
<input class="one-right" disabled maxlength="18" placeholder="自动获取" v-model="form.idCard" />
</view>
<view class="one">
<view class="one-left">家庭住址</view>
@ -114,22 +115,21 @@
<view class="one-left">医保类型</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择医保类型" v-model="form.medicalTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
<!-- <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" label-name="label"
value-name="value" @confirm="confirmmarry"></u-select>
<view class="one" style="position: relative;" @click="showlevel = true" v-if="showlevellist.length">
<view class="one-left">失能等级</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择失能等级" v-model="form.disabilityReimbursementTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
:placeholder="showlevellist.length>0?'请选择失能等级':'无'" v-model="form.disabilityReimbursementTypename" />
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view>
<u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label"
value-name="value" @confirm="confirmlevel"></u-select>
<view class="one-no" v-if="!showlevellist.length">
<view class="one-left">失能等级</view>
<view class="one-right">暂无</view>
<view class="one-right">{{form.medicalTypename?'无':'请先选择医保类型'}}</view>
</view>
</view>
</view>
@ -524,24 +524,36 @@
if (!specialImge.value) {
uni.showToast({
title: '请上传监护人身份证面',
title: '请上传监护人身份证人像面',
icon: 'none'
})
return
}
if (!fontphoto.value) {
uni.showToast({
title: '请上传身份证正面',
title: '请上传长者身份证人像面',
icon: 'none'
})
return
} else if (!endphoto.value) {
uni.showToast({
title: '请上传身份证背面',
title: '请上传长者身份证国徽面',
icon: 'none'
})
return
}
}else if (!form.medicalType) {
uni.showToast({
title: '请选择医保类型',
icon: 'none'
})
return
} else if (showlevellist.value.length && form.disabilityReimbursementTypename == '') {
uni.showToast({
title: '请选择失能等级',
icon: 'none'
})
return
}
if (canshow.value) {
if (!form.name) {
@ -576,33 +588,20 @@
return
} else if (!form.homeAddress) {
uni.showToast({
title: '请填写家庭住址',
title: '请填写监护人家庭住址',
icon: 'none'
})
return
} else if (!form.workUnit) {
uni.showToast({
title: '请填写工作单位',
title: '请填写监护人工作单位',
icon: 'none'
})
return
} else if (!form.medicalType) {
uni.showToast({
title: '请选择医保类型',
icon: 'none'
})
return
} else if (showlevellist.value.length && !form.disabilityReimbursementType) {
uni.showToast({
title: '请选择失能等级',
icon: 'none'
})
return
}
}
}
const allNonEmpty = textArray.every(item => {
// item.trim() !== ''
return item !== '';
@ -921,13 +920,13 @@
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;
width: 250rpx;
}
.one-right {
@ -1076,6 +1075,8 @@
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
z-index: 0;
position: relative;
.one-left {
margin-left: 10rpx;

View File

@ -15,13 +15,13 @@
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
<view style="display: flex;">
<view class="shu"></view>
<view class="content-weight" style="margin-top: -2rpx;">身份证</view>
<view class="content-weight" style="margin-top: -2rpx;">长者信息</view>
<image class="shu-img"
:src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" />
</view>
<view class="small-blue" @click="changeMessage" v-if="!applyStatus">
修改长者信息
编辑
</view>
</view>
@ -32,7 +32,7 @@
<view class="white-photo" @click="getMessage(`${media_base_url}${specialImge}`)">
<view class="photo-left">
<view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view>
<!-- <view class="photo-font">请上传身份证人像面</view> -->
</view>
<view style="position: relative;">
<image class="photo"
@ -46,7 +46,7 @@
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(`${media_base_url}${endphoto}`)">
<view class="photo-left">
<view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view>
<!-- <view class="photo-font">请上传身份证国徽面</view> -->
</view>
<view style="position: relative;">
<image class="photo"
@ -57,16 +57,16 @@
</view>
</view>
<view class="content-title" style="margin: 20rpx 0;">
<!-- <view class="content-title" style="margin: 20rpx 0;">
<view class="shu"></view>
<view class="content-weight">确认身份证信息</view>
</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 class="one-right">{{textArray[index] ? textArray[index] : "" }}</view>
</view>
</view>
</view>
@ -458,6 +458,6 @@
color: #007CFF;
border-radius: 30rpx;
font-size: 30rpx;
z-index: 9999;
z-index: 2;
}
</style>

View File

@ -30,7 +30,7 @@ export function editSuppliers(data){
export function changemessage(data,ukey){
return request({
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,
url: `/api/employeesAdvisiory/saveApiEmployees?ukey=${ukey}`,
method: 'post',
data,
})
@ -47,7 +47,7 @@ export function getSupInfoByOpenId(orgCode){
//向机构申请
export function Apply(data){
return request({
url: `/api/employessapply/apply`,
url: `/api/employeesapply/apply`,
method: 'post',
data,
})

View File

@ -5,7 +5,7 @@ import request from '@/request/index.js';
//向机构申请
export function Apply(data){
return request({
url: `/api/employessapply/apply`,
url: `/api/employeesapply/apply`,
method: 'post',
data,
})
@ -13,7 +13,7 @@ export function Apply(data){
//向机构接受拒绝
export function invitedConfirm(data){
return request({
url: `/api/employessapply/invitedConfirm`,
url: `/api/employeesapply/invitedConfirm`,
method: 'post',
data,
})
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表
export function getOrgInfo(title){
return request({
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
method: 'get',
})
}
@ -29,7 +29,7 @@ export function getOrgInfo(title){
//获取审核的列表
export function getEmployeesOrgRela(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=1`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=1`,
method: 'get',
})
}
@ -39,14 +39,14 @@ export function getEmployeesOrgRela(openId){
//机构邀请
export function getInvited(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0`,
method: 'get',
})
}
//单独机构邀请
export function getId(id){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}`,
method: 'get',
})
}

View File

@ -284,7 +284,8 @@
reactive,
ref,
onMounted,
onUnmounted
onUnmounted,
nextTick
} from 'vue';
import {
onLoad,
@ -647,23 +648,21 @@
})
}
const hong = ref(0);
const isred = ()=>{
hong.value = hong.value;
isRead().then(res => {
nextTick(()=>{
hong.value = res.result;
})
})
}
onShow(() => {
loadingData();
isRead().then(res => {
// console.log("aaaa", res.result)
if (res.result) {
hong.value = res.result;
}
})
isred();
})
onPullDownRefresh(() => {
loadingData();
isRead().then(res => {
// console.log("aaaa",res.result)
if (res.result) {
hong.value = res.result;
}
})
isred();
uni.stopPullDownRefresh()
})
</script>

View File

@ -75,10 +75,21 @@
} from 'vue';
import { getInvited, invitedConfirm, getNotice, upRead, isRead } from './api.js'
import {
onShow
} from '@dcloudio/uni-app'
import {onLoad, onShow,onUnload } from '@dcloudio/uni-app'
onUnload(()=>{
prevPages()
})
const prevPages=()=>{
const pages = getCurrentPages()
const prevPage = pages[pages.length - 2]
if (prevPage) {
prevPage.onShow()
}
}
// onUnload(()=>{
// })
const hulijigouArray = ref([])
const popupshow = ref(false);
@ -115,6 +126,7 @@
}
const checkRed = () => {
prevPages();
if (hulijigouArray.value.every(item => item.izRead == `Y`)) {
hong.value = false;
} else {
@ -129,7 +141,7 @@
})
}
const search = () => {
getNotice().then((res : any) => {
@ -154,6 +166,7 @@
}
})
}
const hong = ref(false)
onShow(() => {
search()
@ -164,6 +177,7 @@
// }
// })
})
</script>
<style lang="scss" scoped>
@ -260,8 +274,8 @@
height: 90rpx;
border-radius: 35rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF;
color: #007CFF;
border: 2rpx solid #9AD1FF;
color: #007CFF;
font-size: 33rpx;
margin-bottom: 30rpx;
}
@ -288,8 +302,8 @@
// margin-top: 20rpx;
margin-top: 10rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF;
color: #007CFF;
border: 2rpx solid #9AD1FF;
color: #007CFF;
border-radius: 25rpx;
font-size: 30rpx;
}

View File

@ -13,7 +13,7 @@ export function applySupOrg(data){
//向机构接受拒绝
export function invitedConfirm(data){
return request({
url: `/api/employessapply/invitedConfirm`,
url: `/api/employeesapply/invitedConfirm`,
method: 'post',
data,
})
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表
// export function getOrgInfo(title){
// return request({
// url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
// url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
// method: 'get',
// })
// }
@ -59,14 +59,14 @@ export function getSupInfoByOpenId(code){
//机构邀请
export function getInvited(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
method: 'get',
})
}
//单独机构邀请
export function getId(id){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
method: 'get',
})
}

View File

@ -5,7 +5,7 @@ import request from '@/request/index.js';
//向机构申请
export function Apply(data){
return request({
url: `/api/employessapply/apply`,
url: `/api/employeesapply/apply`,
method: 'post',
data,
})
@ -13,7 +13,7 @@ export function Apply(data){
//向机构接受拒绝
export function invitedConfirm(data){
return request({
url: `/api/employessapply/invitedConfirm`,
url: `/api/employeesapply/invitedConfirm`,
method: 'post',
data,
})
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表
export function getOrgInfo(title){
return request({
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
method: 'get',
})
}
@ -29,7 +29,7 @@ export function getOrgInfo(title){
//获取审核的列表
export function getEmployeesOrgRela(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`,
method: 'get',
})
}
@ -37,7 +37,7 @@ export function getEmployeesOrgRela(openId){
//主页
export function getIndex(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&izHistory=N`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&izHistory=N`,
method: 'get',
})
}
@ -45,14 +45,14 @@ export function getIndex(openId){
//机构邀请
export function getInvited(openId){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
method: 'get',
})
}
//单独机构邀请
export function getId(id){
return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
method: 'get',
})
}

View File

@ -1,9 +1,9 @@
// 全局请求封装
// export const base_url = 'http://192.168.2.37:8081/opeapi'
// export const base_url = 'https://www.focusnu.com/opeapi'
export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/'
export const base_url = 'http://192.168.2.27:8081/opeapi'
// export const base_url = 'http://192.168.2.27:8081/opeapi'
// 请求超出时间
const timeout = 5000
@ -89,6 +89,7 @@ export default (params) => {
break
}
case 404:
console.log(base_url + url,404)
uni.showToast({
title: '请求地址不存在...',
icon: "error",
@ -104,7 +105,7 @@ export default (params) => {
break;
}
// 把整个非 200 的响应 reject 出去,方便调用方做处理(可按需保留/删除)
reject(res)
reject(res,base_url + url)
}
},
fail(err) {