if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n=(t,a=0)=>(a,n=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,a,n)},o=n("onShow",3),i=n("onLoad",2),l=n("onUnload",2),c=n("onPullDownRefresh",2),s="http://192.168.2.19:8081/opeapi",r=e=>{let t=e.url,a=e.method||"get",n=e.data||{},o={"X-Access-Token":uni.getStorageSync("token")||"","Content-Type":"application/json;charset=UTF-8",Authorization:"Basic c2FiZXI6c2FiZXJfc2VjcmV0",...e.header};return new Promise(((i,l)=>{uni.request({url:s+t,method:a,header:o,data:n,timeout:5e3,success(t){const a=t;if(200==a.statusCode)i(a.data);else switch(uni.clearStorageSync(),a.statusCode){case 401:e.no401||uni.showModal({title:"登录过期",content:"登录过期,请重新登录",showCancel:!1,success(){setTimeout((()=>{uni.reLaunch({url:"/pages/login/callback"})}),1e3)}});break;case 404:uni.showToast({title:"请求地址不存在...",icon:"error",duration:2e3});break;default:uni.showToast({title:"请重试...",icon:"error",duration:2e3})}},fail(e){-1!==e.errMsg.indexOf("request:fail")?uni.showToast({title:"网络异常",icon:"error",duration:2e3}):uni.showToast({title:"未知异常",duration:2e3}),l(e)}})})).catch((()=>{}))};function d(e){return r({url:`/weixin/wechat/callback?code=${e}`,method:"get"})}function u(e){return r({url:`/api/elderInfo/queryWeixinInfo?openId=${e}`,method:"get"})}function m(e){return r({url:`/api/advisoryInfo/changeClientType?openId=${uni.getStorageSync("openid")}&type=${e}`,method:"put"})}const p=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a},g=p({__name:"callback",setup:a=>(i((e=>{e.type?uni.setStorageSync("special",!0):uni.setStorageSync("special",!1),uni.login({provider:"weixin",success(e){d(e.code).then((e=>{let t=e.data.openid;uni.setStorageSync("openid",t),u(t).then((e=>{if(uni.setStorageSync("tel",e.result.tel),uni.setStorageSync("token",e.result.token),uni.setStorageSync("serverUrl",e.result.serverUrl),uni.setStorageSync("platId",e.result.platId),uni.setStorageSync("izJg",e.result.izJg),uni.setStorageSync("izJs",e.result.izJs),uni.setStorageSync("izYg",e.result.izYg),uni.setStorageSync("allinfo",e.result),e.result.tel)if(uni.getStorageSync("special"))uni.reLaunch({url:"/pages/login/specialloginafther"});else switch(e.result.advisoryType){case"1":uni.reLaunch({url:"/pages/oldmanindex/index"});break;case"2":uni.reLaunch({url:"/pages/yuangongindex/index"});break;case"3":uni.reLaunch({url:"/pages/index/index"});break;default:uni.reLaunch({url:"/pages/login/threeselectone"})}else uni.reLaunch({url:"/pages/login/xuanchuan"})}))}))},fail(e){t("error","at pages/login/callback.vue:81","获取 code 失败:",e)}})})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"login-imge",src:"https://www.focusnu.com/media/directive/login/loading.gif",mode:"widthFix","lazy-load":"false"})])))},[["__scopeId","data-v-5a68ae29"]]),h=p({__name:"index",setup(a){const n=e.ref(!1),o=e.ref(!1),i=e.ref("rgba(0, 0, 0, 0.5)");function l(){o.value=!1}const c=()=>{n.value?uni.login({provider:"weixin",success(e){d(e.code).then((e=>{let t=e.data.openid;uni.setStorageSync("openid",t),uni.navigateTo({url:"/pages/login/phonebumber"})}))},fail(e){t("error","at pages/login/index.vue:125","获取 code 失败:",e)}}):o.value=!0},s=()=>{uni.navigateTo({url:"/pages/login/protocol"})};return e.ref(null),e.ref(!1),e.onMounted((()=>{})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"title-imge",src:"https://www.focusnu.com/media/directive/login/icon.png"}),e.createElementVNode("image",{class:"photo-imge",src:"https://www.focusnu.com/media/directive/login/bgc.png"}),e.createElementVNode("view",{class:"under-container"},[e.createElementVNode("button",{class:"button-blue",onClick:c}," 一键登录 "),e.createElementVNode("view",{class:"under-container-title"},[e.createElementVNode("view",{class:e.normalizeClass(n.value?"radio-circle-target":"radio-circle"),onClick:a[0]||(a[0]=e=>n.value=!n.value)},null,2),e.createElementVNode("view",{style:{"margin-left":"17rpx"},class:"radio-circle-font",onClick:a[1]||(a[1]=e=>n.value=!n.value)},"同意护理单元"),e.createElementVNode("view",{class:"radio-circle-blue",onClick:s}," 《使用条款》 "),e.createElementVNode("view",{class:"radio-circle-font",onClick:a[2]||(a[2]=e=>n.value=!n.value)},"并授权NU获取本机号码"),e.createElementVNode("view",{style:{position:"absolute",bottom:"-50rpx",left:"0",width:"100%","text-align":"center"}}," 账号仅限特定人群登录并进行账号鉴权。 ")])]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx((()=>[o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"overlay",onClick:l,style:e.normalizeStyle({backgroundColor:i.value})},null,4)):e.createCommentVNode("",!0)])),_:1}),e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx((()=>[o.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"modal"},[e.createElementVNode("view",{class:"modal-title"},"使用条款"),e.createElementVNode("view",{class:"model-p"},[e.createElementVNode("text",null,"  为了更好地保障您的合法权益,请阅读并同意以下协议护理单元"),e.createElementVNode("text",{style:{color:"rgb(0,141,255)"},onClick:s},"《使用条款》"),e.createElementVNode("text",null,",同意后将自动登录。")]),e.createElementVNode("view",{class:"model-down"},[e.createElementVNode("view",{class:"model-blue",onClick:a[3]||(a[3]=e=>{l(),n.value=!0})}," 同意 ")])])):e.createCommentVNode("",!0)])),_:1})]))}},[["__scopeId","data-v-5b4eb501"]]),v=50,w=p({__name:"huakuai",emits:["success"],setup(a,{emit:n}){const o=n,i=e.ref(0),l=e.ref(0),c=e.ref(0),s=e.ref(0),r=e.ref(0),d=e.ref(!1),u=e.ref(0),m=e.ref(""),p=e.getCurrentInstance();const g=`path('${h=v,`\n M10 0\n h${h/3-10}\n a10 10 0 0 1 0 20\n h${h/3}\n a10 10 0 0 0 0 -20\n h${h/3-10}\n v${h/3-10}\n a10 10 0 0 1 -20 0\n v${h/3}\n a10 10 0 0 0 20 0\n v${h/3-10}\n h-${h/3-10}\n a10 10 0 0 1 0 -20\n h-${h/3}\n a10 10 0 0 0 0 20\n h-${h/3-10}\n z\n `}')`;var h;function w(){e.nextTick((()=>{p?uni.createSelectorQuery().in(p.proxy).select(".bg-image").boundingClientRect((e=>{e?(i.value=e.width,l.value=e.height,c.value=.8*Math.random()*(i.value-v)+25,c.value=Math.max(25,Math.min(c.value,i.value-25)),s.value=l.value/2,r.value=0):t("error","at compontent/public/huakuai.vue:114","无法获取图片尺寸")})).exec():t("error","at compontent/public/huakuai.vue:106","无法获取组件实例")}))}function f(e){d.value=!0,u.value=e.touches[0].clientX}function y(e){if(!d.value)return;let t=e.touches[0].clientX-u.value;t=Math.max(0,Math.min(t,i.value-v)),r.value=t}function N(){d.value=!1,Math.abs(r.value-c.value)<20?(uni.showToast({title:"验证成功",icon:"none",duration:2e3}),o("success")):(r.value=0,uni.showToast({title:"验证失败",icon:"none",duration:2e3}))}return e.onMounted((()=>{const e=["https://www.focusnu.com/media/directive/login/0.png","https://www.focusnu.com/media/directive/login/1.png","https://www.focusnu.com/media/directive/login/2.png"];m.value=e[Math.floor(Math.random()*e.length)]})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"captcha-container",id:"container"},[e.createElementVNode("view",{class:"font-title"},"请通过滑块验证"),e.createElementVNode("view",{class:"captcha-image",style:{position:"relative",width:"100%",height:"400rpx",overflow:"hidden"}},[e.createElementVNode("image",{src:m.value,class:"bg-image",mode:"widthFix",onLoad:w},null,40,["src"]),e.createElementVNode("view",{class:"overlay",style:e.normalizeStyle({width:i.value+"px",height:l.value+"px"})},[e.createElementVNode("view",{class:"hole",style:e.normalizeStyle({top:s.value+"px",left:c.value+"px",width:"50px",height:"50px",clipPath:g,transform:"translate(-50%, -50%)",backgroundColor:"rgba(0,0,0,0.6)"})},null,4),e.createElementVNode("view",{class:"piece",style:e.normalizeStyle({top:s.value+"px",left:r.value+"px",width:"50px",height:"50px",backgroundImage:`url(${m.value})`,backgroundSize:i.value+"px "+l.value+"px",backgroundPosition:`-${c.value}px -${s.value}px`,clipPath:g,transform:"translate(-50%, -50%)"})},null,4)],4)]),e.createElementVNode("view",{class:"slider-bar"},[e.createElementVNode("view",{class:"slider-bar-font"},"向右滑动滑块填充拼图"),e.createElementVNode("view",{class:"slider-button",ref:"btn",onTouchstart:f,onTouchmove:y,onTouchend:N,style:e.normalizeStyle({left:r.value+"px",maxWidth:i.value-v+"px"})},[e.createElementVNode("image",{src:"https://www.focusnu.com/media/directive/login/right.png",style:{width:"50rpx",height:"50rpx"},mode:"widthFix"})],36)])]))}},[["__scopeId","data-v-8d2fd4d8"]]),f=p({__name:"phonebumber",setup(t){const a=e.ref(!1),n=()=>{a.value=!0},o=()=>{var e;a.value=!1,(e={mobile:i.value},r({url:"/sys/getHkCode",method:"post",data:e})).then((e=>{e.success?uni.navigateTo({url:`/pages/login/code?mobile=${i.value}&hkcode=${e.message}`}):uni.showToast({title:e.message,icon:"none",duration:2e3})}))};const i=e.ref(""),l=e.ref(!1),c=e=>{var t;t=e.detail.value,/^\d{11}$/.test(t.toString())?(i.value=e.detail.value,l.value=!0):l.value=!1};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"title-imge",src:"https://www.focusnu.com/media/directive/login/icon.png"}),e.createElementVNode("image",{class:"photo-imge",src:"https://www.focusnu.com/media/directive/login/bgc.png"}),e.createElementVNode("view",{class:"under-container"},[e.createElementVNode("view",{class:"under-container-title"},[e.createElementVNode("view",{class:"under-container-input"},[e.createElementVNode("view",{class:"input-left"},"+86"),e.createElementVNode("input",{type:"number",style:{width:"600rpx","font-size":"33rpx",height:"200rpx"},maxlength:"11",placeholder:"请输入手机号",onInput:c},null,32)])]),l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"button-blue",onClick:n}," 获取验证码 ")):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"button-gray"}," 获取验证码 "))]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"bg-mask",onClick:i[1]||(i[1]=e=>a.value=!1)},[e.createVNode(w,{onClick:i[0]||(i[0]=e.withModifiers((()=>{}),["stop"])),onSuccess:o})])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-b98649f5"]]),y=p({__name:"threeselectone",setup(t){e.ref(0);const a=()=>{uni.navigateTo({url:"/pages/login/xuanchuan"})},n=()=>{"1"==g.value?m(1).then((e=>{e.success&&uni.reLaunch({url:"/pages/oldmanindex/index"})})):o()},o=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addoldman/IDcard"})},l=()=>{"1"==h.value?m(2).then((e=>{e.success&&c()})):(uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addstaff/information"}))},c=()=>{uni.reLaunch({url:"/pages/yuangongindex/index"})},s=()=>{"1"==v.value?m(3).then((e=>{e.success&&r()})):d()},r=()=>{uni.navigateTo({url:"/pages/index/index"})},d=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addjigou/name"})},u=()=>{uni.exitMiniProgram({})},p=e.ref(""),g=e.ref(0),h=e.ref(0),v=e.ref(0);return i((()=>{p.value=uni.getStorageSync("tel"),g.value=1,h.value=1,v.value=1})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"photo-imge",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:"card",style:{"margin-top":"550rpx"},onClick:n},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 长者入住 "),e.createElementVNode("view",{class:"card-text"}," 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==g.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 长者进入 ")):e.createCommentVNode("",!0),"1"!=g.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请入住 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/old.png"})])]),e.createElementVNode("view",{class:"card",onClick:l},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 员工入驻 "),e.createElementVNode("view",{class:"card-text"}," 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==h.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 员工进入 ")):e.createCommentVNode("",!0),"1"!=h.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请入驻 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/yuangong.png"})])]),e.createElementVNode("view",{class:"card",style:{height:"340rpx"},onClick:s},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 机构加盟 "),e.createElementVNode("view",{class:"card-text"}," 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 进入机构 ")):e.createCommentVNode("",!0),"1"!=v.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请加盟 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/gongsi.png",onClick:a})])]),e.createElementVNode("view",{class:"blue-button",onClick:u}," 关闭 ")]))}},[["__scopeId","data-v-87689295"]]),N=p({__name:"threeselectonespec",setup(t){e.ref(0);const a=()=>{"1"==w.value?m(3).then((e=>{e.success&&c()})):d()},n=()=>{"1"==v.value?m(2).then((e=>{e.success&&s()})):u()},o=()=>{uni.navigateBack()},l=()=>{uni.navigateTo({url:"/pages/login/index"})},c=()=>{uni.reLaunch({url:"/pages/index/index"})},s=()=>{uni.reLaunch({url:"/pages/yuangongindex/index"})},r=()=>{"1"==h.value?m(1).then((e=>{e.success&&uni.reLaunch({url:"/pages/oldmanindex/index"})})):p()},d=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addjigou/name"})},u=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addstaff/information"})},p=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addoldman/IDcard"})},g=e.ref(""),h=e.ref(0),v=e.ref(0),w=e.ref(0);return i((()=>{g.value=uni.getStorageSync("tel"),h.value=1,v.value=1,w.value=1})),(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"photo-imge",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:o},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),e.createElementVNode("view",{class:"card",style:{"margin-top":"550rpx"},onClick:r},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 长者入住 "),e.createElementVNode("view",{class:"card-text"}," 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==h.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 长者进入 ")):e.createCommentVNode("",!0),"1"!=h.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请入住 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/old.png"})])]),e.createElementVNode("view",{class:"card",onClick:n},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 员工入驻 "),e.createElementVNode("view",{class:"card-text"}," 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==v.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 员工进入 ")):e.createCommentVNode("",!0),"1"!=v.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请入驻 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/yuangong.png"})])]),e.createElementVNode("view",{class:"card",style:{height:"340rpx"},onClick:a},[e.createElementVNode("view",{class:"card-left"},[e.createElementVNode("view",{class:"card-weight"}," 机构加盟 "),e.createElementVNode("view",{class:"card-text"}," 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 "),e.createElementVNode("view",{style:{display:"flex"}},["1"==w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-button"}," 进入机构 ")):e.createCommentVNode("",!0),"1"!=w.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请加盟 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"card-right"},[e.createElementVNode("image",{class:"right-imge",src:"https://www.focusnu.com/media/directive/login/gongsi.png",onClick:l})])])]))}},[["__scopeId","data-v-ad39da48"]]);function V(e){return r({url:`/api/orgApplyInfo/queryAuditInfo?openId=${e}&status=1,2,3`,method:"get"})}function E(e){return r({url:`/api/common/queryAreaDict?id=${e}`,method:"get"})}const k=p({__name:"workjoin",setup(t){e.ref(0);const a=e.ref([]);e.ref(!1);const n=["loading","success","fail"];i((e=>{uni.getStorage({key:"openid",success:function(e){V(e.data).then((e=>{a.value=e.result}))}})})),c((()=>{uni.getStorage({key:"openid",success:function(e){V(e.data).then((e=>{a.value=e.result}))}}),uni.stopPullDownRefresh()}));const o=()=>{uni.navigateBack()};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:o},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"加盟审核")])]),e.createElementVNode("view",{class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})]),e.createElementVNode("view",{class:"bgc-card"},[a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"none"},[e.createElementVNode("image",{style:{width:"300rpx",height:"300rpx"},src:"https://www.focusnu.com/media/directive/index/none.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:""},"暂无加盟审核")])),e.createElementVNode("view",{class:"under-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"white-small",onClick:e=>{return a=t,void uni.navigateTo({url:`/pages/addjigou/all?element=${JSON.stringify(a)}`});var a}},[e.createElementVNode("view",{style:{"font-size":"32rpx"}},e.toDisplayString(t.comName),1),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{style:{"margin-top":"45rpx"}},[e.createElementVNode("view",{class:""},[t.franchiseTime?(e.openBlock(),e.createElementBlock("text",{key:0,style:{color:"#999"}}," 加盟日期:")):e.createCommentVNode("",!0),t.franchiseTime?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.franchiseTime),1)):e.createCommentVNode("",!0),t.franchiseTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:2,style:{color:"#999"}}," 申请日期:")),t.franchiseTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:3},e.toDisplayString(t.commitTime),1))]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#999"}}," 审核日期:"),e.createTextVNode(e.toDisplayString(t.auditTime),1)])]),e.createElementVNode("view",{class:""}),e.createElementVNode("image",{class:"bottom-img",src:`https://www.focusnu.com/media/directive/index/${n[Number(t.status)-1]}.png`},null,8,["src"])])],8,["onClick"])])))),128))])])]))}},[["__scopeId","data-v-c67b3d75"]]),x=p({__name:"workjoinsuccess",setup(a){e.ref(0);const n=e.ref([]);e.ref(!1);const o=["success","loading","success","fail","loading","fail"],l=()=>{uni.getStorage({key:"openid",success:function(e){var a;(a=e.data,r({url:`/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${a}`,method:"get"})).then((e=>{const t={};e.result.forEach((e=>{t[e.pkId]=(t[e.pkId]||0)+1}));const a={},o={};n.value=e.result.map((e=>{const{pkId:n}=e;return t[n]>1?a[n]?e.ischange=!1:(e.ischange=!0,a[n]=!0):e.ischange=!0,o[n]=(o[n]||0)+1,e.isend=o[n]===t[n],e}))})).catch((e=>{t("error","at pages/login/workjoinsuccess.vue:112",e)}))}})};i((e=>{l()})),c((()=>{l(),uni.stopPullDownRefresh()}));const s=()=>{uni.navigateBack()};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:s},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"机构信息")])]),e.createElementVNode("view",{class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})]),e.createElementVNode("view",{class:"bgc-card"},[n.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"none"},[e.createElementVNode("image",{style:{width:"300rpx",height:"300rpx"},src:"https://www.focusnu.com/media/directive/index/none.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:""},"暂无机构信息")])),e.createElementVNode("view",{class:"under-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"white-small",onClick:e=>{return a=t,void uni.navigateTo({url:`/pages/addjigou/all?element=${JSON.stringify(a)}&special=1`});var a}},[e.createElementVNode("view",{style:{"font-size":"32rpx"}},e.toDisplayString(t.comName),1),e.createElementVNode("view",{class:"bottom-father"},[e.createElementVNode("view",{style:{"margin-top":"45rpx"}},[e.createElementVNode("view",{class:""},[e.createElementVNode("text",{style:{color:"#999"}},e.toDisplayString(t.isend?"申请":"变更")+"日期:",1),e.createTextVNode(e.toDisplayString(t.commitTime),1)]),e.createElementVNode("view",{style:{"margin-top":"10rpx"}},[e.createElementVNode("text",{style:{color:"#999"}}," 审核日期:"),e.createTextVNode(e.toDisplayString(t.auditTime),1)])]),e.createElementVNode("image",{class:"bottom-img",src:`https://www.focusnu.com/media/directive/index/${o[Number(t.status)]}.png`},null,8,["src"])]),"0"===t.modifyStatus&&t.ischange?(e.openBlock(),e.createElementBlock("view",{key:0,class:"blue-button",onClick:e.withModifiers((e=>(e=>{let t=e;t.id=null,uni.setStorageSync("baddata",t),uni.setStorageSync("specicalid",t.id),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addjigou/name"})})(t)),["stop"])}," 变更 ",8,["onClick"])):e.createCommentVNode("",!0)],8,["onClick"])])))),128))])])]))}},[["__scopeId","data-v-876d6b86"]]);const b=p({name:"u-message-input",emits:["update:modelValue","input","change","finish"],props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},maxlength:{type:[Number,String],default:4},dotFill:{type:Boolean,default:!1},mode:{type:String,default:"box"},breathe:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},bold:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:60},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#606266"},width:{type:[Number,String],default:"80"},disabledKeyboard:{type:Boolean,default:!1}},watch:{valueCom:{immediate:!0,handler(e){e=String(e),this.valueModel=e.substring(0,Number(this.maxlength))}}},data:()=>({valueModel:""}),computed:{valueCom(){return this.modelValue},animationClass(){return e=>this.breathe&&this.charArr.length==e?"u-breathe":""},charArr(){return this.valueModel.split("")},charArrLength(){return this.charArr.length},loopCharArr(){return new Array(Number(this.maxlength))}},methods:{getVal(e){let{value:t}=e.detail;this.valueModel=t,String(t).length>Number(this.maxlength)||(this.$emit("change",t),this.$emit("input",t),this.$emit("update:modelValue",t),String(t).length==Number(this.maxlength)&&this.$emit("finish",t))}}},[["render",function(t,a,n,o,i,l){return e.openBlock(),e.createElementBlock("view",{class:"u-char-box"},[e.createElementVNode("view",{class:"u-char-flex"},[e.createElementVNode("input",{disabled:n.disabledKeyboard,value:i.valueModel,type:"number",focus:n.focus,maxlength:n.maxlength,class:"u-input",onInput:a[0]||(a[0]=(...e)=>l.getVal&&l.getVal(...e))},null,40,["disabled","value","focus","maxlength"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.loopCharArr,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:e.normalizeClass([n.breathe&&l.charArrLength==a?"u-breathe":"","u-char-item",l.charArrLength===a&&"box"==n.mode?"u-box-active":"","box"===n.mode?"u-box":""]),style:e.normalizeStyle({fontWeight:n.bold?"bold":"normal",fontSize:n.fontSize+"rpx",width:n.width+"rpx",height:n.width+"rpx",color:n.inactiveColor,borderColor:l.charArrLength===a&&"box"==n.mode?n.activeColor:n.inactiveColor})},["middleLine"!==n.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"u-placeholder-line",style:e.normalizeStyle({display:l.charArrLength===a?"block":"none",height:.5*n.width+"rpx"})},null,4)):e.createCommentVNode("",!0),"middleLine"===n.mode&&l.charArrLength<=a?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass([[n.breathe&&l.charArrLength==a?"u-breathe":"",l.charArrLength===a?"u-middle-line-active":""],"u-middle-line"]),style:e.normalizeStyle({height:n.bold?"4px":"2px",background:l.charArrLength===a?n.activeColor:n.inactiveColor})},null,6)):e.createCommentVNode("",!0),"bottomLine"===n.mode?(e.openBlock(),e.createElementBlock("view",{key:2,class:e.normalizeClass([[n.breathe&&l.charArrLength==a?"u-breathe":"",l.charArrLength===a?"u-bottom-line-active":""],"u-bottom-line"]),style:e.normalizeStyle({height:n.bold?"4px":"2px",background:l.charArrLength===a?n.activeColor:n.inactiveColor})},null,6)):e.createCommentVNode("",!0),n.dotFill?(e.openBlock(),e.createElementBlock("text",{key:4,class:"u-dot"},e.toDisplayString(l.charArr[a]?"●":""),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode(e.toDisplayString(l.charArr[a]?l.charArr[a]:""),1)],64))],6)])))),128))])])}],["__scopeId","data-v-8c19fd07"]]),S=p({__name:"code",setup(n){const o=e.ref(""),l=e.ref("");e.ref(["","","",""]);const c=e.ref(-1),s=e.ref(!1),d=e.ref("rgba(0, 0, 0, 0.5)");function m(){s.value=!1}const p=e=>{var t;"string"==typeof(t=e)&&4===t.length&&h(e)},g=e.ref(""),h=e=>{const a=e;if(4===a.length){let e=uni.getStorageSync("openid");g.value!=a&&(g.value=a,(n={mobile:o.value,openId:e,smscode:a},r({url:"/sys/checkPhoneCode",method:"post",data:n})).then((t=>{t.success?u(e).then((e=>{uni.setStorageSync("tel",e.result.tel),uni.setStorageSync("token",e.result.token),uni.setStorageSync("serverUrl",e.result.serverUrl),uni.reLaunch({url:"/pages/login/specialloginafther"})})):uni.showToast({title:t.message,icon:"none",duration:2e3})})))}else t("log","at pages/login/code.vue:194","验证码未输入完整");var n},v=()=>{var e;(e={mobile:o.value,hkcode:l.value,smsmode:1},r({url:"/sys/smsCode",method:"post",data:e})).then((e=>{e.success?(uni.showToast({title:"发送成功",icon:"none",duration:2e3}),c.value=0,f.value=60,y=setInterval((()=>{f.value>0?f.value--:(clearInterval(y),y=null)}),1e3)):uni.showToast({title:e.message,icon:"none",duration:2e3})}))},w=()=>{uni.navigateBack()},f=e.ref(0);let y=null;return e.onUnmounted((()=>{y&&clearInterval(y)})),i((e=>{o.value=e.mobile,l.value=e.hkcode,v()})),(t,n)=>{const i=a(e.resolveDynamicComponent("u-message-input"),b);return e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("image",{class:"photo-imge",src:"https://www.focusnu.com/media/directive/login/bgc.png"}),e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/login/back.png",onClick:w}),e.createElementVNode("view",{class:"under-container-title"},[e.createElementVNode("view",{class:"code-title"}," 请输入验证码 "),e.createElementVNode("view",{class:"code-number"},[e.createTextVNode(" 验证码已发送到 "),e.createElementVNode("view",{class:"code-font"},e.toDisplayString(o.value),1)])]),e.createElementVNode("view",{class:"captcha-container"},[e.createVNode(i,{"active-color":"#333333","inactive-color":"rgb(175,179,189)",width:"150",focus:!0,mode:"bottomLine",onChange:p})]),e.createElementVNode("view",{class:"under-view",style:{"z-index":"1"}},[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"right-blue",onClick:v}," 重新发送 ")),f.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"right-white"},[e.createElementVNode("text",{style:{color:"#0096FF"}},e.toDisplayString(f.value)+"秒",1),e.createTextVNode("后重新发送 ")])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"right-black",onClick:n[0]||(n[0]=e=>s.value=!0)}," 收不到验证码? ")]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"overlay",onClick:m,style:e.normalizeStyle({backgroundColor:d.value})},null,4)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"modal"},[e.createElementVNode("view",{class:"modal-title"},"收不到验证码"),e.createElementVNode("view",{class:"model-p"},[e.createElementVNode("view",{class:"text-view",style:{"font-weight":"600"}},"手机号可正常使用:"),e.createElementVNode("view",{class:"text-view"},"1 是否输错手机号"),e.createElementVNode("view",{class:"text-view"},"2 手机是否设置短信拦截/欠费/信号不好"),e.createElementVNode("view",{class:"text-view"},"3 手机内存是否满了"),e.createElementVNode("view",{class:"text-view"},"4 手机卡是否为物联卡,而非SIM卡")])])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-34bd5a70"]]),C=p({__name:"protocol",setup(t){const a=()=>{uni.navigateBack()};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"font-father"},[e.createElementVNode("view",{class:"title-font"}," NU 护理单元使用条款 "),e.createElementVNode("view",{class:"font-qian"}," 一、总则 "),e.createElementVNode("view",{class:"font-normal"},[e.createElementVNode("p",null,"  为规范长者及家属在 NU 护理单元的行为,保障长者得到优质护理服务,维护护理单元正常秩序,鉴于每个护理单元均为独立空间,特制定本使用条款。本条款是所有进入NU 护理单元的长者、家属必须遵守的准则,违反者将根据情节承担相应责任。")]),e.createElementVNode("view",{class:"font-qian"}," 二、长者及家属使用条款 "),e.createElementVNode("view",{class:"font-ri"}," (一)日常行为规范 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.遵守作息时间:"),e.createTextVNode("严格遵守护理单元规定的作息时间,保持安静,不得大声喧哗、播放音乐或进行其他影响他人休息的活动。各独立护理单元之间应相互保持安静,避免噪音干扰其他单元长者。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"2.维护环境卫生:"),e.createTextVNode("保持所在护理单元病房及公共区域的整洁卫生,不随地吐痰、乱扔垃圾。生活垃圾应分类投放到指定垃圾桶内,医疗废物交由护理人员统一处理,不得随意丢弃。不得将垃圾放置在护理单元外公共通道,以免影响其他单元环境。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"3.爱护公共设施:"),e.createTextVNode("妥善使用本护理单元病房内的床铺、桌椅、呼叫器、卫生间设备等公共设施,不得故意损坏。如因使用不当造成设施设备损坏,需照价赔偿。禁止在病房内私自拆卸、改装任何设施设备。严禁将本护理单元设施设备挪至其他单元使用。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"4.规范用电安全:"),e.createTextVNode(":严禁在病房内使用电炉、热得快、电暖器等大功率电器,不得私拉乱接电线,防止发生用电安全事故。手机、充电器等小型电器使用完毕后及时拔除电源。各护理单元应独立检查用电安全,不得因用电不当影响其他单元供电。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"5.禁止吸烟:"),e.createTextVNode("NU 护理单元为无烟区域,长者及家属严禁在病房、走廊、卫生间等任何区域吸烟,违者将按照医院相关规定进行处罚。尤其要注意,在独立护理单元周边区域也严禁吸烟避免烟雾飘散影响其他单元长者健康。 ")]),e.createElementVNode("view",{class:"font-ri",style:{"margin-top":"50rpx"}}," (二)安全与沟通 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.长者安全管理:")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  长者不得擅自离开所在护理单元。确需外出时,须向主管护士提出书面请假申请,经医生评估同意并签署意见后,方可离院。外出期间长者的安全由家属负责,如因擅自外出导致病情加重或其他意外情况,后果自行承担。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  主动与医护人员保持良好沟通,及时反馈长者的病情变化、不适症状及心理状态。积极参与长者的护理计划和治疗方案制定,提出合理的意见和建议。家属如需了解其他护理单元类似病例情况,应通过医护人员正规渠道咨询,不得私自打听。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  妥善保管长者的贵重物品,医护人员不承担长者财物保管责任。如需帮助,可与护理单元管理人员协商解决。不得在护理单元公共区域随意堆放个人物品,影响通行及空间使用。")]),e.createElementVNode("view",{class:"font-qian"}," 三、独立空间管理细则 "),e.createElementVNode("view",{class:"font-normal"},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.空间使用规范:"),e.createTextVNode("各护理单元为独立封闭空间,未经允许,长者、家属及医护人员不得随意进入其他护理单元。护理单元之间设置明显标识及隔离设施,防止人员误闯。在紧急情况下,如需跨单元调配资源,需遵循医院统一指挥,按照既定应急流程执行。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"2.设施设备管理:"),e.createTextVNode("每个护理单元配备独立的仪器设备,设备专人专用,定期维护保养。设备标识明确所属护理单元,不得自挪用至其他单元。如设备出现故障,及时报修,并在本单元内做好备用设备调配,确保护理工作不受影响。定期对护理单元内设施设备进行安全检查,包括电气设备、医疗器械等,保障长者使用安全。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"3.环境清洁与消毒:"),e.createTextVNode("各护理单元安排专人负责日常清洁与消毒工作,保持空间内环境整洁卫生。按照医院感染防控要求,制定独立的消毒计划,对病房、走廊、卫生间、护士站等区域定期消毒。消毒用品独立存放于本护理单元,妥善保管,防止误用。在传染病流行期间,加强本护理单元的防控措施,严格限制人员进出,确保不发生交又感染。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"4.物资管理:"),e.createTextVNode("护理单元内物资独立储备,包括药品、耗材、办公用品等。建立物资管理台账,定期盘点,确保物资充足且在有效期内。物资领取、使用严格登记,避免浪费及流失。特殊物资(如急救药品、贵重耗材)单独存放,专人负责管理,保障紧急情况下物资供应。若物资短缺需跨单元调配,需经上级部门协调,遵循先急后缓原则。 ")]),e.createElementVNode("view",{class:"font-qian"}," 四、附则 "),e.createElementVNode("view",{class:"font-normal"}," 1.本使用条款由[制定部门]负责解释和修订。 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}}," 2.本使用条款自发布之日起施行。如有与本条款相抵触的规定,以本条款为准。 "),e.createElementVNode("view",{class:"back-button",onClick:a}," 关闭 ")]))}},[["__scopeId","data-v-8fad1f81"]]),B=p({__name:"special",setup(t){const a=[{title:"日常照料:专业规范,细致周全",content:"提供专业日常、饮食、清洁、睡眠、排泄等照料服务,长者舒适安心。"},{title:" 健康监测:实时监测、精准应对",content:"7*24小时生命体征监测,专业方案提前防控,健康风险提早化解。"},{title:" 医护照料:多专联合,专业护航",content:"医疗、护理团队协同合作,守护长者身体安康。"},{title:"康复护理:科学规划,有效复健",content:"量身定制护理流程,科学手段实施精准干预,为长者健康保驾护航。"},{title:"贴心关怀:温暖陪伴、心灵慰藉",content:"护理员床前陪伴、耐心疏导,让长者感受家的温暖与关怀。"}],n=e.ref(""),o=()=>{u(uni.getStorageSync("openid")).then((e=>{if(e.result.tel)switch(uni.setStorageSync("tel",e.result.tel),uni.setStorageSync("token",e.result.token),uni.setStorageSync("serverUrl",e.result.serverUrl),uni.setStorageSync("platId",e.result.platId),uni.setStorageSync("izJg",e.result.izJg),uni.setStorageSync("izJs",e.result.izJs),uni.setStorageSync("izYg",e.result.izYg),e.result.advisoryType){case"1":default:uni.reLaunch({url:"/pages/login/threeselectone"});break;case"2":break;case"3":uni.reLaunch({url:"/pages/index/index"})}else uni.reLaunch({url:"/pages/login/index"})}))},l=e.ref(!1);const c=()=>{uni.navigateBack()};return i((e=>{e.type||(n.value=uni.getStorageSync("tel")),e.no&&(l.value=!0)})),(t,i)=>{return e.openBlock(),e.createElementBlock("view",{class:"font-father"},[l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:c},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"宣传页")])])):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"fixed"},[e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/login/introduce/selectbgc.png"},null,8,["src"]),e.createElementVNode("view",{class:"font-title"},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("text",null,"尊敬的用户,您的手机"),e.createElementVNode("text",{style:{color:"#259AFB"}},e.toDisplayString((s=n.value,s.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"))),1)]),e.createElementVNode("view",{class:"big-font"}," 已成功绑定 "),e.createElementVNode("view",{class:""}," 欢迎加入护理单元大家庭! ")]),e.createElementVNode("view",{style:{width:"100%"}},[e.createElementVNode("view",{class:"bottom-button",onClick:o}," 进入机构 ")])])),e.createElementVNode("view",{class:"white-father-spec",style:e.normalizeStyle(l.value?{marginTop:"0rpx"}:{})},[e.createElementVNode("image",{class:"white-imge-spec",src:"https://www.focusnu.com/media/directive/login/introduce/oldman.png"}),e.createElementVNode("view",{class:"weight-font"}," 长者入住 ")],4),e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,a)=>e.createElementVNode("view",{key:a,style:{width:"100%"}},[e.createElementVNode("view",{class:"white-card"},[e.createElementVNode("view",{class:"white-left"},[e.createElementVNode("view",{class:"white-title"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"white-text"},e.toDisplayString(t.content),1)]),e.createElementVNode("image",{class:"white-right",src:`https://www.focusnu.com/media/directive/login/introduce/${a}.png`},null,8,["src"])])]))),64))]),e.createElementVNode("view",{class:"white-father"},[e.createElementVNode("image",{class:"white-imge",src:"https://www.focusnu.com/media/directive/login/introduce/nurse.png"}),e.createElementVNode("view",{class:"weight-font"}," 员工入驻 "),e.createElementVNode("view",{class:"gray-font"}," 入驻护理单元,遵循标准护理流程,提供长者床旁照护用专业技能与人文关怀共同守护长者健康。依托物联设备优化服务流程,依托员工培训提升照护能力,确保服务精准高效。 ")]),e.createElementVNode("view",{class:"white-father",style:{"margin-bottom":"50rpx"}},[e.createElementVNode("image",{class:"white-imge",src:"https://www.focusnu.com/media/directive/login/introduce/jigou.png"}),e.createElementVNode("view",{class:"weight-font"}," 机构加盟 "),e.createElementVNode("view",{class:"gray-font"}," 加盟护理单元,坐拥成熟运营体系,精简人力配置,降低运营成本。优质资源共享,多重优势协同发力,全方位拓宽利润空间,助力占领银发赛道。 ")])]);var s}}},[["__scopeId","data-v-c7db6dc9"]]),T=p({__name:"specialsmall",setup(t){const a=e.ref(!1),n=()=>{u(uni.getStorageSync("openid")).then((e=>{uni.setStorageSync("tel",e.result.tel),uni.setStorageSync("token",e.result.token),uni.setStorageSync("serverUrl",e.result.serverUrl),uni.setStorageSync("platId",e.result.platId),uni.setStorageSync("izJg",e.result.izJg),uni.setStorageSync("izJs",e.result.izJs),uni.setStorageSync("izYg",e.result.izYg),uni.reLaunch({url:"/pages/index/index"})}))};return i((e=>{"true"==e.special&&(a.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"font-father"},[e.createElementVNode("view",{class:"fixed"},[e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/login/introduce/allbgc.png"},null,8,["src"]),e.createElementVNode("image",{class:"title-photo",src:"https://www.focusnu.com/media/directive/index/bluephoto.png"},null,8,["src"]),e.createElementVNode("view",{class:"small-title"},[e.createTextVNode(" 尊敬的用户,您的机构"+e.toDisplayString(a.value?"变更信息":"加盟"),1),e.createElementVNode("text",{style:{color:"rgb(1,153,255)"}},"申请已成功提交")]),e.createElementVNode("view",{class:"normal"},[e.createElementVNode("text",null,e.toDisplayString(a.value?"我们将尽快处理并反馈审核结果":"请耐心等待审核结果")+","+e.toDisplayString(a.value?"期待与您继续携手同行":"期待您早日加入护理单元大家庭")+" ! ",1)])]),e.createElementVNode("view",{class:"bottom-button",onClick:n}," 我的机构 ")]))}},[["__scopeId","data-v-a8c57b63"]]),_=p({__name:"specialloginafther",setup(t){const a=()=>{uni.reLaunch({url:"/pages/login/threeselectone"})},n=e.ref("");return i((e=>{n.value=uni.getStorageSync("tel")})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"font-father"},[e.createElementVNode("view",{class:"fixed"},[uni.getStorageSync("isstaffchange")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-photo",src:"https://www.focusnu.com/media/directive/index/blue111.png"},null,8,["src"])),uni.getStorageSync("isstaffchange")?(e.openBlock(),e.createElementBlock("image",{key:1,class:"title-photo",style:{width:"300rpx",height:"300rpx"},src:"https://www.focusnu.com/media/directive/index/blue222.png"},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{"font-size":"35rpx","font-weight":"600",margin:"50rpx 0"}}," 尊敬的用户,您的手机 "),e.createElementVNode("view",{class:"small-title"},e.toDisplayString(n.value),1),e.createElementVNode("view",{class:"normal"},[e.createElementVNode("text",null," 已成功绑定,期待您早日加入护理单元大家庭! ")])]),e.createElementVNode("view",{class:"bottom-button",onClick:a}," 我的机构 ")]))}},[["__scopeId","data-v-b7af2aec"]]),I=p({__name:"xuanchuan",setup(t){const a=()=>{uni.reLaunch({url:"/pages/login/index"})},n=e.ref(0),o=e=>{n.value=e.detail.current};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"font-father"},[e.createElementVNode("swiper",{style:e.normalizeStyle([{width:"100%"},{height:"92vh"}]),duration:150,current:n.value,onChange:o},[e.createElementVNode("swiper-item",{style:{position:"relative"}},[e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/login/bgc0.jpg"},null,8,["src"]),e.createElementVNode("view",{style:{width:"100%","padding-left":"75rpx","padding-right":"75rpx",position:"absolute",left:"0",bottom:"100rpx"}},[e.createElementVNode("view",{class:"title-name"},[e.createElementVNode("view",{class:"font-weight"}," 长者入住 ")]),e.createElementVNode("view",{class:"yuangong-font"},[e.createTextVNode("   提供专业照料, 涵盖日常、饮食、清洁、排泄等方面,"),e.createElementVNode("text",{style:{color:"#2792FC"}},"7*24 小时生命体征监测,医护团队协同护航 "),e.createTextVNode(" ,量身定制科学的护理流程,护理员贴心床前陪伴,让长者感受家的温暖与关怀。 ")])])]),e.createElementVNode("swiper-item",{style:{position:"relative"}},[e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/login/bgc1.jpg"},null,8,["src"]),e.createElementVNode("view",{style:{width:"100%","padding-left":"75rpx","padding-right":"75rpx",position:"absolute",left:"0",bottom:"100rpx"}},[e.createElementVNode("view",{class:"title-name"},[e.createElementVNode("view",{class:"font-weight"}," 员工入驻 ")]),e.createElementVNode("view",{class:"yuangong-font"},[e.createTextVNode("   入驻护理单元,遵循标准护理流程,提供长者床旁照护,用专业技能与人文关怀共同守护长者健康。"),e.createElementVNode("text",{style:{color:"#2792FC"}},"依托物联设备优化服务流程,依托员工培训提升照护能力,确保服务精准高效。")])])]),e.createElementVNode("swiper-item",{style:{position:"relative"}},[e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/login/bgc2.jpg"},null,8,["src"]),e.createElementVNode("view",{style:{width:"100%","padding-left":"75rpx","padding-right":"75rpx",position:"absolute",left:"0",bottom:"150rpx"}},[e.createElementVNode("view",{class:"title-name"},[e.createElementVNode("view",{class:"font-weight"}," 机构加盟 ")]),e.createElementVNode("view",{class:"yuangong-font"},[e.createTextVNode("   加盟护理单元,坐拥成熟运营体系,精简人力配置,降低运营成本。优质资源共享,多重优势协同发力,"),e.createElementVNode("text",{style:{color:"#2792FC"}},"全方位拓宽利润空间,助力占领银发赛道。")])])])],40,["current"]),2!=n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"dian-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([1,2,3],((t,a)=>e.createElementVNode("view",{key:a,class:e.normalizeClass(n.value===a?"dian-target":"dian")},null,2))),64))])):e.createCommentVNode("",!0),2==n.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"bottom-button",onClick:a}," 前往登录 ")):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-d70f5cd7"]]),D=p({__name:"downmenu",props:{itemTarget:{type:Number,required:!0}},setup(t){const a=t,n=["NU","动态","我的"];return(o,i)=>(e.openBlock(),e.createElementBlock("view",{class:"botton-view"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((n,o)=>e.createElementVNode("view",{key:o,class:"array-father"},[e.createElementVNode("view",{class:e.normalizeClass(t.itemTarget===o?"bottom-button-target":"bottom-button"),onClick:e=>(e=>{if(e!=a.itemTarget)switch(e){case 0:uni.reLaunch({url:"/pages/index/index"});break;case 1:break;case 2:uni.reLaunch({url:"/pages/index/mine"})}})(o)},[e.createElementVNode("image",{class:"botton-img",src:`https://www.focusnu.com/media/directive/index/itemsbutton/${o}${t.itemTarget===o?1:0}.png`},null,8,["src"]),e.createElementVNode("view",{class:"bottom-text"},e.toDisplayString(n),1)],10,["onClick"])]))),64))]))}},[["__scopeId","data-v-b58b19c2"]]),z=p({__name:"model",props:{show:{type:Boolean,default:!0},content:{type:String,default:""}},emits:["close"],setup(t,{emit:a}){const n=a;function o(){n("close")}return(a,n)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["neuro-wrapper",t.show?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:o}),e.createElementVNode("view",{class:"neuro-box",onClick:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{style:{"font-size":"25rpx","line-height":"45rpx"}},e.toDisplayString(t.content),1)])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-c5c3b002"]]),$=p({__name:"index",setup(a){const n=e.ref(!1),o=e.ref(""),l=e.ref(["单元","仓库","后勤","工区","办公室 ","员工","机构维护"]),c=["loading","success","fail"],s=e.ref(0),r=()=>{s.value=p.value.length,u.value=s.value},d=()=>{uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addjigou/name"})},u=e.ref(0),m=e=>{u.value=e.detail.current,s.value=e.detail.current};e.onMounted((async()=>{})),e.onUnmounted((()=>{}));const p=e.ref([]),g=()=>{uni.getStorage({key:"openid",success:function(e){V(e.data).then((e=>{p.value=e.result,p.value.push({status:"-1"})}))}})};return i((()=>{g()})),(a,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("view",{class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})]),e.createVNode(z,{show:n.value,onClose:i[0]||(i[0]=e=>n.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("swiper",{style:e.normalizeStyle([{width:"100%",position:"fixed",bottom:"0",left:"0"},{minHeight:"100vh"}]),duration:150,current:s.value,onChange:m},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,((a,i)=>(e.openBlock(),e.createElementBlock("view",{key:i},[e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"white-content-father"},["1"==a.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"chuo-ball",onClick:g},[e.createElementVNode("image",{class:"ball-img",src:"https://www.focusnu.com/media/directive/index/refresh.png"},null,8,["src"])])):e.createCommentVNode("",!0),"1"==a.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-content"},[e.createElementVNode("image",{class:"white-content-img",src:`https://www.focusnu.com/media/directive/index/${c[Number(a.status)-1]}.png`,"lazy-load":"false"},null,8,["src"]),e.createElementVNode("view",{class:"white-font"}," 您提交的 "),e.createElementVNode("view",{class:"second-font"},[e.createElementVNode("text",null,' "'+e.toDisplayString(a.comName)+'" ',1)]),e.createElementVNode("view",{class:"second-font"},[e.createTextVNode(" 加盟申请 "),e.createElementVNode("text",{style:{color:"#fa8622"}}," 正在审核中 ")]),e.createElementVNode("view",{class:"button-blue",onClick:e=>{return t=a,void uni.navigateTo({url:`/pages/addjigou/all?element=${JSON.stringify(t)}`});var t}}," 查看 ",8,["onClick"])])):e.createCommentVNode("",!0),"3"==a.status?(e.openBlock(),e.createElementBlock("view",{key:2,class:"white-content"},[e.createElementVNode("image",{class:"white-content-img",src:`https://www.focusnu.com/media/directive/index/${c[Number(a.status)-1]}.png`,"lazy-load":"false"},null,8,["src"]),e.createElementVNode("view",{class:"white-font"}," 您提交的 "),e.createElementVNode("view",{class:"second-font"},[e.createElementVNode("text",null,' "'+e.toDisplayString(a.comName)+'" ',1)]),e.createElementVNode("view",{class:"second-font"},[e.createTextVNode(" 加盟申请 "),e.createElementVNode("text",{style:{color:"#eb2b59"}}," 审核不通过 ")]),e.createElementVNode("view",{class:"button-blue-spec",onClick:e=>(e=>{t("log","at pages/index/index.vue:203","????",e),uni.setStorageSync("baddata",e),uni.setStorageSync("specicalid",e.id),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addjigou/name"})})(a)}," 重新提交 ",8,["onClick"]),e.createElementVNode("view",{class:"button-white-spec",onClick:e=>{var t;(t=a.content)&&(o.value=t,n.value=!0)}}," 驳回原因 ",8,["onClick"])])):e.createCommentVNode("",!0),"2"==a.status?(e.openBlock(),e.createElementBlock("view",{key:3,style:{"z-index":"1",width:"100%"}},[e.createElementVNode("view",{class:"zhiling-box"},[e.createElementVNode("view",{class:""}," 暂无指令 "),e.withDirectives(e.createElementVNode("image",{class:"zhiling-img",src:"https://www.focusnu.com/media/directive/index/mine/more.png"},null,512),[[e.vShow,!1]])]),e.createElementVNode("view",{class:"white-box-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"white-box"},[e.createElementVNode("image",{class:"box-img",src:`https://www.focusnu.com/media/directive/index/addjiji/${a}.png`},null,8,["src"]),e.createElementVNode("view",{class:"box-font"},e.toDisplayString(t),1)])))),128)),e.createElementVNode("view",{class:"white-box"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"80rpx"}},"+")])])])):e.createCommentVNode("",!0)]),"-1"==a.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-content",style:{margin:"0 auto"}},[e.createElementVNode("image",{class:"white-content-secondimg",src:"https://www.focusnu.com/media/directive/index/addjiji/addjigou.png","lazy-load":"false"}),e.createElementVNode("view",{class:"button-blue",onClick:d}," 添加机构 ")])):e.createCommentVNode("",!0),"2"==a.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-content-father-time"},[a.comName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-content",style:{"background-color":"transparent"}},[e.createElementVNode("view",{class:"white-bgc"},e.toDisplayString(a.comName),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])))),128))],40,["current"]),e.createElementVNode("view",{style:{"z-index":"999",position:"fixed",bottom:"70rpx",width:"100%",display:"flex","justify-content":"center","margin-top":"-25rpx",height:"100rpx"}},[e.createElementVNode("view",{class:"jia-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,onClick:e=>{return t=a,s.value=t,void(u.value=s.value);var t}},[a!=p.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(u.value==a?"black-box":"gray-box")},null,2)):e.createCommentVNode("",!0),a==p.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:1,class:"jia",onClick:r},[e.createElementVNode("image",{class:"jia-img",src:"https://www.focusnu.com/media/directive/index/bluejia.png"},null,8,["src"])])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])]),e.createVNode(D,{itemTarget:0})]))}},[["__scopeId","data-v-f8226587"]]),P=p({__name:"exit",props:{show:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:a}){const n=a;function o(){n("close")}const i=()=>{uni.exitMiniProgram({})};return(a,n)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["neuro-wrapper",t.show?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:o}),e.createElementVNode("view",{class:"neuro-box",onClick:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:"button-white",onClick:o},"取消"),e.createElementVNode("view",{class:"button",onClick:i},"确定")]),e.createElementVNode("view",{style:{"font-size":"25rpx","line-height":"45rpx","margin-top":"-50rpx"}},"确定要退出登录吗")])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-d292bb3b"]]),A=p({__name:"mine",setup(t){const a=e.ref("");e.ref("");const n=e.ref(""),o=e.ref(!1);e.onMounted((()=>{a.value=uni.getStorageSync("tel"),n.value=uni.getStorageSync("platId")}));const i=["机构信息","加盟审核","机构功能"],l=()=>{uni.navigateTo({url:"/pages/login/threeselectonespec"})},c=()=>{o.value=!0};return(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createVNode(P,{show:o.value,onClose:s[0]||(s[0]=e=>o.value=!1)},null,8,["show"]),e.createElementVNode("image",{class:"bgc-imge",src:"https://www.focusnu.com/media/directive/index/mine/bgc.png"}),e.createElementVNode("view",{class:"ball"},[e.createElementVNode("image",{class:"ball-imge",src:"https://www.focusnu.com/media/directive/index/mine/head.png"})]),e.createElementVNode("view",{style:{display:"flex","margin-top":"30rpx"}},[e.createElementVNode("view",{class:"badid"}," ID "),e.createElementVNode("view",{style:{"z-index":"1","margin-top":"-3rpx"}},e.toDisplayString(n.value),1)]),e.createElementVNode("view",{class:"phone"},e.toDisplayString(a.value),1),e.createElementVNode("view",{class:"white-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>e.createElementVNode("view",{class:"white-card",key:a,onClick:e=>(e=>{switch(e){case 0:uni.navigateTo({url:"/pages/login/workjoinsuccess"});break;case 1:uni.navigateTo({url:"/pages/login/workjoin"})}})(a)},[e.createElementVNode("view",{class:"white-left"},[e.createElementVNode("image",{class:"white-left-imge",src:`https://www.focusnu.com/media/directive/index/mine/${a}.png`},null,8,["src"]),e.createElementVNode("view",{style:{"font-size":"32rpx"}},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"white-right"},[a?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,style:{"font-size":"30rpx","margin-top":"-4rpx"}},"变更机构信息")),e.createElementVNode("image",{class:"white-right-imge",src:"https://www.focusnu.com/media/directive/index/mine/more.png"})])],8,["onClick"]))),64))]),e.createElementVNode("view",{class:"blue-button",onClick:l},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/change.png"}),e.createTextVNode(" 切换账号 ")]),e.createElementVNode("view",{class:"white-button",onClick:c},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/exit.png"}),e.createTextVNode(" 退出登录 ")]),e.createVNode(D,{itemTarget:2})]))}},[["__scopeId","data-v-3f1b5f22"]]);const L=p({name:"u-mask",emits:["click"],props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},customStyle:{type:Object,default:()=>({})},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0},blur:{type:[Number,String],default:0}},data:()=>({zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}),watch:{show(e){e&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!e&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle(){let e={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?e.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:e.zIndex=-1,e.transition=`all ${this.duration/1e3}s ease-in-out`,Object.keys(this.customStyle).length&&(e={...e,...this.customStyle}),e},filterStyle(){let{blur:e}=this,t={};return e&&(t.backdropFilter=`blur(${e}rpx)`),t}},methods:{click(){this.maskClickAble&&this.$emit("click")}}},[["render",function(t,a,n,o,i,l){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["u-mask",{"u-mask-zoom":n.zoom,"u-mask-show":n.show}]),"hover-stop-propagation":"",style:e.normalizeStyle([l.maskStyle,i.zoomStyle,l.filterStyle]),onClick:a[0]||(a[0]=(...e)=>l.click&&l.click(...e)),onTouchmove:e.withModifiers((()=>{}),["stop","prevent"])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],38)}],["__scopeId","data-v-005d3602"]]);const F=p({name:"u-icon",emits:["click","touchstart"],props:{name:{type:String,default:""},color:{type:[String,null],default:""},size:{type:[Number,String],default:"inherit"},bold:{type:Boolean,default:!1},index:{type:[Number,String],default:""},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"28"},labelColor:{type:String,default:"#606266"},marginLeft:{type:[String,Number],default:"6"},marginTop:{type:[String,Number],default:"6"},marginRight:{type:[String,Number],default:"6"},marginBottom:{type:[String,Number],default:"6"},imgMode:{type:String,default:"widthFix"},customStyle:{type:Object,default:()=>({})},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},showDecimalIcon:{type:Boolean,default:!1},inactiveColor:{type:String,default:"#ececec"},percent:{type:[Number,String],default:"50"}},computed:{customClass(){let e=[],{customPrefix:t,name:a}=this,n=a.indexOf("-icon-");return n>-1?(t=a.substring(0,n+5),e.push(a)):e.push(`${t}-${a}`),"uicon"===t?e.push("u-iconfont"):e.push(t),this.showDecimalIcon&&this.inactiveColor&&this.$u.config.type.includes(this.inactiveColor)?e.push("u-icon__icon--"+this.inactiveColor):this.color&&this.$u.config.type.includes(this.color)&&e.push("u-icon__icon--"+this.color),e},iconStyle(){let e={};return e={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top)},this.showDecimalIcon&&this.inactiveColor&&!this.$u.config.type.includes(this.inactiveColor)?e.color=this.inactiveColor:this.color&&!this.$u.config.type.includes(this.color)&&(e.color=this.color),e},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let e={};return e.width=this.width?this.$u.addUnit(this.width):this.$u.addUnit(this.size),e.height=this.height?this.$u.addUnit(this.height):this.$u.addUnit(this.size),e},decimalIconStyle(){let e={};return e={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top),width:this.percent+"%"},this.color&&!this.$u.config.type.includes(this.color)&&(e.color=this.color),e},decimalIconClass(){let e=[];return e.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?e.push("u-iconfont"):e.push(this.customPrefix),this.color&&this.$u.config.type.includes(this.color)?e.push("u-icon__icon--"+this.color):e.push("u-icon__icon--primary"),e}},methods:{click(){this.$emit("click",this.index)},touchstart(){this.$emit("touchstart",this.index)}}},[["render",function(t,a,n,o,i,l){return e.openBlock(),e.createElementBlock("view",{style:e.normalizeStyle([n.customStyle]),class:e.normalizeClass(["u-icon",["u-icon--"+n.labelPos]]),onClick:a[1]||(a[1]=(...e)=>l.click&&l.click(...e))},[l.isImg?(e.openBlock(),e.createElementBlock("image",{key:0,class:"u-icon__img",src:n.name,mode:n.imgMode,style:e.normalizeStyle([l.imgStyle])},null,12,["src","mode"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["u-icon__icon",l.customClass]),style:e.normalizeStyle([l.iconStyle]),"hover-class":n.hoverClass,onTouchstart:a[0]||(a[0]=(...e)=>l.touchstart&&l.touchstart(...e))},[n.showDecimalIcon?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle([l.decimalIconStyle]),class:e.normalizeClass([l.decimalIconClass,"u-icon__decimal"]),"hover-class":n.hoverClass},null,14,["hover-class"])):e.createCommentVNode("",!0)],46,["hover-class"])),""!==n.label&&null!==n.label?(e.openBlock(),e.createElementBlock("text",{key:2,class:"u-icon__label",style:e.normalizeStyle({color:n.labelColor,fontSize:t.$u.addUnit(n.labelSize),marginLeft:"right"==n.labelPos?t.$u.addUnit(n.marginLeft):0,marginTop:"bottom"==n.labelPos?t.$u.addUnit(n.marginTop):0,marginRight:"left"==n.labelPos?t.$u.addUnit(n.marginRight):0,marginBottom:"top"==n.labelPos?t.$u.addUnit(n.marginBottom):0})},e.toDisplayString(n.label),5)):e.createCommentVNode("",!0)],6)}],["__scopeId","data-v-32e6a46e"]]);const j=p({name:"u-popup",emits:["update:modelValue","input","open","close"],props:{value:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},show:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},customStyle:{type:Object,default:()=>({})},popup:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:""},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"close"},closeIconPos:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#909399"},closeIconSize:{type:[String,Number],default:"30"},width:{type:String,default:""},height:{type:String,default:""},negativeTop:{type:[String,Number],default:0},maskCustomStyle:{type:Object,default:()=>({})},duration:{type:[String,Number],default:250},blur:{type:[String,Number],default:0},backgroundColor:{type:String,default:"#ffffff"}},data:()=>({visibleSync:!1,showDrawer:!1,timer:null,closeFromInner:!1}),computed:{valueCom(){return this.modelValue},style(){let e={};if("left"==this.mode||"right"==this.mode?e={width:this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),height:"100%",transform:`translate3D(${"left"==this.mode?"-100%":"100%"},0px,0px)`}:"top"!=this.mode&&"bottom"!=this.mode||(e={width:"100%",height:this.height?this.getUnitValue(this.height):this.getUnitValue(this.length),transform:`translate3D(0px,${"top"==this.mode?"-100%":"100%"},0px)`}),e.zIndex=this.uZindex,this.borderRadius){switch(this.mode){case"left":e.borderRadius=`0 ${this.borderRadius}rpx ${this.borderRadius}rpx 0`;break;case"top":e.borderRadius=`0 0 ${this.borderRadius}rpx ${this.borderRadius}rpx`;break;case"right":e.borderRadius=`${this.borderRadius}rpx 0 0 ${this.borderRadius}rpx`;break;case"bottom":e.borderRadius=`${this.borderRadius}rpx ${this.borderRadius}rpx 0 0`}e.overflow="hidden"}return this.duration&&(e.transition=`all ${this.duration/1e3}s linear`),e},centerStyle(){let e={};return e.width=this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),e.height=this.height?this.getUnitValue(this.height):"auto",e.zIndex=this.uZindex,e.marginTop=`-${this.$u.addUnit(this.negativeTop)}`,this.borderRadius&&(e.borderRadius=`${this.borderRadius}rpx`,e.overflow="hidden"),e},uZindex(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{valueCom:{handler(e){e?this.open():this.closeFromInner||this.close(),this.closeFromInner=!1}}},mounted(){this.valueCom&&this.open()},methods:{getUnitValue:e=>/(%|px|rpx|auto)$/.test(e)?e:e+"rpx",maskClick(){this.close()},close(){this.closeFromInner=!0,this.change("showDrawer","visibleSync",!1)},modeCenterClose(e){"center"==e&&this.maskCloseAble&&this.close()},open(){this.change("visibleSync","showDrawer",!0)},change(e,t,a){1==this.popup&&(this.$emit("input",a),this.$emit("update:modelValue",a)),this[e]=a,a?this.$nextTick((()=>{this[t]=a,this.$emit(a?"open":"close")})):this.timer=setTimeout((()=>{this[t]=a,this.$emit(a?"open":"close")}),this.duration)}}},[["render",function(t,n,o,i,l,c){const s=a(e.resolveDynamicComponent("u-mask"),L),r=a(e.resolveDynamicComponent("u-icon"),F);return l.visibleSync?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle([o.customStyle,{zIndex:c.uZindex-1,"--bgcolor":o.backgroundColor}]),class:"u-drawer","hover-stop-propagation":""},[e.createVNode(s,{blur:o.blur,duration:o.duration,"custom-style":o.maskCustomStyle,maskClickAble:o.maskCloseAble,"z-index":c.uZindex-2,show:l.showDrawer&&o.mask,onClick:c.maskClick},null,8,["blur","duration","custom-style","maskClickAble","z-index","show","onClick"]),e.createElementVNode("view",{class:e.normalizeClass(["u-drawer-content",[o.safeAreaInsetBottom?"safe-area-inset-bottom":"","u-drawer-"+o.mode,l.showDrawer?"u-drawer-content-visible":"",o.zoom&&"center"==o.mode?"u-animation-zoom":""]]),onClick:n[3]||(n[3]=e=>c.modeCenterClose(o.mode)),onTouchmove:n[4]||(n[4]=e.withModifiers((()=>{}),["stop","prevent"])),style:e.normalizeStyle([c.style])},["center"==o.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"u-mode-center-box",onClick:n[0]||(n[0]=e.withModifiers((()=>{}),["stop","prevent"])),onTouchmove:n[1]||(n[1]=e.withModifiers((()=>{}),["stop","prevent"])),style:e.normalizeStyle([c.centerStyle])},[o.closeable?(e.openBlock(),e.createBlock(r,{key:0,onClick:c.close,class:e.normalizeClass(["u-close",["u-close--"+o.closeIconPos]]),name:o.closeIcon,color:o.closeIconColor,size:o.closeIconSize},null,8,["onClick","class","name","color","size"])):e.createCommentVNode("",!0),e.createElementVNode("scroll-view",{class:"u-drawer__scroll-view","scroll-y":"true"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])],36)):(e.openBlock(),e.createElementBlock("scroll-view",{key:1,class:"u-drawer__scroll-view","scroll-y":"true"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),e.createElementVNode("view",{onClick:n[2]||(n[2]=(...e)=>c.close&&c.close(...e)),class:e.normalizeClass(["u-close",["u-close--"+o.closeIconPos]])},["center"!=o.mode&&o.closeable?(e.openBlock(),e.createBlock(r,{key:0,name:o.closeIcon,color:o.closeIconColor,size:o.closeIconSize},null,8,["name","color","size"])):e.createCommentVNode("",!0)],2)],38)],4)):e.createCommentVNode("",!0)}],["__scopeId","data-v-7e3f5120"]]);function O(e){return r({url:"/api/employessapply/invitedConfirm",method:"post",data:e})}function U(e){return r({url:`/api/employessapply/getEmployeesOrgRela?openId=${e}&invited=1`,method:"get"})}function R(e){return r({url:`/api/wx/notice/unreadCount?openId=${uni.getStorageSync("openid")}&clientType=2`,method:"get"})}function M(e){return r({url:`/api/employessAdvisiory/queryApiEmployessInfo?openId=${uni.getStorageSync("openid")}&orgCode=${e}`,method:"get"})}const J=p(e.defineComponent({__name:"searchjigou",setup(n){o((()=>{h()}));const i=e.ref([]),l=e.ref(-1),c=e.ref(!1),s=e.ref("");let d=null;const u=()=>{d&&clearTimeout(d),d=setTimeout((()=>{d=null,h()}),600)};e.onUnmounted((()=>{d&&clearTimeout(d)}));const m=e.ref(!1),p=()=>{l.value=-1,s.value="",h()},g=()=>{uni.navigateBack()},h=()=>{var e;m.value=!1,l.value=-1,(e=s.value,r({url:`/api/employessapply/getOrgInfo?title=${e}&pageSize=-1&openId=${uni.getStorageSync("openid")}`,method:"get"})).then((e=>{e.success&&(i.value=e.result.records)}))},v=e.ref(!1),w=()=>{if(v.value)return;v.value=!0;let e=uni.getStorageSync("staff");e={...e,dateOfBirth:e.birthDate,marriedOrNot:e.maritalStatus,address:e.address,emergencyContact:e.contactName,emergencyTel:e.contactTel,emergencyRelationship:e.contactRelationship,hukouNature:e.hukouType,idCardPositive:e.cardZmPath,idCardNegative:e.cardFmPath,healthCertificatePositive:e.healthZmPath,healthCertificateNegative:e.healthFmPath,bankPositive:e.bankZmPath,bankNegative:e.bankFmPath,qualification:e.qualificationPath,noCrimeCertificate:e.noCrimeCertificate,houseAddress:e.idCardAddress,employeeId:e.id,id:null,createTime:null,updateBy:null,updateTime:null,orgCode:i.value[l.value].orgCode},M().then((a=>{Array.isArray(a.result)&&0===a.result.length?(uni.setStorageSync("nostaffmessage",i.value[l.value].orgCode),uni.setStorageSync("specicalid",""),uni.setStorageSync("baddata",""),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addstaff/information"})):function(e){return r({url:"/api/employessapply/apply",method:"post",data:e})}(e).then((e=>{e.success&&uni.requestSubscribeMessage({tmplIds:["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],success:e=>{c.value=!0,setTimeout((()=>h()),1e3)},fail:e=>{t("error","at pages/yuangongindex/searchjigou.vue:256","订阅接口调用失败:",e),uni.showToast({title:"订阅失败",icon:"none"})}}),setTimeout((()=>v.value=!1),1e3)}))}))};return(t,n)=>{const o=a(e.resolveDynamicComponent("u-popup"),j);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:g},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入驻机构")])]),e.createElementVNode("view",{class:"zhiling-box",style:{"margin-top":"30rpx",height:"120rpx","justify-content":"flex-start"}},[e.createElementVNode("view",{class:"input-all"},[e.createElementVNode("image",{style:{position:"absolute",left:"20rpx",top:"50%",transform:"translateY(-50%)",width:"40rpx",height:"40rpx"},src:"https://www.focusnu.com/media/directive/index/search.png"}),e.withDirectives(e.createElementVNode("input",{style:{"font-size":"31rpx"},type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>s.value=e),placeholder:"请输入入驻护理机构名称",onConfirm:h,onInput:u},null,544),[[e.vModelText,s.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:p,style:{position:"absolute",right:"20rpx",top:"50%",transform:"translateY(-50%)",width:"40rpx",height:"40rpx",display:"flex","justify-content":"center","align-items":"center","border-radius":"50%","background-color":"#EBEBEB"}},[e.createElementVNode("image",{style:{width:"20rpx",height:"20rpx"},src:"https://www.focusnu.com/media/directive/index/cha.png"})])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"tianjia",onClick:h}," 检索 ")]),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>{var n,o,c;return e.openBlock(),e.createElementBlock("view",{key:a,class:"zhiling-box-card",style:e.normalizeStyle([l.value===a?{border:"4rpx solid #0093FF"}:{},{"margin-top":"30rpx",height:"300rpx",position:"relative",width:"92%","flex-direction":"column"}]),onClick:e=>(e=>{var t,a;l.value===e?(l.value=-1,m.value=!1):(l.value=e,1==(null==(t=i.value[e].employeesApiEntity)?void 0:t.status)||2==(null==(a=i.value[e].employeesApiEntity)?void 0:a.status)?m.value=!1:m.value=!0)})(a)},[e.createElementVNode("view",{class:"card-font"},e.toDisplayString(t.departName),1),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/man.png"}),e.createTextVNode(" "+e.toDisplayString(t.comLegalPerson)+" | ",1),e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/phone.png"}),e.createTextVNode(" "+e.toDisplayString(t.tel),1)]),"1"===(null==(n=t.employeesApiEntity)?void 0:n.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"applying"},e.toDisplayString("1"==t.employeesApiEntity.applyType?"申请中":"待确认"),1)):e.createCommentVNode("",!0),"2"===(null==(o=t.employeesApiEntity)?void 0:o.status)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"applysuccess"},e.toDisplayString("1"==t.employeesApiEntity.applyType?"申请通过":"已接受"),1)):e.createCommentVNode("",!0),"3"===(null==(c=t.employeesApiEntity)?void 0:c.status)?(e.openBlock(),e.createElementBlock("view",{key:2,class:"applyfail"},e.toDisplayString("1"==t.employeesApiEntity.applyType?"申请驳回":"已拒绝"),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("image",{class:"gray-img",src:"https://www.focusnu.com/media/directive/index/ditu/bgc.png"}),e.createElementVNode("view",{style:{color:"#999999","z-index":"1","font-size":"27rpx",width:"100%",display:"flex"}},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"30rpx",width:"25rpx","margin-right":"10rpx","z-index":"1","margin-top":"8rpx"},src:"https://www.focusnu.com/media/directive/index/ditu/mark.png"}),e.createElementVNode("view",{style:{width:"630rpx"}},e.toDisplayString(t.comRegisterAddress),1)])])],12,["onClick"])})),128))]),e.createElementVNode("view",{style:{height:"200rpx"}}),e.createElementVNode("view",{class:"button-father"},[m.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"blue-button",onClick:w}," 申请 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"}," 申请 "))]),e.createVNode(o,{modelValue:c.value,"onUpdate:modelValue":n[2]||(n[2]=e=>c.value=e),mode:"bottom","border-radius":"40"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popop-father"},[e.createElementVNode("image",{style:{width:"100rpx",height:"100rpx"},src:"https://www.focusnu.com/media/directive/index/tishi.png"}),e.createElementVNode("view",{class:"popop-font"},[e.createTextVNode(" 入驻申请已提交,请到 "),e.createElementVNode("text",{style:{color:"#01A9FF"}},' "我的-入驻审核" '),e.createTextVNode(" 查看审核进度 ")]),e.createElementVNode("view",{class:"popop-blue",onClick:n[1]||(n[1]=e=>(c.value=!1,void uni.navigateTo({url:"/pages/yuangongindex/workjoin"})))}," 查看 ")])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-e37ed267"]]),q=p({__name:"workjoin",setup(t){e.ref(0);const a=e.ref([]);e.ref(!1),i((e=>{uni.getStorage({key:"openid",success:function(e){U(e.data).then((e=>{a.value=e.result}))}})})),c((()=>{uni.getStorage({key:"openid",success:function(e){U(e.data).then((e=>{a.value=e.result}))}}),uni.stopPullDownRefresh()}));const n=e.ref(""),o=e.ref(!1),l=()=>{uni.navigateBack()};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container",style:e.normalizeStyle(a.value.length?{}:{backgroundColor:"#F7F7F7"})},[e.createVNode(z,{show:o.value,onClose:i[0]||(i[0]=e=>o.value=!1),content:n.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:l},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"审核记录")])]),a.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})])):e.createCommentVNode("",!0),a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,style:{position:"absolute",left:"0",top:"400rpx",width:"100%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center","z-index":"999"}},[e.createElementVNode("image",{style:{height:"220rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/jigouyaoqing.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"20rpx"}}," 暂无申请信息 ")])),e.createElementVNode("view",{class:"bgc-card"},[e.createElementVNode("view",{class:"under-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"white-small",style:e.normalizeStyle(1!=t.applyStatus&&2!=t.applyStatus?{height:"340rpx"}:{height:"280rpx"})},[e.createElementVNode("view",{class:"card-font"},e.toDisplayString(t.departName),1),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/man.png"}),e.createTextVNode(" "+e.toDisplayString(t.comLegalPerson)+" | ",1),e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/phone.png"}),e.createTextVNode(" "+e.toDisplayString(t.tel),1)]),"1"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"applying"}," 申请中 ")):e.createCommentVNode("",!0),"2"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"applysuccess"}," 申请通过 ")):e.createCommentVNode("",!0),"3"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"applyfail"}," 申请驳回 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("image",{class:"gray-img",src:"https://www.focusnu.com/media/directive/index/ditu/bgc.png"}),e.createElementVNode("view",{style:{color:"#999999","z-index":"1","font-size":"27rpx",width:"100%"}},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"30rpx",width:"25rpx","margin-right":"10rpx","z-index":"1"},src:"https://www.focusnu.com/media/directive/index/ditu/mark.png"}),e.createTextVNode(" "+e.toDisplayString(t.comRegisterAddress),1)])]),e.createElementVNode("view",{style:{width:"100%",display:"flex","justify-content":"center"}},[1!=t.applyStatus&&2!=t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"blue-button",onClick:e.withModifiers((e=>{uni.navigateTo({url:"/pages/yuangongindex/searchjigou"})}),["stop"])}," 重新申请 ",8,["onClick"])):e.createCommentVNode("",!0),1!=t.applyStatus&&2!=t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button",onClick:e.withModifiers((e=>{var a;(a=t.auditContent)&&(n.value=a,o.value=!0)}),["stop"])}," 驳回原因 ",8,["onClick"])):e.createCommentVNode("",!0)])],4)])))),128))])])],4))}},[["__scopeId","data-v-77c4208e"]]),W=p(e.defineComponent({__name:"message",setup(t){const a=e.ref([]);e.ref(!1),e.ref("");const n=e=>{if("1"==e.izRead)(t={id:e.id},r({url:"/api/wx/notice/upRead",method:"post",data:t})).then((t=>{if(t.success&&(l(),"emp_org_invited_emp_list"===e.type))uni.navigateTo({url:`/pages/yuangongindex/simpleyaoqing?extend=${e.extend}`})}));else if("emp_org_invited_emp_list"===e.type)uni.navigateTo({url:`/pages/yuangongindex/simpleyaoqing?extend=${e.extend}`});var t},i=()=>{uni.getStorageSync("jumpIndex")?uni.reLaunch({url:"/pages/yuangongindex/index"}):uni.reLaunch({url:"/pages/oldmanindex/index"})},l=()=>{r({url:`/api/wx/notice/query?openId=${uni.getStorageSync("openid")}&clientType=2`,method:"get"}).then((e=>{e.success&&(a.value=e.result,a.value.every((e=>"0"==e.izRead))?c.value=!1:c.value=!0)}))};e.ref(!1);const c=e.ref(!1);return o((()=>{l()})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:i},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),a.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-father"},[e.createElementVNode("view",{class:"title-shu"}),e.createElementVNode("view",{class:"title-font"},[c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-dian"})):e.createCommentVNode("",!0),e.createTextVNode(" 消息 ")])])):e.createCommentVNode("",!0),a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"100%","margin-top":"170rpx",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"}},[e.createElementVNode("image",{style:{height:"350rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/nomessage.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"-40rpx"}}," 暂无消息 ")])),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"zhiling-box-card",style:{"margin-top":"30rpx",position:"relative",width:"92%","flex-direction":"column"},onClick:e=>n(t)},[e.createElementVNode("view",{style:{height:"10rpx"}}),e.createElementVNode("view",{class:"card-title"},[e.createElementVNode("image",{style:{height:"70rpx",width:"70rpx","margin-left":"30rpx"},src:"https://www.focusnu.com/media/directive/index/messagetype/0.png"}),e.createElementVNode("view",{class:"card-title-font"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"card-right"},[e.createTextVNode(e.toDisplayString(t.createTime.substring(t.createTime.indexOf("-")+1,t.createTime.indexOf("-")+6))+" ",1),"1"==t.izRead?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-dian"})):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"gray-heng"}),e.createElementVNode("view",{class:"card-bottom"},e.toDisplayString(t.content),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{style:{height:"200rpx"}})]))}}),[["__scopeId","data-v-ae079e6c"]]),H=p({__name:"queren",props:{show:{type:Boolean,default:!0}},emits:["close","ok"],setup(t,{emit:a}){const n=a;function o(){n("close")}const i=()=>{n("ok")};return(a,n)=>e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["neuro-wrapper",t.show?"is-active":""])},[e.createElementVNode("view",{class:"neuro-mask",onClick:o}),e.createElementVNode("view",{class:"neuro-box",onClick:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"button-father"},[e.createElementVNode("view",{class:"button-white",onClick:o},"取消"),e.createElementVNode("view",{class:"button",onClick:i},"确定")]),e.createElementVNode("view",{style:{"font-size":"25rpx","line-height":"45rpx","margin-top":"-50rpx"}},"确定要拒绝吗")])],2)),[[e.vShow,t.show]])}},[["__scopeId","data-v-01e22a45"]]),Z=p(e.defineComponent({__name:"companyyaoqing",setup(t){const a=e.ref([]),n=e.ref(-1);e.ref(!1),e.ref("");const o=e.ref(!1),i=e.ref(!1),l=()=>{uni.navigateBack()},c=()=>{var e;i.value=!1,n.value=-1,(e=uni.getStorageSync("openid"),r({url:`/api/employessapply/getEmployeesOrgRela?openId=${e}&invited=0`,method:"get"})).then((e=>{e.success&&(a.value=e.result)}))};e.ref(!1);const s=e.ref({employeesId:"",orgCode:""}),d=(e,t)=>{if(!t)return o.value=!0,void(s.value={employeesId:e.employeesId,orgCode:e.orgCode});O({employeeId:e.employeesId,status:t?2:3,orgCode:e.orgCode}).then((e=>{e.success&&c()}))},u=()=>{o.value=!1,O({employeeId:s.value.employeesId,status:3,orgCode:s.value.orgCode}).then((e=>{e.success&&c()}))};return c(),(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:l},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"机构邀请")])]),a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%","margin-top":"190rpx",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"}},[e.createElementVNode("image",{style:{height:"250rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/yuangongyaoqing.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"20rpx"}}," 暂无邀请信息 ")])),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"zhiling-box-card",style:e.normalizeStyle([{border:n.value===a?"4rpx solid #0093FF":"none",height:1==t.applyStatus?"370rpx":"330rpx"},{"margin-top":"30rpx",position:"relative",width:"92%","flex-direction":"column"}])},[e.createElementVNode("view",{class:"card-font"},e.toDisplayString(t.departName),1),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/man.png"}),e.createTextVNode(" "+e.toDisplayString(t.comLegalPerson)+" | ",1),e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/phone.png"}),e.createTextVNode(" "+e.toDisplayString(t.tel),1)]),"1"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"applying"}," 待确认 ")):e.createCommentVNode("",!0),"2"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"applysuccess"}," 已接受 ")):e.createCommentVNode("",!0),"3"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"applyfail"}," 已拒接 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("image",{class:"gray-img",src:"https://www.focusnu.com/media/directive/index/ditu/bgc.png"}),e.createElementVNode("view",{style:{color:"#999999","z-index":"1","font-size":"27rpx",width:"100%"}},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"30rpx",width:"25rpx","margin-right":"10rpx","z-index":"1"},src:"https://www.focusnu.com/media/directive/index/ditu/mark.png"}),e.createTextVNode(" "+e.toDisplayString(t.comRegisterAddress),1)])]),"1"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:3,style:{display:"flex","justify-content":"center",width:"100%"}},[e.createElementVNode("view",{class:"blue-button",onClick:e=>d(t,!0)}," 接受 ",8,["onClick"]),e.createElementVNode("view",{class:"white-button",onClick:e=>d(t,!1)}," 拒绝 ",8,["onClick"])])):e.createCommentVNode("",!0)],4)))),128))]),e.createElementVNode("view",{style:{height:"200rpx"}}),e.createVNode(H,{show:o.value,onClose:i[0]||(i[0]=e=>o.value=!1),onOk:u},null,8,["show"])]))}}),[["__scopeId","data-v-017c3898"]]),X=p(e.defineComponent({__name:"simpleyaoqing",setup(t){const a=e.ref([]);e.ref(""),e.ref(!1);const n=e.ref("");i((e=>{n.value=JSON.parse(e.extend).dataId,l()}));const o=()=>{uni.navigateBack()},l=()=>{var e;(e=n.value,r({url:`/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync("openid")}&invited=0&id=${e}`,method:"get"})).then((e=>{e.success&&(a.value=e.result)}))};e.ref(!1);const c=(e,t)=>{O({employeeId:e.employeesId,status:t?2:3,orgCode:e.orgCode}).then((e=>{e.success&&l()}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:o},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"机构邀请")])]),a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,style:{width:"100%","margin-top":"190rpx",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"}},[e.createElementVNode("image",{style:{height:"250rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/yuangongyaoqing.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"20rpx"}}," 暂无邀请信息 ")])),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"zhiling-box-card",style:{"margin-top":"30rpx",position:"relative",width:"92%","flex-direction":"column"}},[e.createElementVNode("view",{class:"card-font"},e.toDisplayString(t.departName),1),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/man.png"}),e.createTextVNode(" "+e.toDisplayString(t.comLegalPerson)+" | ",1),e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"25rpx",width:"25rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/ruzhu/phone.png"}),e.createTextVNode(" "+e.toDisplayString(t.tel),1)]),"1"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"applying"}," 待确认 ")):e.createCommentVNode("",!0),"2"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"applysuccess"}," 已接受 ")):e.createCommentVNode("",!0),"3"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"applyfail"}," 已拒接 ")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("image",{class:"gray-img",src:"https://www.focusnu.com/media/directive/index/ditu/bgc.png"}),e.createElementVNode("view",{style:{color:"#999999","z-index":"1","font-size":"27rpx",width:"100%"}},[e.createElementVNode("image",{style:{"margin-left":"10rpx",height:"30rpx",width:"25rpx","margin-right":"10rpx","z-index":"1"},src:"https://www.focusnu.com/media/directive/index/ditu/mark.png"}),e.createTextVNode(" "+e.toDisplayString(t.comRegisterAddress),1)])]),"1"===t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:3,style:{display:"flex","justify-content":"center",width:"100%"}},[e.createElementVNode("view",{class:"blue-button",onClick:e=>c(t,!0)}," 接受 ",8,["onClick"]),e.createElementVNode("view",{class:"white-button",onClick:e=>c(t,!1)}," 拒绝 ",8,["onClick"])])):e.createCommentVNode("",!0)])))),128))]),e.createElementVNode("view",{style:{height:"200rpx"}})]))}}),[["__scopeId","data-v-d9fc555f"]]),G=p({__name:"company",setup(a){const n=()=>{uni.navigateBack()},o=e.ref("");return i((e=>{o.value=JSON.parse(e.element),t("log","at pages/yuangongindex/company.vue:46","???",o.value)})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:n},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"公司详情")])]),e.createElementVNode("view",{class:"card-font"},e.toDisplayString(o.value.departName),1),e.createElementVNode("view",{class:"gray-font"},e.toDisplayString(o.value.comLegalPerson)+" | "+e.toDisplayString(o.value.tel)+" | "+e.toDisplayString(o.value.orgPropertyType)+" | "+e.toDisplayString(o.value.orgBuildingArea+"m²"),1),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("view",{style:{color:"#999999","z-index":"1","font-size":"30rpx",width:"100%"}},e.toDisplayString(o.value.comRegisterAddress),1)])]))}},[["__scopeId","data-v-e3199964"]]),Y=p({__name:"yuangongdownmenu",props:{itemTarget:{type:Number,required:!0}},setup(t){const a=t,n=["NU","动态","我的"];return(o,i)=>(e.openBlock(),e.createElementBlock("view",{class:"botton-view"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((n,o)=>e.createElementVNode("view",{key:o,class:"array-father"},[e.createElementVNode("view",{class:e.normalizeClass(t.itemTarget===o?"bottom-button-target":"bottom-button"),onClick:e=>(e=>{if(e!=a.itemTarget)switch(e){case 0:uni.reLaunch({url:"/pages/yuangongindex/index"});break;case 1:break;case 2:uni.reLaunch({url:"/pages/yuangongindex/mine"})}})(o)},[e.createElementVNode("image",{class:"botton-img",src:`https://www.focusnu.com/media/directive/index/itemsbutton/${o}${t.itemTarget===o?1:0}.png`},null,8,["src"]),e.createElementVNode("view",{class:"bottom-text"},e.toDisplayString(n),1)],10,["onClick"])]))),64))]))}},[["__scopeId","data-v-a33f7069"]]),K=p({__name:"index",setup(t){const a=e.ref(!1),n=e.ref(""),i=e.ref(["技能培训","考勤排班","每日工作","信息变更","员工功能","员工功能","员工功能"]),l=["loading","success","fail"],s=e.ref(0),d=()=>{uni.setStorageSync("jumpIndex",1),uni.navigateTo({url:"/pages/yuangongindex/message"})},u=()=>{s.value=h.value.length,m.value=s.value},m=e.ref(0),p=e=>{m.value=e.detail.current,s.value=e.detail.current},g=e.ref(0);e.onMounted((()=>{let e=null;if("function"==typeof uni.getMenuButtonBoundingClientRect){try{e=uni.getMenuButtonBoundingClientRect()}catch(t){e=null}g.value=e.top}})),e.onUnmounted((()=>{}));const h=e.ref([]),v=()=>{uni.getStorage({key:"openid",success:function(e){var t;(t=e.data,r({url:`/api/employessapply/getEmployeesOrgRela?openId=${t}`,method:"get"})).then((e=>{h.value=[],e.result.forEach((e=>{h.value.push(e)})),h.value.push({applyStatus:"-1"})})),M().then((e=>{uni.setStorageSync("staff",e.result[0])}))}})},w=e.ref(0),f=(e,t)=>{O({employeeId:e.employeesId,status:t?2:3,orgCode:e.orgCode}).then((e=>{e.success&&v()}))};return o((()=>{v(),R().then((e=>{e.result&&(w.value=e.result)}))})),c((()=>{v(),R().then((e=>{e.result&&(w.value=e.result)})),uni.stopPullDownRefresh()})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("view",{class:"small-ball",style:e.normalizeStyle({top:`${g.value}px`}),onClick:d},[w.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"small-dian"},e.toDisplayString(w.value),1)):e.createCommentVNode("",!0),e.createElementVNode("image",{class:"small-ball-img",src:"https://www.focusnu.com/media/directive/index/ling.png"})],4),e.createElementVNode("view",{class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})]),e.createVNode(z,{show:a.value,onClose:o[0]||(o[0]=e=>a.value=!1),content:n.value},null,8,["show","content"]),e.createElementVNode("swiper",{style:e.normalizeStyle([{width:"100%",position:"fixed",bottom:"0",left:"0"},{minHeight:"100vh"}]),duration:150,current:s.value,onChange:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,((t,c)=>(e.openBlock(),e.createElementBlock("view",{key:c},[e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"white-content-father"},["1"==t.applyType&&"1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"chuo-ball",onClick:v},[e.createElementVNode("image",{class:"ball-img",src:"https://www.focusnu.com/media/directive/index/refresh.png"},null,8,["src"])])):e.createCommentVNode("",!0),"0"==t.applyType&&"1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-content"},[e.createElementVNode("image",{class:"white-content-img",style:{height:"200rpx"},src:"https://www.focusnu.com/media/directive/index/yuangonginvited.png","lazy-load":"false"},null,8,["src"]),e.createElementVNode("view",{class:"second-font",style:{"margin-top":"350rpx"}},[e.createElementVNode("text",null,e.toDisplayString(t.comName),1)]),e.createElementVNode("view",{class:"second-font"}," 邀请您加入 "),e.createElementVNode("view",{style:{"margin-top":"60rpx",color:"#999999"}},e.toDisplayString(t.orgLeader)+" | "+e.toDisplayString(t.orgLeaderPhone),1),e.createElementVNode("view",{class:"button-double"},[e.createElementVNode("view",{class:"double-left",onClick:e=>f(t,!1)}," 拒绝 ",8,["onClick"]),e.createElementVNode("view",{class:"double-right",onClick:e=>f(t,!0)}," 接受 ",8,["onClick"])])])):e.createCommentVNode("",!0),"1"==t.applyType&&"1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"white-content"},[e.createElementVNode("image",{class:"white-content-img",src:`https://www.focusnu.com/media/directive/index/${l[Number(t.applyStatus)-1]}.png`,"lazy-load":"false"},null,8,["src"]),e.createElementVNode("view",{class:"white-font"}," 您提交的 "),e.createElementVNode("view",{class:"second-font"},[e.createElementVNode("text",null,' "'+e.toDisplayString(t.comName)+'" ',1)]),e.createElementVNode("view",{class:"second-font"},[e.createTextVNode(" 入驻申请 "),e.createElementVNode("text",{style:{color:"#fa8622"}}," 正在审核中 ")]),e.createElementVNode("view",{class:"button-blue",onClick:e=>{uni.navigateTo({url:"/pages/yuangongindex/workjoin"})}}," 查看 ",8,["onClick"])])):e.createCommentVNode("",!0),"1"==t.applyType&&"3"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:3,class:"white-content"},[e.createElementVNode("image",{class:"white-content-img",src:`https://www.focusnu.com/media/directive/index/${l[Number(t.applyStatus)-1]}.png`,"lazy-load":"false"},null,8,["src"]),e.createElementVNode("view",{class:"white-font"}," 您提交的 "),e.createElementVNode("view",{class:"second-font"},[e.createElementVNode("text",null,' "'+e.toDisplayString(t.comName)+'" ',1)]),e.createElementVNode("view",{class:"second-font"},[e.createTextVNode(" 入驻申请 "),e.createElementVNode("text",{style:{color:"#eb2b59"}}," 审核不通过 ")]),e.createElementVNode("view",{class:"button-white-spec",onClick:e=>{var o;(o=t.auditContent)&&(n.value=o,a.value=!0)}}," 驳回原因 ",8,["onClick"]),e.createElementVNode("view",{class:"button-blue-spec",onClick:e=>{uni.navigateTo({url:"/pages/yuangongindex/searchjigou"})}}," 重新申请 ",8,["onClick"])])):e.createCommentVNode("",!0),"2"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:4,style:{"z-index":"1",width:"100%"}},[e.createElementVNode("view",{class:"zhiling-box"},[e.createElementVNode("view",{class:""}," 暂无指令 "),e.withDirectives(e.createElementVNode("image",{class:"zhiling-img",src:"https://www.focusnu.com/media/directive/index/mine/more.png"},null,512),[[e.vShow,!1]])]),e.createElementVNode("view",{class:"white-box-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((a,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"white-box",onClick:e=>((e,t)=>{3===t&&M(e.orgCode).then((t=>{uni.setStorageSync("changeyuangongorgCode",e.orgCode),t.success&&uni.navigateTo({url:`/pages/addstaff/all?element=${JSON.stringify(t.result[0])}`})}))})(t,n)},[e.createElementVNode("image",{class:"box-img",src:`https://www.focusnu.com/media/directive/index/addstaff/${n}.png`},null,8,["src"]),e.createElementVNode("view",{class:"box-font"},e.toDisplayString(a),1)],8,["onClick"])))),128)),e.createElementVNode("view",{class:"white-box"},[e.createElementVNode("view",{style:{"font-weight":"600","font-size":"80rpx"}},"+")])])])):e.createCommentVNode("",!0)]),"1"==t.applyType&&"-1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:0,class:"zhiling-box"},[e.createElementVNode("view",{class:"zhiling-box"},[e.createElementVNode("view",{class:""}," 暂无信息 "),e.withDirectives(e.createElementVNode("image",{class:"zhiling-img",src:"https://www.focusnu.com/media/directive/index/mine/more.png"},null,512),[[e.vShow,!1]])])])):e.createCommentVNode("",!0),"-1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-content",style:{margin:"0 auto","margin-top":"0rpx",height:"740rpx"}},[e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"30rpx","align-items":"center"}},[e.createElementVNode("view",{class:"blue-shu"}),e.createElementVNode("view",{class:"blue-font"}," 入驻护理机构 ")]),e.createElementVNode("image",{class:"white-content-secondimg",src:"https://www.focusnu.com/media/directive/index/addstaff/staff.png","lazy-load":"false"}),e.createElementVNode("view",{class:"button-blue",onClick:o[1]||(o[1]=e=>{uni.requestSubscribeMessage({tmplIds:["yvvhlRft1CAdtU-dWlCW8U63VnTwRU8w3gR0BUdqcWw"],success:e=>{uni.navigateTo({url:"/pages/yuangongindex/searchjigou"})},fail:e=>{uni.navigateTo({url:"/pages/yuangongindex/searchjigou"})}})})}," 入驻机构 ")])):e.createCommentVNode("",!0),"2"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"white-content-father-time"},[e.createElementVNode("view",{class:"white-content",style:{"background-color":"transparent"}},[e.createElementVNode("view",{class:"white-bgc"},e.toDisplayString(t.comName),1)])])):e.createCommentVNode("",!0)])])))),128))],40,["current"]),e.createElementVNode("view",{style:{"z-index":"999",position:"fixed",bottom:"70rpx",width:"100%",display:"flex","justify-content":"center","margin-top":"-25rpx",height:"100rpx"}},[e.createElementVNode("view",{class:"jia-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,onClick:e=>{return t=a,s.value=t,void(m.value=s.value);var t}},[a!=h.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(m.value==a?"black-box":"gray-box")},null,2)):e.createCommentVNode("",!0),a==h.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:1,class:"jia",onClick:u},[e.createElementVNode("image",{class:"jia-img",src:"https://www.focusnu.com/media/directive/index/bluejia.png"},null,8,["src"])])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])]),e.createVNode(Y,{itemTarget:0})]))}},[["__scopeId","data-v-0bbf4a59"]]),Q=p({__name:"mine",setup(t){const a=e.ref("");e.ref("");const n=e.ref(""),o=e.ref(!1);e.onMounted((()=>{a.value=uni.getStorageSync("tel"),n.value=uni.getStorageSync("platId")}));const i=["审核记录","员工功能"],l=()=>{uni.navigateTo({url:"/pages/login/threeselectonespec"})},c=()=>{o.value=!0},s=()=>{uni.navigateTo({url:"/pages/yuangongindex/workjoin"})};return(t,r)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createVNode(P,{show:o.value,onClose:r[0]||(r[0]=e=>o.value=!1)},null,8,["show"]),e.createElementVNode("image",{class:"bgc-imge",src:"https://www.focusnu.com/media/directive/index/mine/bgc.png"}),e.createElementVNode("view",{class:"ball"},[e.createElementVNode("image",{class:"ball-imge",src:"https://www.focusnu.com/media/directive/index/mine/head.png"})]),e.createElementVNode("view",{style:{display:"flex","margin-top":"30rpx"}},[e.createElementVNode("view",{class:"badid"}," ID "),e.createElementVNode("view",{style:{"z-index":"1","margin-top":"-3rpx"}},e.toDisplayString(n.value),1)]),e.createElementVNode("view",{class:"phone"},e.toDisplayString(a.value),1),e.createElementVNode("view",{class:"white-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>e.createElementVNode("view",{class:"white-card",key:a,onClick:e=>(e=>{0===e&&s()})(a)},[e.createElementVNode("view",{class:"white-left"},[e.createElementVNode("image",{class:"white-left-imge",src:`https://www.focusnu.com/media/directive/index/staffmine/${a}.png`},null,8,["src"]),e.createElementVNode("view",{style:{"font-size":"32rpx"}},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"white-right"},[e.createElementVNode("image",{class:"white-right-imge",src:"https://www.focusnu.com/media/directive/index/mine/more.png"})])],8,["onClick"]))),64))]),e.createElementVNode("view",{class:"blue-button",onClick:l},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/change.png"}),e.createTextVNode(" 切换账号 ")]),e.createElementVNode("view",{class:"white-button",onClick:c},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/exit.png"}),e.createTextVNode(" 退出登录 ")]),e.createVNode(Y,{itemTarget:2})]))}},[["__scopeId","data-v-d7b8a034"]]);function ee(e){return r({url:`/api/wx/notice/unreadCount?openId=${uni.getStorageSync("openid")}&clientType=3`,method:"get"})}function te(e){return r({url:`/api/elderInfo/getOrgInfo?nuId=${e}`,method:"get"})}function ae(e,t){return r({url:`/api/elderInfo/queryElders?openId=${uni.getStorageSync("openid")}&elderId=${e}&orgCode=${t}`,method:"get"})}function ne(e){return r({url:`/api/nuBaseInfo/queryBillList?openId=${uni.getStorageSync("openid")}`,method:"get"})}const oe=p({__name:"account",setup(a){const n=()=>{uni.navigateBack()},o=e.ref({}),l=e.ref("");i((()=>{var e;o.value=uni.getStorageSync("payaccount"),(e=o.value.orgCode,r({url:`/api/baseInfo/getOrgApiAddress?orgCode=${e}`,method:"get"})).then((e=>{l.value=e.result.url}))}));const c=async()=>{var e,a;try{const n=`${l.value}/weiXinPay/nuBindPay`,i={title:"护理单元绑定",openId:uni.getStorageSync("openid")||"",amountPrice:o.value.payableAmount,orgCode:o.value.nuId.substring(4,7),nursingUnit:o.value.nuId,orderDesc:`用户绑定护理单元${null==(e=o.value)?void 0:e.nuId},充值${null==(a=o.value)?void 0:a.payableAmount}元`,orderType:"binding_nu",price:o.value.payableAmount,count:1,unit:"间",customerId:uni.getStorageSync("allinfo").id};t("log","at pages/oldmanindex/account.vue:131","AAAAAAA",i),uni.showLoading({title:"正在请求支付..."});const c=await new Promise(((e,t)=>{uni.request({url:n,method:"POST",header:{"Content-Type":"application/json"},data:i,success:t=>e(t),fail:e=>t(e)})}));uni.hideLoading();const s=c&&c.data?c.data:c;if(t("log","at pages/oldmanindex/account.vue:157","data",s),"ORG_PAYMENT_DISABLED"==s.nuFailType?(uni.showToast({title:"机构已经关闭微信支付功能",icon:"none"}),setTimeout((()=>{uni.reLaunch({url:"/pages/oldmanindex/index"})}),1e3)):"NU_HAS_BEEN_BOUND"==s.nuFailType&&(uni.showToast({title:"护理单元已被其他用户绑定",icon:"none"}),setTimeout((()=>{uni.reLaunch({url:"/pages/oldmanindex/index"})}),1e3)),!s)return void uni.showToast({title:"服务器无响应",icon:"error"});s.appId||s.timeStamp||s.package||s.paySign?await function(e){return t("log","at pages/oldmanindex/account.vue:214","????",e),new Promise(((a,n)=>{const o="undefined"!=typeof window&&"undefined"!=typeof navigator,i=o&&navigator.userAgent||"",l=/MicroMessenger/i.test(i);if(o&&l){const a=()=>{try{window.WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:String(e.timeStamp),nonceStr:e.nonceStr,package:e.package,signType:e.signType||"MD5",paySign:e.paySign},(function(e){!e||"get_brand_wcpay_request:ok"!==e.err_msg&&"get_brand_wcpay_request:ok"!==e.err_msg?uni.showToast({title:"支付失败或取消",icon:"none"}):(uni.showToast({title:"支付成功"}),uni.reLaunch({url:"/pages/oldmanindex/paysuccess"}))}))}catch(a){t("error","at pages/oldmanindex/account.vue:259","WeixinJSBridge 调用异常",a),uni.showToast({title:"支付调用失败",icon:"error"}),n(a)}};void 0===window.WeixinJSBridge?document.addEventListener("WeixinJSBridgeReady",a,!1):a()}else try{uni.requestPayment({provider:"wxpay",timeStamp:String(e.timeStamp||e.timeStampStr||""),nonceStr:e.nonceStr||"",package:e.package||e.packageStr||"",signType:e.signType||"MD5",paySign:e.paySign||"",success:e=>{uni.showToast({title:"支付成功"}),uni.reLaunch({url:"/pages/oldmanindex/paysuccess"}),a(e)},fail:e=>{t("error","at pages/oldmanindex/account.vue:298","小程序支付失败或取消",e),uni.showToast({title:"支付失败或取消",icon:"none"}),n(e)}})}catch(c){t("error","at pages/oldmanindex/account.vue:307","uni.requestPayment 调用异常",c),uni.showToast({title:"支付调用失败",icon:"error"}),n(c)}}))}(s):(uni.showToast({title:"支付信息获取失败",icon:"error"}),t("error","at pages/oldmanindex/account.vue:200","支付返回:",s))}catch(n){uni.hideLoading(),t("error","at pages/oldmanindex/account.vue:204","请求失败:",n),uni.showToast({title:"请求失败",icon:"error"})}};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:n},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"缴费账单")])]),e.createElementVNode("view",{class:"bgc"},[e.createElementVNode("image",{class:"bgc-img",src:"https://www.focusnu.com/media/directive/index/account.png"})]),e.createElementVNode("view",{class:"white-container",style:{"margin-top":"550rpx"}},[e.createElementVNode("view",{class:"white-container-top"},[e.createElementVNode("image",{style:{width:"30rpx",height:"30rpx","margin-right":"20rpx"},src:"https://www.focusnu.com/media/directive/index/account/0.png"}),e.createElementVNode("view",{style:{color:"#999999"}}," 机构名称 ")]),e.createElementVNode("view",{class:"white-container-bottom"},e.toDisplayString(o.value.departName),1)]),e.createElementVNode("view",{class:"white-container"},[e.createElementVNode("view",{class:"white-container-top"},[e.createElementVNode("image",{style:{width:"30rpx",height:"30rpx","margin-right":"20rpx"},src:"https://www.focusnu.com/media/directive/index/account/1.png"}),e.createElementVNode("view",{style:{color:"#999999"}}," 护理单元 ")]),e.createElementVNode("view",{class:"white-container-bottom"},e.toDisplayString(o.value.nuName),1)]),e.createElementVNode("view",{class:"white-container"},[e.createElementVNode("view",{class:"white-container-top"},[e.createElementVNode("image",{style:{width:"30rpx",height:"30rpx","margin-right":"20rpx"},src:"https://www.focusnu.com/media/directive/index/account/2.png"}),e.createElementVNode("view",{style:{color:"#999999"}}," 账单金额 ")]),e.createElementVNode("view",{class:"white-container-bottom"}," ¥ "+e.toDisplayString(o.value.payableAmount),1)]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between","margin-top":"50rpx","z-index":"1"}},[e.createElementVNode("view",{class:"back-button",onClick:n}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:c}," 微信支付 ")])]))}},[["__scopeId","data-v-b81d6cb8"]]),ie=p({__name:"input",setup(t){const a=e.ref(""),n=()=>{uni.navigateBack()},o=e.ref({});const l=()=>{a.value.length>=10?te(a.value).then((e=>{e.result?o.value=e.result:uni.showToast({title:"该护理单元不存在",icon:"none",duration:2e3})})):uni.showToast({title:"该护理单元不存在",icon:"none",duration:2e3})};i((()=>{}));const c=()=>{uni.setStorageSync("payaccount",o.value),uni.navigateTo({url:"/pages/oldmanindex/protocol"})};return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:n},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),e.createElementVNode("view",{class:"input-content"},[e.createElementVNode("view",{style:{display:"flex",width:"100%"}},[e.createElementVNode("view",{class:"blue-shu"}),e.createElementVNode("view",{class:"blue-font"}," 绑定护理单元 ")]),e.createElementVNode("view",{class:"saomiao"},[e.createElementVNode("image",{class:"left-img",src:"https://www.focusnu.com/media/directive/index/click.png"}),e.withDirectives(e.createElementVNode("input",{class:"saoma-input",type:"number",password:!1,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),placeholder:"请手动录入NUID"},null,512),[[e.vModelText,a.value]]),e.withDirectives(e.createElementVNode("image",{class:"right-img",src:"https://www.focusnu.com/media/directive/index/x.png",onClick:i[1]||(i[1]=e=>a.value="")},null,512),[[e.vShow,a.value]]),e.createElementVNode("view",{class:"blue-button",onClick:l}," 确定 ")])]),o.value.nuId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-content"},[e.createElementVNode("view",{class:"white-title"}," NUID:"+e.toDisplayString(o.value.nuId),1),e.createElementVNode("view",{class:"white-second"},e.toDisplayString(o.value.departName),1),e.createElementVNode("view",{class:"white-center"},e.toDisplayString(o.value.nuName),1),e.createElementVNode("view",{style:{display:"flex",width:"85%",position:"absolute",bottom:"0rpx"}},[0==o.value.nuCanUse?(e.openBlock(),e.createElementBlock("view",{key:0,class:"finish-button",onClick:c}," 绑定护理单元 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"},e.toDisplayString(o.value.msg),1))])])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-020a840b"]]),le=p({__name:"protocol",setup(t){const a=()=>{uni.navigateBack({})},n=()=>{uni.navigateTo({url:"/pages/oldmanindex/account"})};return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"font-father"},[e.createElementVNode("view",{class:"title-font"}," NU 护理单元使用条款 "),e.createElementVNode("view",{class:"font-qian"}," 一、总则 "),e.createElementVNode("view",{class:"font-normal"},[e.createElementVNode("p",null,"  为规范长者及家属在 NU 护理单元的行为,保障长者得到优质护理服务,维护护理单元正常秩序,鉴于每个护理单元均为独立空间,特制定本使用条款。本条款是所有进入NU 护理单元的长者、家属必须遵守的准则,违反者将根据情节承担相应责任。")]),e.createElementVNode("view",{class:"font-qian"}," 二、长者及家属使用条款 "),e.createElementVNode("view",{class:"font-ri"}," (一)日常行为规范 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.遵守作息时间:"),e.createTextVNode("严格遵守护理单元规定的作息时间,保持安静,不得大声喧哗、播放音乐或进行其他影响他人休息的活动。各独立护理单元之间应相互保持安静,避免噪音干扰其他单元长者。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"2.维护环境卫生:"),e.createTextVNode("保持所在护理单元病房及公共区域的整洁卫生,不随地吐痰、乱扔垃圾。生活垃圾应分类投放到指定垃圾桶内,医疗废物交由护理人员统一处理,不得随意丢弃。不得将垃圾放置在护理单元外公共通道,以免影响其他单元环境。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"3.爱护公共设施:"),e.createTextVNode("妥善使用本护理单元病房内的床铺、桌椅、呼叫器、卫生间设备等公共设施,不得故意损坏。如因使用不当造成设施设备损坏,需照价赔偿。禁止在病房内私自拆卸、改装任何设施设备。严禁将本护理单元设施设备挪至其他单元使用。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"4.规范用电安全:"),e.createTextVNode(":严禁在病房内使用电炉、热得快、电暖器等大功率电器,不得私拉乱接电线,防止发生用电安全事故。手机、充电器等小型电器使用完毕后及时拔除电源。各护理单元应独立检查用电安全,不得因用电不当影响其他单元供电。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"5.禁止吸烟:"),e.createTextVNode("NU 护理单元为无烟区域,长者及家属严禁在病房、走廊、卫生间等任何区域吸烟,违者将按照医院相关规定进行处罚。尤其要注意,在独立护理单元周边区域也严禁吸烟避免烟雾飘散影响其他单元长者健康。 ")]),e.createElementVNode("view",{class:"font-ri",style:{"margin-top":"50rpx"}}," (二)安全与沟通 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.长者安全管理:")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  长者不得擅自离开所在护理单元。确需外出时,须向主管护士提出书面请假申请,经医生评估同意并签署意见后,方可离院。外出期间长者的安全由家属负责,如因擅自外出导致病情加重或其他意外情况,后果自行承担。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  主动与医护人员保持良好沟通,及时反馈长者的病情变化、不适症状及心理状态。积极参与长者的护理计划和治疗方案制定,提出合理的意见和建议。家属如需了解其他护理单元类似病例情况,应通过医护人员正规渠道咨询,不得私自打听。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("p",null,"  妥善保管长者的贵重物品,医护人员不承担长者财物保管责任。如需帮助,可与护理单元管理人员协商解决。不得在护理单元公共区域随意堆放个人物品,影响通行及空间使用。")]),e.createElementVNode("view",{class:"font-qian"}," 三、独立空间管理细则 "),e.createElementVNode("view",{class:"font-normal"},[e.createElementVNode("text",{style:{"font-weight":"600"}},"1.空间使用规范:"),e.createTextVNode("各护理单元为独立封闭空间,未经允许,长者、家属及医护人员不得随意进入其他护理单元。护理单元之间设置明显标识及隔离设施,防止人员误闯。在紧急情况下,如需跨单元调配资源,需遵循医院统一指挥,按照既定应急流程执行。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"2.设施设备管理:"),e.createTextVNode("每个护理单元配备独立的仪器设备,设备专人专用,定期维护保养。设备标识明确所属护理单元,不得自挪用至其他单元。如设备出现故障,及时报修,并在本单元内做好备用设备调配,确保护理工作不受影响。定期对护理单元内设施设备进行安全检查,包括电气设备、医疗器械等,保障长者使用安全。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"3.环境清洁与消毒:"),e.createTextVNode("各护理单元安排专人负责日常清洁与消毒工作,保持空间内环境整洁卫生。按照医院感染防控要求,制定独立的消毒计划,对病房、走廊、卫生间、护士站等区域定期消毒。消毒用品独立存放于本护理单元,妥善保管,防止误用。在传染病流行期间,加强本护理单元的防控措施,严格限制人员进出,确保不发生交又感染。 ")]),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}},[e.createElementVNode("text",{style:{"font-weight":"600"}},"4.物资管理:"),e.createTextVNode("护理单元内物资独立储备,包括药品、耗材、办公用品等。建立物资管理台账,定期盘点,确保物资充足且在有效期内。物资领取、使用严格登记,避免浪费及流失。特殊物资(如急救药品、贵重耗材)单独存放,专人负责管理,保障紧急情况下物资供应。若物资短缺需跨单元调配,需经上级部门协调,遵循先急后缓原则。 ")]),e.createElementVNode("view",{class:"font-qian"}," 四、附则 "),e.createElementVNode("view",{class:"font-normal"}," 1.本使用条款由[制定部门]负责解释和修订。 "),e.createElementVNode("view",{class:"font-normal",style:{"margin-top":"50rpx"}}," 2.本使用条款自发布之日起施行。如有与本条款相抵触的规定,以本条款为准。 ")]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between","margin-top":"50rpx"}},[e.createElementVNode("view",{class:"back-button",onClick:a}," 拒绝 "),e.createElementVNode("view",{class:"finish-button",onClick:n}," 接受 ")])],64))}},[["__scopeId","data-v-5321eb47"]]),ce=p({__name:"oldmansuccess",setup(t){const a=e.ref(6);let n=null;const o=e.ref(!1),c=e.ref(!1);i((e=>{a.value=6,e.type&&(o.value=!0),e.jianhu&&(c.value=!0),n=setInterval((()=>{a.value>0?a.value-=1:(clearInterval(n),n=null,s())}),1e3)})),l((()=>{n&&(clearInterval(n),n=null)}));const s=()=>{uni.reLaunch({url:"/pages/oldmanindex/index"})};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("image",{style:{width:"500rpx",height:"500rpx"},src:"https://www.focusnu.com/media/directive/index/account/oldsuccess.png"}),e.createElementVNode("view",{class:"white-font"}," 尊敬的用户,您已成功"+e.toDisplayString(o.value?"修改":"添加")+e.toDisplayString(c.value?"监护人":"长者")+"信息 ",1),e.createElementVNode("view",{class:"bottom-font"},[e.createElementVNode("text",{style:{color:"#068DFF"}},e.toDisplayString(a.value)+"秒后",1),e.createTextVNode("自动跳转到长者端 ... ")])]))}},[["__scopeId","data-v-6f6cf9b6"]]),se=p({__name:"paysuccess",setup(t){const a=e.ref(6);let n=null;i((()=>{a.value=6,n=setInterval((()=>{a.value>0?a.value-=1:(clearInterval(n),n=null,o())}),1e3)})),l((()=>{n&&(clearInterval(n),n=null)}));const o=()=>{uni.reLaunch({url:"/pages/oldmanindex/index"})};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("image",{class:"white-img",src:"https://www.focusnu.com/media/directive/index/account/success.png"}),e.createElementVNode("view",{class:"white-font"}," 缴费成功 "),e.createElementVNode("view",{class:"bottom-font"},[e.createElementVNode("text",{style:{color:"#068DFF"}},e.toDisplayString(a.value)+"秒后",1),e.createTextVNode("自动跳转到长者端 ... ")])])]))}},[["__scopeId","data-v-24aab79a"]]),re=p({__name:"saoyisao",setup(t){const a=()=>{uni.navigateBack()};async function n(){const e=await uni.scanCode();var t;"string"==typeof(t=e.result)&&t.length>=10?te(e.result).then((e=>{e.result?uni.navigateTo({url:`/pages/oldmanindex/saoyisaothen?element=${JSON.stringify(e.result)}`}):uni.showToast({title:"扫描的二维码有误",icon:"none",duration:2e3})})):uni.showToast({title:"扫描的二维码有误",icon:"none",duration:2e3})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:a},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),e.createElementVNode("view",{class:"big-img",onClick:n},[e.createElementVNode("image",{style:{width:"100%",height:"100%"},src:"https://www.focusnu.com/media/directive/index/saoyisao/kuai.png"}),e.createElementVNode("view",{class:"big-img-third"},[e.createElementVNode("view",{class:"big-img-second"},[e.createElementVNode("image",{style:{width:"70%",height:"70%"},src:"https://www.focusnu.com/media/directive/index/saoyisao/sao.png"})])]),e.createElementVNode("view",{class:"big-font"}," 点击扫描区域二维码 ")])]))}},[["__scopeId","data-v-deb7ca25"]]),de=p({__name:"saoyisaothen",setup(t){const a=()=>{uni.navigateBack()},n=e.ref({});i((e=>{n.value=JSON.parse(e.element)}));const o=()=>{uni.setStorageSync("payaccount",n.value),uni.navigateTo({url:"/pages/oldmanindex/protocol"})};return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:a},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"white-title"}," NUID:"+e.toDisplayString(n.value.nuId),1),e.createElementVNode("view",{class:"white-second"},e.toDisplayString(n.value.departName),1),e.createElementVNode("view",{class:"white-center"},e.toDisplayString(n.value.nuName),1),e.createElementVNode("view",{style:{display:"flex",width:"85%",position:"absolute",bottom:"0rpx"}},[0==n.value.nuCanUse?(e.openBlock(),e.createElementBlock("view",{key:0,class:"finish-button",onClick:o}," 绑定护理单元 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-button"},e.toDisplayString(n.value.msg),1))])]),e.createElementVNode("view",{style:{width:"100%",display:"flex","justify-content":"flex-end"}},[e.createElementVNode("view",{class:"back-right",onClick:a}," 重新扫码 ")])]))}},[["__scopeId","data-v-00363175"]]),ue=p({__name:"workjoin",setup(a){e.ref(0);const n=e.ref([]);e.ref(!1),i((()=>{ae().then((e=>{n.value=e.result}))})),c((()=>{ae().then((e=>{n.value=e.result})),uni.stopPullDownRefresh()}));const o=e.ref(""),l=e.ref(!1),s=()=>{uni.navigateBack()};return(a,i)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container",style:e.normalizeStyle(n.value.length?{}:{backgroundColor:"#F7F7F7"})},[e.createVNode(z,{show:l.value,onClose:i[0]||(i[0]=e=>l.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:s},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),n.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{position:"absolute",top:"300rpx",left:"30rpx","z-index":"1",display:"flex","align-items":"center"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"长者列表")])):e.createCommentVNode("",!0),n.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/pouplebgc.png",mode:"widthFix","lazy-load":"false"})])):e.createCommentVNode("",!0),n.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,style:{position:"absolute",left:"0",top:"400rpx",width:"100%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center","z-index":"999"}},[e.createElementVNode("image",{style:{height:"220rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/jigouyaoqing.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"20rpx"}}," 暂无长者信息 ")])),e.createElementVNode("view",{class:"bgc-card"},[e.createElementVNode("view",{class:"under-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((a,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,onClick:e=>(e=>{t("log","at pages/oldmanindex/workjoin.vue:127","????",e),uni.setStorageSync("baddata",e),uni.setStorageSync("specicalid",e.id),uni.setStorageSync("backhuancun",{});let a={nuId:e.nuId,orgCode:e.orgCode};uni.setStorageSync("oldman",a),uni.navigateTo({url:"/pages/addoldman/oldIDcard"})})(a)},[e.createElementVNode("view",{class:"white-small"},[e.createElementVNode("image",{style:{height:"90rpx",width:"90rpx"},src:"https://www.focusnu.com/media/directive/index/touxiang.png"}),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{style:{display:"flex","margin-left":"20rpx","align-items":"center"}},[e.createElementVNode("view",{style:{color:"black","font-size":"32rpx"}},e.toDisplayString(a.name),1),e.createElementVNode("view",{style:{"margin-left":"20rpx"}},e.toDisplayString(a.sex),1)]),e.createElementVNode("view",{style:{display:"flex","margin-left":"20rpx","align-items":"center","margin-top":"10rpx"}},[e.createElementVNode("view",{style:{color:"black","font-size":"28rpx"}}," NUID "),e.createElementVNode("view",{style:{"margin-left":"10rpx"}},e.toDisplayString(a.nuId),1)]),e.createElementVNode("view",{style:{display:"flex","margin-left":"10rpx","align-items":"center","margin-top":"10rpx"}},[e.createElementVNode("view",{style:{"margin-left":"10rpx","font-size":"28rpx",color:"#999"}},e.toDisplayString(a.departName),1)])]),e.createElementVNode("view",{style:{position:"absolute",right:"20rpx",top:"60rpx",display:"flex","align-items":"center"}},[e.createElementVNode("image",{style:{height:"30rpx",width:"30rpx"},src:"https://www.focusnu.com/media/directive/index/infotime.png"}),e.createElementVNode("view",{style:{"margin-left":"20rpx"}},e.toDisplayString(a.createTime.slice(0,10)),1),e.createElementVNode("image",{style:{height:"30rpx",width:"30rpx","margin-left":"10rpx"},src:"https://www.focusnu.com/media/directive/index/more.png"})])])],8,["onClick"])))),128))])])],4))}},[["__scopeId","data-v-09a9d856"]]),me=p({__name:"moneylist",setup(a){e.ref(0);const n=e.ref([]);e.ref(!1),i((()=>{ne().then((e=>{n.value=e.result,t("log","at pages/oldmanindex/moneylist.vue:136","res",e.result)}))})),c((()=>{ne().then((e=>{n.value=e.result})),uni.stopPullDownRefresh()}));const o=e.ref(""),l=e.ref(!1),s=()=>{uni.navigateBack()};return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container",style:e.normalizeStyle(n.value.length?{}:{backgroundColor:"#F7F7F7"})},[e.createVNode(z,{show:l.value,onClose:a[0]||(a[0]=e=>l.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:s},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),n.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{position:"absolute",top:"300rpx",left:"30rpx","z-index":"1",display:"flex","align-items":"center"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"账单信息")])):e.createCommentVNode("",!0),n.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/pouplebgc.png",mode:"widthFix","lazy-load":"false"})])):e.createCommentVNode("",!0),n.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,style:{position:"absolute",left:"0",top:"400rpx",width:"100%",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center","z-index":"999"}},[e.createElementVNode("image",{style:{height:"220rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/jigouyaoqing.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"20rpx"}}," 暂无缴费信息 ")])),e.createElementVNode("view",{class:"bgc-card"},[e.createElementVNode("view",{class:"under-scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("view",{class:"white-small"},[e.createElementVNode("view",{class:"white-name"},["bind_nu"==t.type&&null==t.elderName?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"font-size":"36rpx","font-weight":"600"}}," 预缴费 ")):(e.openBlock(),e.createElementBlock("view",{key:1,style:{"font-size":"36rpx","font-weight":"600"}},e.toDisplayString(t.elderName),1)),e.createElementVNode("view",{style:{"font-size":"30rpx"}},e.toDisplayString(t.nuName),1)]),e.createElementVNode("view",{style:{"font-size":"50rpx","font-weight":"600",margin:"15rpx 0"}},e.toDisplayString(t.amount),1),e.createElementVNode("view",{class:"gray-bgc"},[e.createElementVNode("view",{style:{display:"flex","margin-left":"20rpx"}},[e.createElementVNode("view",{class:""},e.toDisplayString(t.typeName),1),e.createElementVNode("view",{style:{margin:"0 20rpx"}}," | "),e.createElementVNode("view",{class:""},[e.createTextVNode(" 余额 "),e.createElementVNode("text",{style:{color:"#0087FF"}},e.toDisplayString(t.balance),1)])]),e.createElementVNode("view",{style:{"margin-right":"20rpx",color:"#b8b8b8"}},e.toDisplayString(t.createTime.slice(0,10)),1)]),e.createElementVNode("view",{class:"remark-bgc"}," 备注信息:"+e.toDisplayString(t.remark),1),e.createElementVNode("view",{style:{"margin-top":"20rpx",color:"#999999","font-size":"30rpx"}},e.toDisplayString(t.departName),1)])])))),128))])])],4))}},[["__scopeId","data-v-4307b0b2"]]),pe=p(e.defineComponent({__name:"message",setup(t){const a=e.ref([]);e.ref(!1),e.ref("");const n=e=>{if("1"==e.izRead)(t={id:e.id},r({url:"/api/wx/notice/upRead",method:"post",data:t})).then((t=>{if(t.success&&(l(),"emp_org_invited_emp_list"===e.type))uni.navigateTo({url:`/pages/yuangongindex/simpleyaoqing?extend=${e.extend}`})}));else if("emp_org_invited_emp_list"===e.type)uni.navigateTo({url:`/pages/yuangongindex/simpleyaoqing?extend=${e.extend}`});var t},i=()=>{uni.reLaunch({url:"/pages/yuangongindex/index"})},l=()=>{r({url:`/api/wx/notice/query?openId=${uni.getStorageSync("openid")}&clientType=3`,method:"get"}).then((e=>{e.success&&(a.value=e.result,a.value.every((e=>"0"==e.izRead))?c.value=!1:c.value=!0)}))};e.ref(!1);const c=e.ref(!1);return o((()=>{l()})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:i},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"})])]),a.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-father"},[e.createElementVNode("view",{class:"title-shu"}),e.createElementVNode("view",{class:"title-font"},[c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-dian"})):e.createCommentVNode("",!0),e.createTextVNode(" 消息 ")])])):e.createCommentVNode("",!0),a.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,style:{width:"100%","margin-top":"170rpx",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"}},[e.createElementVNode("image",{style:{height:"350rpx",width:"350rpx"},src:"https://www.focusnu.com/media/directive/index/nomessage.png"}),e.createElementVNode("view",{style:{color:"#8E96AD","margin-top":"-40rpx"}}," 暂无消息 ")])),e.createElementVNode("view",{style:{width:"100%",display:"flex","flex-wrap":"wrap"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"zhiling-box-card",style:{"margin-top":"30rpx",position:"relative",width:"92%","flex-direction":"column"},onClick:e=>n(t)},[e.createElementVNode("view",{style:{height:"10rpx"}}),e.createElementVNode("view",{class:"card-title"},[e.createElementVNode("image",{style:{height:"70rpx",width:"70rpx","margin-left":"30rpx"},src:"https://www.focusnu.com/media/directive/index/messagetype/0.png"}),e.createElementVNode("view",{class:"card-title-font"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"card-right"},[e.createTextVNode(e.toDisplayString(t.createTime.substring(t.createTime.indexOf("-")+1,t.createTime.indexOf("-")+6))+" ",1),"1"==t.izRead?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-dian"})):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"gray-heng"}),e.createElementVNode("view",{class:"card-bottom"},e.toDisplayString(t.content),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{style:{height:"200rpx"}})]))}}),[["__scopeId","data-v-f686ff89"]]),ge=p({__name:"oldmandownmenu",props:{itemTarget:{type:Number,required:!0}},setup(t){const a=t,n=["NU","动态","我的"];return(o,i)=>(e.openBlock(),e.createElementBlock("view",{class:"botton-view"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((n,o)=>e.createElementVNode("view",{key:o,class:"array-father"},[e.createElementVNode("view",{class:e.normalizeClass(t.itemTarget===o?"bottom-button-target":"bottom-button"),onClick:e=>(e=>{if(e!=a.itemTarget)switch(e){case 0:uni.reLaunch({url:"/pages/oldmanindex/index"});break;case 1:break;case 2:uni.reLaunch({url:"/pages/oldmanindex/mine"})}})(o)},[e.createElementVNode("image",{class:"botton-img",src:`https://www.focusnu.com/media/directive/index/itemsbutton/${o}${t.itemTarget===o?1:0}.png`},null,8,["src"]),e.createElementVNode("view",{class:"bottom-text"},e.toDisplayString(n),1)],10,["onClick"])]))),64))]))}},[["__scopeId","data-v-0d173503"]]),he=p({__name:"index",setup(t){const a=e.ref(!1),n=e.ref(""),s=e.ref(["护理服务","医疗服务","账单查询","视频监视","外出申请","长者信息","监护人"]),d=e.ref(0),u=e.ref(""),m=e.ref(""),p=e.ref(""),g=e.ref("");let h=null;const v=e=>String(e).padStart(2,"0");function w(e=new Date){const{time:t,date:a,weekday:n}=function(e){return{time:`${v(e.getHours())}:${v(e.getMinutes())}:${v(e.getSeconds())}`,date:`${v(e.getMonth()+1)}月${v(e.getDate())}日`,weekday:["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}}(e);u.value=t,m.value=a,p.value=n,g.value=`${t} ${a} ${n}`}i((()=>{w(),h=setInterval((()=>w()),1e3)})),l((()=>{h&&clearInterval(h)}));const f=()=>{uni.navigateTo({url:"/pages/oldmanindex/saoyisao"})},y=()=>{uni.navigateTo({url:"/pages/oldmanindex/input"})},N=()=>{uni.setStorageSync("jumpIndex",0),uni.navigateTo({url:"/pages/yuangongindex/message"})},V=()=>{d.value=b.value.length,E.value=d.value},E=e.ref(0),k=e=>{E.value=e.detail.current,d.value=e.detail.current},x=e.ref(0);e.onMounted((()=>{let e=null;if("function"==typeof uni.getMenuButtonBoundingClientRect){try{e=uni.getMenuButtonBoundingClientRect()}catch(t){e=null}x.value=e.top}})),e.onUnmounted((()=>{}));const b=e.ref([]),S=()=>{uni.getStorage({key:"openid",success:function(e){var t;(t=e.data,r({url:`/api/nuBaseInfo/elderHomeList?openId=${t}`,method:"get"})).then((e=>{b.value=[],b.value=e.result,b.value.push({applyStatus:"-1"})}))}})},C=e.ref(0);return o((()=>{S(),ee().then((e=>{e.result&&(C.value=e.result)}))})),c((()=>{S(),ee().then((e=>{e.result&&(C.value=e.result)})),uni.stopPullDownRefresh()})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createElementVNode("view",{class:"small-ball",style:e.normalizeStyle({top:`${x.value}px`}),onClick:N},[C.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"small-dian"},e.toDisplayString(C.value),1)):e.createCommentVNode("",!0),e.createElementVNode("image",{class:"small-ball-img",src:"https://www.focusnu.com/media/directive/index/ling.png"})],4),e.createElementVNode("view",{class:"index-up"},[e.createElementVNode("image",{class:"index-up-img",src:"https://www.focusnu.com/media/directive/index/indexgif.gif",mode:"widthFix","lazy-load":"false"})]),e.createVNode(z,{show:a.value,onClose:o[0]||(o[0]=e=>a.value=!1),content:n.value},null,8,["show","content"]),e.createElementVNode("swiper",{style:e.normalizeStyle([{width:"100%",position:"fixed",bottom:"0",left:"0"},{minHeight:"100vh"}]),duration:150,current:d.value,onChange:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a},[e.createElementVNode("swiper-item",null,[e.createElementVNode("view",{class:"white-content-father"},["-1"!=t.applyStatus&&t.elderInfo?(e.openBlock(),e.createElementBlock("view",{key:0,style:{"z-index":"1",width:"100%",position:"relative"}},[e.createElementVNode("view",{class:"two-card"},[e.createElementVNode("view",{class:"left-card"},[e.createTextVNode(" NUID:"+e.toDisplayString(t.elderInfo&&t.elderInfo.nuId)+" ",1),e.createElementVNode("view",{style:{"font-size":"45rpx","font-weight":"600","margin-top":"10rpx",display:"flex","justify-content":"space-between","align-items":"center"}},[e.createTextVNode(e.toDisplayString(u.value)+" ",1),e.createElementVNode("image",{style:{width:"60rpx",height:"60rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanphoto/time.png",mode:"widthFix","lazy-load":"false"})]),e.createElementVNode("view",{style:{display:"flex",color:"#7C788D","margin-left":"5rpx"}},[e.createTextVNode(e.toDisplayString(m.value)+" ",1),e.createElementVNode("view",{style:{"margin-left":"20rpx"}},e.toDisplayString(p.value),1)]),e.createElementVNode("view",{style:{display:"flex","margin-top":"30rpx"}},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-left":"30rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{style:{"margin-right":"50rpx","margin-left":"10rpx",display:"flex"}},[e.createElementVNode("view",{style:{"font-size":"25rpx",color:"#B5B5B5","margin-right":"10rpx"}}," 湿度 "),e.createElementVNode("view",{style:{"font-size":"25rpx",color:"#B5B5B5"}},e.toDisplayString(t.humidDeviceList&&t.humidDeviceList[0]&&void 0!==t.humidDeviceList[0].humidity&&null!==t.humidDeviceList[0].humidity?t.humidDeviceList[0].humidity:"—")+"% ",1)])]),e.createElementVNode("view",{class:""},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-left":"10rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{style:{"font-size":"25rpx",color:"#B5B5B5","margin-right":"10rpx"}}," 温度 "),e.createElementVNode("view",{style:{"font-size":"25rpx",color:"#B5B5B5"}},e.toDisplayString(t.humidDeviceList&&t.humidDeviceList[0]&&void 0!==t.humidDeviceList[0].temperature&&null!==t.humidDeviceList[0].temperature?t.humidDeviceList[0].temperature:"—")+"℃ ",1)])])])]),e.createElementVNode("view",{class:"right-card"},[e.createElementVNode("view",{class:"right-top-card"},[e.createElementVNode("image",{style:{width:"80rpx",height:"80rpx","margin-right":"10rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanphoto/old.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{style:{"font-size":"32rpx","font-weight":"600","margin-bottom":"5rpx"}},e.toDisplayString(t.elderInfo&&t.elderInfo.name),1),e.createElementVNode("view",{style:{color:"#7C788D","margin-left":"5rpx","font-size":"22rpx"}},[e.createElementVNode("view",null,e.toDisplayString(t.nuName),1)])])]),e.createElementVNode("view",{class:"right-top-card",style:{"margin-top":"17rpx",padding:"0 30rpx","padding-top":"20rpx","font-size":"25rpx"}},[e.createElementVNode("view",{class:""},e.toDisplayString(t.departName),1)])])]),e.createElementVNode("view",{class:"white-box-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((a,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"white-box",onClick:e=>((e,t)=>{switch(t){case 5:ae(e.elderId,e.orgCode).then((e=>{uni.navigateTo({url:`/pages/addoldman/oldmanall?element=${JSON.stringify(e.result[0])}`})}));break;case 6:ae(e.elderId,e.orgCode).then((e=>{uni.navigateTo({url:`/pages/addoldman/jianhurenall?element=${JSON.stringify(e.result[0])}`})}))}})(t,n)},[e.createElementVNode("image",{class:"box-img",src:`https://www.focusnu.com/media/directive/index/oldmanphoto/${n}.png`},null,8,["src"]),e.createElementVNode("view",{class:"box-font"},e.toDisplayString(a),1)],8,["onClick"])))),128)),e.createElementVNode("view",{class:"white-box"},[e.createElementVNode("image",{class:"box-img",src:"https://www.focusnu.com/media/directive/index/oldmanphoto/more.png"},null,8,["src"])])])])):e.createCommentVNode("",!0)]),"-1"==t.applyStatus||t.elderInfo?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"zhiling-box"},[e.createElementVNode("view",{class:"zhiling-box"},[e.createElementVNode("view",{style:{"margin-left":"30rpx"}},[e.createElementVNode("view",{style:{"font-size":"40rpx","font-weight":"600"}},e.toDisplayString(u.value),1),e.createElementVNode("view",{style:{display:"flex",color:"#7C788D","margin-left":"5rpx"}},[e.createTextVNode(e.toDisplayString(m.value)+" ",1),e.createElementVNode("view",{style:{"margin-left":"20rpx"}},e.toDisplayString(p.value),1)])]),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-left":"10rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanmenu/wendu.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{style:{"font-size":"28rpx","margin-left":"5rpx"}}," 温度 "),e.createElementVNode("view",{style:{"font-size":"28rpx"}},e.toDisplayString(t.humidDeviceList&&t.humidDeviceList[0]&&void 0!==t.humidDeviceList[0].temperature&&null!==t.humidDeviceList[0].temperature?t.humidDeviceList[0].temperature:"—")+"℃ ",1)]),e.createElementVNode("image",{style:{width:"50rpx",height:"50rpx","margin-left":"30rpx"},src:"https://www.focusnu.com/media/directive/index/oldmanmenu/shidu.png",mode:"widthFix","lazy-load":"false"}),e.createElementVNode("view",{style:{"margin-right":"50rpx","margin-left":"10rpx"}},[e.createElementVNode("view",{style:{"font-size":"28rpx","margin-left":"5rpx"}}," 湿度 "),e.createElementVNode("view",{style:{"font-size":"28rpx"}},e.toDisplayString(t.humidDeviceList&&t.humidDeviceList[0]&&void 0!==t.humidDeviceList[0].humidity&&null!==t.humidDeviceList[0].humidity?t.humidDeviceList[0].humidity:"—")+"% ",1)])])])])),"-1"==t.applyStatus||t.elderInfo?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"white-content",style:{margin:"0 auto","margin-top":"30rpx",height:"510rpx"}},[e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"30rpx","align-items":"center"}},[e.createElementVNode("view",{class:"blue-shu"}),e.createElementVNode("view",{class:"blue-font"},e.toDisplayString(t.nuName),1)]),e.createElementVNode("image",{class:"white-content-secondimg-zero",src:"https://www.focusnu.com/media/directive/index/oldmanmenu/bgc.png","lazy-load":"false"}),e.createElementVNode("view",{class:"button-blue-zero",onClick:e=>(e=>{uni.setStorageSync("baddata",""),uni.setStorageSync("specicalid",""),uni.setStorageSync("backhuancun",{});let t={nuId:e.nuId,orgCode:e.orgCode};uni.setStorageSync("oldman",t),uni.navigateTo({url:"/pages/addoldman/oldIDcard"})})(t)}," 添加长者信息 ",8,["onClick"])])),"-1"==t.applyStatus?(e.openBlock(),e.createElementBlock("view",{key:2,class:"white-content",style:{margin:"0 auto","margin-top":"0rpx",height:"750rpx"}},[e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"60rpx","align-items":"center"}},[e.createElementVNode("view",{class:"blue-shu"}),e.createElementVNode("view",{class:"blue-font"}," 绑定护理单元 ")]),e.createElementVNode("image",{class:"white-content-secondimg",src:"https://www.focusnu.com/media/directive/index/oldmanbgc.png","lazy-load":"false"}),e.createElementVNode("view",{class:"button-blue"},[e.createElementVNode("view",{class:"button-ball-father",onClick:f},[e.createElementVNode("view",{class:"button-ball-blue"},[e.createElementVNode("image",{class:"button-ball-img",src:"https://www.focusnu.com/media/directive/index/saoyisaowhite.png"},null,8,["src"])]),e.createTextVNode(" 扫码添加 ")]),e.createElementVNode("view",{class:"button-ball-father",style:{"margin-left":"100rpx"},onClick:y},[e.createElementVNode("view",{class:"button-ball-blue",style:{background:"#F5F5F5"}},[e.createElementVNode("image",{class:"button-ball-img",style:{width:"70%",height:"70%"},src:"https://www.focusnu.com/media/directive/index/shoudong.png"},null,8,["src"])]),e.createTextVNode(" 手动录入 ")])])])):e.createCommentVNode("",!0),"-1"==t.applyStatus||t.elderInfo?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:3,class:"white-content-father-time"},[e.createElementVNode("view",{class:"white-content",style:{"background-color":"transparent"}},[e.createElementVNode("view",{class:"white-bgc"},e.toDisplayString(t.departName),1)])]))])])))),128))],40,["current"]),e.createElementVNode("view",{style:{"z-index":"999",position:"fixed",bottom:"70rpx",width:"100%",display:"flex","justify-content":"center","margin-top":"-25rpx",height:"100rpx"}},[e.createElementVNode("view",{class:"jia-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,onClick:e=>{return t=a,d.value=t,void(E.value=d.value);var t}},[a!=b.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(E.value==a?"black-box":"gray-box")},null,2)):e.createCommentVNode("",!0),a==b.value.length-1?(e.openBlock(),e.createElementBlock("view",{key:1,class:"jia",onClick:V},[e.createElementVNode("image",{class:"jia-img",src:"https://www.focusnu.com/media/directive/index/bluejia.png"},null,8,["src"])])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])]),e.createVNode(ge,{itemTarget:0})]))}},[["__scopeId","data-v-49876a78"]]),ve=p({__name:"jianhurenall",setup(a){const n=e.ref(!1),o=e.ref(""),l=["loading","success","fail"],c=["与长者关系","姓名","电话","身份证号码","家庭住址","工作单位"],s=e.reactive(["","","","","",""]);e.ref("");const r=e=>{var t;"string"==typeof(t=e)&&t.length>=12&&(o.value=e,n.value=!0)},d=()=>{uni.navigateBack()},u=e.ref(""),m=e.ref(""),p=e.ref(!1);i((e=>{e.applyStatus&&(p.value=e.applyStatus),u.value=JSON.parse(e.element),t("log","at pages/addoldman/jianhurenall.vue:114","!!!!!!!!",u.value);let a=u.value;a.content&&(m.value=a.content),s[0]=a.relationship,s[1]=a.guardianName,s[2]=a.guardianPhone,s[3]=a.guardianIdCard,s[4]=a.guardianHomeAddress,s[5]=a.guardianWorkUnit}));const g=()=>{"1"==u.value.guardianModifyStatus?r("该监护人信息正在审核中,请等待"):(u.value.name=u.value.guardianName,u.value.tel=u.value.guardianPhone,u.value.idCard=u.value.guardianIdCard,u.value.homeAddress=u.value.guardianHomeAddress,u.value.workUnit=u.value.guardianWorkUnit,t("log","at pages/addoldman/jianhurenall.vue:136","!!!!!!!!!!!!!!!!!!",u.value),uni.setStorageSync("allinfo",u.value),setTimeout((()=>{uni.navigateTo({url:"/pages/addoldman/IDcard"})}),100))};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:n.value,onClose:a[0]||(a[0]=e=>n.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("image",{class:"greenbgc",src:"https://www.focusnu.com/media/directive/index/greenbgc.png"}),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:d},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"监护人信息")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0","justify-content":"space-between"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"个人信息"),e.createElementVNode("image",{class:"shu-img",src:p.value?`https://www.focusnu.com/media/directive/index/${l[p.value-1]}.png`:""},null,8,["src"])]),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"small-blue",onClick:g}," 修改个人信息 "))]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>r(s[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(s[a]?s[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"40rpx"}})]))}},[["__scopeId","data-v-7752e9d1"]]);function we(e){if("string"!=typeof e)return e;const t="__$LONGTERM_PLACEHOLDER$__";return e.replace(/9999\.12\.31/g,t).replace(/长期/g,"9999.12.31").replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),"长期")}const fe=p({__name:"oldmanall",setup(a){const n=e.ref(!1),o=e.ref(""),l=["loading","success","fail"],c=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],r=e.reactive(["","","","","","","",""]);e.ref(""),e.ref(""),e.ref(""),e.ref(""),e.ref(["","","",""]),e.reactive(["",""]),e.reactive(["","","","","","","","","",""]),e.ref("");const d=e.ref(""),u=e.ref("");function m(e){e&&uni.previewImage({current:e,urls:[e],indicator:"default",loop:!0,longPressActions:{itemList:["保存图片"],success:e=>{t("log","at pages/addoldman/oldmanall.vue:144","长按操作成功",e)},fail:e=>{t("error","at pages/addoldman/oldmanall.vue:147","长按操作失败",e)}}})}e.ref(0),e.ref("");const p=e=>{var t;"string"==typeof(t=e)&&t.length>=12&&(o.value=e,n.value=!0)},g=()=>{uni.navigateBack()},h=e.ref(""),v=e.ref(""),w=e.ref(!1);i((e=>{e.applyStatus&&(w.value=e.applyStatus),h.value=JSON.parse(e.element);let t=h.value;t.content&&(v.value=t.content),r[0]=t.name,r[1]=t.sex,r[2]=t.idCard,r[3]=t.national,r[4]=t.birthDate,r[5]=t.idCardAddress,r[6]=t.issuingAuthority,r[7]=`${t.startTime}-${we(t.endTime)}`,d.value=t.idCardNegative,u.value=t.idCardPositive}));const f=()=>{if("1"==h.value.elderModifyStatus)p("该长者信息正在审核中,请等待");else{let e=h.value;uni.setStorageSync("baddata",e),uni.setStorageSync("specicalid",e.id),uni.setStorageSync("backhuancun",{});let t={nuId:e.nuId,orgCode:e.orgCode};uni.setStorageSync("oldman",t),uni.navigateTo({url:"/pages/addoldman/oldIDcard"})}};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:n.value,onClose:a[0]||(a[0]=e=>n.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("image",{class:"greenbgc",src:"https://www.focusnu.com/media/directive/index/greenbgc.png"}),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:g},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"长者信息")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0","justify-content":"space-between"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证"),e.createElementVNode("image",{class:"shu-img",src:w.value?`https://www.focusnu.com/media/directive/index/${l[w.value-1]}.png`:""},null,8,["src"])]),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"small-blue",onClick:f}," 修改个人信息 "))])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"white-photo",onClick:a[1]||(a[1]=t=>m(`${e.unref(s)}/sys/common/static/${d.value}`))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d.value?`${e.unref(s)}/sys/common/static/${d.value}`:"https://www.focusnu.com/media/directive/index/IDcard.png"},null,8,["src"]),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:a[2]||(a[2]=t=>m(`${e.unref(s)}/sys/common/static/${u.value}`))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:u.value?`${e.unref(s)}/sys/common/static/${u.value}`:"https://www.focusnu.com/media/directive/index/backIDcard.png"},null,8,["src"]),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>p(r[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(r[a]?r[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"40rpx"}})]))}},[["__scopeId","data-v-7c911c77"]]),ye=p({__name:"mine",setup(t){const a=e.ref("");e.ref("");const n=e.ref(""),o=e.ref(!1);e.onMounted((()=>{a.value=uni.getStorageSync("tel"),n.value=uni.getStorageSync("platId")}));const i=["充值缴费","退住管理"],l=()=>{uni.navigateTo({url:"/pages/login/threeselectonespec"})},c=()=>{o.value=!0};return(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:"login-container"},[e.createVNode(P,{show:o.value,onClose:s[0]||(s[0]=e=>o.value=!1)},null,8,["show"]),e.createElementVNode("image",{class:"bgc-imge",src:"https://www.focusnu.com/media/directive/index/mine/bgc.png"}),e.createElementVNode("view",{class:"ball"},[e.createElementVNode("image",{class:"ball-imge",src:"https://www.focusnu.com/media/directive/index/mine/head.png"})]),e.createElementVNode("view",{style:{display:"flex","margin-top":"30rpx"}},[e.createElementVNode("view",{class:"badid"}," ID "),e.createElementVNode("view",{style:{"z-index":"1","margin-top":"-3rpx"}},e.toDisplayString(n.value),1)]),e.createElementVNode("view",{class:"phone"},e.toDisplayString(a.value),1),e.createElementVNode("view",{class:"white-father"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>e.createElementVNode("view",{class:"white-card",key:a,onClick:e=>(e=>{0===e&&uni.navigateTo({url:"/pages/oldmanindex/moneylist"})})(a)},[e.createElementVNode("view",{class:"white-left"},[e.createElementVNode("image",{class:"white-left-imge",src:`https://www.focusnu.com/media/directive/index/oldmanmine/${a}.png`},null,8,["src"]),e.createElementVNode("view",{style:{"font-size":"32rpx"}},e.toDisplayString(t),1)]),e.createElementVNode("view",{class:"white-right"},[e.createElementVNode("image",{class:"white-right-imge",src:"https://www.focusnu.com/media/directive/index/mine/more.png"})])],8,["onClick"]))),64))]),e.createElementVNode("view",{class:"blue-button",onClick:l},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/change.png"}),e.createTextVNode(" 切换账号 ")]),e.createElementVNode("view",{class:"white-button",onClick:c},[e.createElementVNode("image",{class:"blue-button-imge",src:"https://www.focusnu.com/media/directive/index/mine/exit.png"}),e.createTextVNode(" 退出登录 ")]),e.createVNode(ge,{itemTarget:2})]))}},[["__scopeId","data-v-e3a15090"]]),Ne=p({__name:"hukou",setup(a){const n=["姓名","户主或与户主关系","曾用名","性别","出生地","民族","籍贯","出生日期","本市(县)其他住址","宗教信仰","公民身份证件编号","身高","血型","文化程度","婚姻状况","兵役状况","服务住所","职业","何时由何地迁来本市(县)","何时由何地迁来本址"],o=e.ref("");function i(){uni.chooseImage({count:1,sourceType:["camera"],success:e=>{var a;o.value=e.tempFilePaths[0],a=o.value,uni.uploadFile({url:`${uni.getStorageSync("serverUrl")}/api/ocr/idCard`,filePath:a,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{t("log","at pages/addoldman/hukou.vue:83","????",JSON.parse(JSON.parse(e.data).result).data)},fail:e=>{uni.showToast({title:"上传出错",icon:"error"})}})},fail:e=>{t("error","at pages/addoldman/hukou.vue:64","拍照失败:",e)}})}const l=()=>{uni.reLaunch({url:"/pages/index/index"})};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"content-weight"},"上传户口本本人页"),e.createElementVNode("image",{class:"content-img",src:"https://www.focusnu.com/media/directive/index/bian.png"})]),e.createElementVNode("view",{class:"white-photo",onClick:i},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"户口本本人页"),e.createElementVNode("view",{class:"photo-font"},"请上传户口本本人页")]),e.createElementVNode("image",{class:"photo",src:"https://www.focusnu.com/media/directive/index/photoID.png"})]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",{class:"message-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"message-weight"}," 确认户口本本人页信息 ")]),e.createElementVNode("view",{style:{"margin-bottom":"20rpx"}},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,a)=>e.createElementVNode("view",{key:a,class:"one"},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},"自动获得")]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{class:""},"注意事项:"),e.createElementVNode("view",{class:""},"1.所有上传信息均会被妥善保管,不用于其他商业用途或传输给第三方。")]),e.createElementVNode("view",{class:"finish-button",onClick:l}," 确认提交 ")]))}},[["__scopeId","data-v-c9d98707"]]),Ve=p({__name:"yibao",setup(a){const n=["姓名","社会保障卡号码","社会保障卡卡号","发卡日期"],o=e.ref("");function i(){uni.chooseImage({count:1,sourceType:["camera"],success:e=>{var a;o.value=e.tempFilePaths[0],a=o.value,uni.uploadFile({url:`${uni.getStorageSync("serverUrl")}/api/ocr/idCard`,filePath:a,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{t("log","at pages/addoldman/yibao.vue:93","????",JSON.parse(JSON.parse(e.data).result).data)},fail:e=>{uni.showToast({title:"上传出错",icon:"error"})}})},fail:e=>{t("error","at pages/addoldman/yibao.vue:74","拍照失败:",e)}})}const l=()=>{uni.navigateTo({url:"/pages/addoldman/hukou"})};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"content-weight"},"医保卡上传"),e.createElementVNode("image",{class:"content-img",src:"https://www.focusnu.com/media/directive/index/bian.png"})]),e.createElementVNode("view",{class:"white-photo",onClick:i},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"医保卡正面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证医保卡正面")]),e.createElementVNode("image",{class:"photo",src:"https://www.focusnu.com/media/directive/index/yibaocard.png"})]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:i},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"医保卡背面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证医保卡背面")]),e.createElementVNode("image",{class:"photo",src:"https://www.focusnu.com/media/directive/index/backyibaocard.png"})]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",{class:"message-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"message-weight"}," 确认户口本本人页信息 ")]),e.createElementVNode("view",{style:{"margin-bottom":"20rpx"}},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,a)=>e.createElementVNode("view",{key:a,class:"one"},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},"自动获得")]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{class:""},"注意事项:"),e.createElementVNode("view",{class:""}," 1.同一个医保卡号只能认证一个账号; "),e.createElementVNode("view",{class:""},"2.正反面医保卡信息应为同一医保卡信息;"),e.createElementVNode("view",{class:""},"3.所有上传照片需清晰且未遮挡,请勿进行美化和修改;"),e.createElementVNode("view",{class:""},"4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方;")]),e.createElementVNode("view",{class:"finish-button",onClick:l}," 下一步 ")]))}},[["__scopeId","data-v-9b42bee2"]]),Ee=p({__name:"IDcard",setup(a){const n=e.reactive({name:"",tel:"",advisoryType:1,status:2,idCard:"",homeAddress:"",workUnit:"",izJs:1,openId:uni.getStorageSync("openid"),relationship:""});const o=()=>{if(n.relationship)if(n.name)if(n.tel){if(e=n.tel,!/^(\d{11})$/.test(e))return void uni.showToast({title:"电话格式错误",icon:"none"});if(n.idCard){if(!function(e){return/^(\d{18})$/.test(e)}(n.idCard))return void uni.showToast({title:"身份证号格式错误",icon:"none"});if(n.homeAddress)if(n.workUnit)if(uni.getStorageSync("allinfo").name){let e=uni.getStorageSync("allinfo");e.guardianName=n.name,e.guardianPhone=n.tel,e.guardianIdCard=n.idCard,e.guardianHomeAddress=n.homeAddress,e.guardianWorkUnit=n.workUnit,e.relationship=n.relationship,e.modifyType="jhr";const a=`${s}/api/elderInfo/updateElderInfo`;uni.request({url:a,method:"POST",header:{"Content-Type":"application/json","X-Access-Token":uni.getStorageSync("token")||""},data:e,success:e=>{e.data.success&&u(uni.getStorageSync("openid")).then((e=>{uni.setStorageSync("allinfo",e.result),uni.reLaunch({url:"/pages/oldmanindex/oldmansuccess?type=1&jianhu=1"})}))},fail:e=>{t("log","at pages/addoldman/IDcard.vue:163","????",e)}})}else{let e={};e.guardianName=n.name,e.guardianPhone=n.tel,e.guardianIdCard=n.idCard,e.guardianHomeAddress=n.homeAddress,e.guardianWorkUnit=n.workUnit,e.relationship=n.relationship;const a=`${payurl.value}/api/elderInfo/addElder`;uni.request({url:a,method:"POST",header:{"Content-Type":"application/json","X-Access-Token":uni.getStorageSync("token")||""},data:e,success:e=>{t("log","at pages/addoldman/IDcard.vue:185","r",e),200==e.data.code?uni.reLaunch({url:"/pages/oldmanindex/oldmansuccess?type=1&jianhu=1"}):uni.showToast({title:e.data.message,icon:"none",duration:2e3})},fail:e=>{}})}else uni.showToast({title:"请填写工作单位",icon:"error"});else uni.showToast({title:"请填写家庭住址",icon:"error"})}else uni.showToast({title:"请填写身份证号",icon:"error"})}else uni.showToast({title:"请填写电话",icon:"error"});else uni.showToast({title:"请填写姓名",icon:"error"});else uni.showToast({title:"请填写与长者关系",icon:"error"});var e},l=()=>{uni.navigateBack()};return i((()=>{if(uni.getStorageSync("allinfo").name){let e=uni.getStorageSync("allinfo");["openId","name","tel","advisoryType","status","idCard","homeAddress","workUnit","izJs","relationship"].forEach((t=>{n[t]=e[t]||""})),t("log","at pages/addoldman/IDcard.vue:282","????",uni.getStorageSync("allinfo"))}})),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:l},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"监护人信息")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"监护人基本信息")]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"与长者关系"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入与长者关系","onUpdate:modelValue":a[0]||(a[0]=e=>n.relationship=e)},null,512),[[e.vModelText,n.relationship]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"姓名"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入姓名","onUpdate:modelValue":a[1]||(a[1]=e=>n.name=e)},null,512),[[e.vModelText,n.name]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"电话"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"11",placeholder:"请输入电话","onUpdate:modelValue":a[2]||(a[2]=e=>n.tel=e)},null,512),[[e.vModelText,n.tel]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"身份证号"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"18",placeholder:"请输入身份证号","onUpdate:modelValue":a[3]||(a[3]=e=>n.idCard=e)},null,512),[[e.vModelText,n.idCard]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"家庭住址"),e.withDirectives(e.createElementVNode("input",{class:"one-right",placeholder:"请输入家庭住址","onUpdate:modelValue":a[4]||(a[4]=e=>n.homeAddress=e)},null,512),[[e.vModelText,n.homeAddress]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"工作单位"),e.withDirectives(e.createElementVNode("input",{class:"one-right",placeholder:"请输入工作单位","onUpdate:modelValue":a[5]||(a[5]=e=>n.workUnit=e)},null,512),[[e.vModelText,n.workUnit]])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%",position:"fixed",bottom:"20rpx",left:"0"}},[e.createElementVNode("view",{class:"finish-button",onClick:o}," 提交 ")])]))}},[["__scopeId","data-v-ffd19311"]]);const ke=p({name:"u-action-sheet",emits:["update:modelValue","input","click","close"],props:{value:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},tips:{type:Object,default:()=>({text:"",color:"",fontSize:"26"})},cancelBtn:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},borderRadius:{type:[String,Number],default:0},zIndex:{type:[String,Number],default:0},cancelText:{type:String,default:"取消"},labelName:{type:String,default:"text"},blur:{type:[Number,String],default:0}},computed:{valueCom(){return this.modelValue},tipsStyle(){let e={};return this.tips.color&&(e.color=this.tips.color),this.tips.fontSize&&(e.fontSize=this.tips.fontSize+"rpx"),e},itemStyle(){return e=>{let t={};return this.list[e].color&&(t.color=this.list[e].color),this.list[e].fontSize&&(t.fontSize=this.list[e].fontSize+"rpx"),this.list[e].disabled&&(t.color="#c0c4cc"),t}},uZIndex(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},data:()=>({popupValue:!1}),watch:{valueCom(e,t){this.popupValue=e}},methods:{close(){this.popupClose(),this.$emit("close")},popupClose(){this.$emit("input",!1),this.$emit("update:modelValue",!1)},itemClick(e){this.list[e].disabled||(this.$emit("click",e),this.$emit("input",!1),this.$emit("update:modelValue",!1))}}},[["render",function(t,n,o,i,l,c){const s=a(e.resolveDynamicComponent("u-popup"),j);return e.openBlock(),e.createBlock(s,{blur:o.blur,mode:"bottom","border-radius":o.borderRadius,popup:!1,modelValue:l.popupValue,"onUpdate:modelValue":n[3]||(n[3]=e=>l.popupValue=e),maskCloseAble:o.maskCloseAble,length:"auto",safeAreaInsetBottom:o.safeAreaInsetBottom,onClose:c.popupClose,"z-index":c.uZIndex},{default:e.withCtx((()=>[o.tips.text?(e.openBlock(),e.createElementBlock("view",{key:0,class:"u-tips u-border-bottom",style:e.normalizeStyle([c.tipsStyle])},[e.createElementVNode("text",null,e.toDisplayString(o.tips.text),1)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,onTouchmove:n[0]||(n[0]=e.withModifiers((()=>{}),["stop","prevent"])),onClick:e=>c.itemClick(a),style:e.normalizeStyle([c.itemStyle(a)]),class:e.normalizeClass(["u-action-sheet-item u-line-1",[a{}),["stop","prevent"])),class:"u-actionsheet-cancel u-action-sheet-item","hover-class":"u-hover-class","hover-stay-time":150,onClick:n[2]||(n[2]=(...e)=>c.close&&c.close(...e))},e.toDisplayString(o.cancelText),33)):e.createCommentVNode("",!0)])),_:1},8,["blur","border-radius","modelValue","maskCloseAble","safeAreaInsetBottom","onClose","z-index"])}],["__scopeId","data-v-eedc674a"]]),xe=p({__name:"oldIDcard",setup(n){const l=e.ref(!1),c=e.ref(""),r=e.ref(!1),d=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],u=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],m=e.reactive(["","","","","","","",""]);e.reactive(["","","","",""]);const p=e.ref(""),g=e.reactive({name:"",idCard:"",tel:"",homeAddress:"",workUnit:""}),h=e.ref(""),v=e.ref("");e.ref(0);const w=e=>{e?uni.previewImage({urls:[E.value,k.value],current:y.value?k.value:E.value,indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):V()},f=e.ref(""),y=e.ref(0),N=e=>{x.value&&(k.value&&E.value?(y.value=e,r.value=!0):V())};function V(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{f.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0`})},fail:e=>{t("error","at pages/addoldman/oldIDcard.vue:244","拍照失败:",e)}})}const E=e.ref(""),k=e.ref("");const x=e.ref(!0),b=(e,t)=>{uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:a=>{t?v.value=JSON.parse(a.data).message:h.value=JSON.parse(a.data).message,uni.hideLoading(),401==JSON.parse(a.data).code&&uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{t?v.value=JSON.parse(e.data).message:h.value=JSON.parse(e.data).message,x.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),x.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}})};const S=()=>{if(!h.value)return void uni.showToast({title:"请上传身份证正面",icon:"none"});if(!v.value)return void uni.showToast({title:"请上传身份证背面",icon:"none"});if(_.value){if(!p.value)return void uni.showToast({title:"请填写与长者关系",icon:"none"});if(!g.name)return void uni.showToast({title:"请填写监护人姓名",icon:"none"});if(!g.tel)return void uni.showToast({title:"请填写监护人电话",icon:"none"});if(e=g.tel,!/^(\d{11})$/.test(e))return void uni.showToast({title:"监护人电话格式错误",icon:"none"});if(!g.idCard)return void uni.showToast({title:"请填写身份证号",icon:"none"});if(!function(e){return/^(\d{18})$/.test(e)}(g.idCard))return void uni.showToast({title:"身份证号格式错误",icon:"none"});if(!g.homeAddress)return void uni.showToast({title:"请填写家庭住址",icon:"none"});if(!g.workUnit)return void uni.showToast({title:"请填写工作单位",icon:"none"})}var e;const a=m.every((e=>""!==e));if(x.value)if(a){const e=m[7],[a,n]=e.split("-");let o={};o.openId=uni.getStorageSync("openid"),o.nuId=uni.getStorageSync("oldman").nuId,o.idCardPositive=h.value,o.idCardNegative=v.value,o.name=m[0],o.sex=m[1],o.idCard=m[2],o.national=m[3],o.dateOfBirth=m[4],o.houseAddress=m[5],o.issuingAuthority=m[6],o.startTime=a,o.endTime=we(n),o.sysOrgCode=uni.getStorageSync("oldman").orgCode;let i=g;if(t("log","at pages/addoldman/oldIDcard.vue:505","!!!!!!!!!",i),o.guardianName=i.name,o.relationship=p.value,o.guardianIdCard=i.idCard,o.guardianPhone=i.tel,o.guardianHomeAddress=i.homeAddress,o.guardianWorkUnit=i.workUnit,o.guardianOpenId=uni.getStorageSync("openid"),o.guardianId=uni.getStorageSync("allinfo").id,o.modifyType="zz",T.value){o.id=T.value;const e=`${B.value}/api/elderInfo/updateElderInfo`;uni.request({url:e,method:"POST",header:{"Content-Type":"application/json","X-Access-Token":uni.getStorageSync("token")||""},data:o,success:e=>{uni.reLaunch({url:"/pages/oldmanindex/oldmansuccess?type=1"})},fail:e=>{t("log","at pages/addoldman/oldIDcard.vue:539","????",e)}})}else{const e=`${B.value}/api/elderInfo/addElder`;uni.request({url:e,method:"POST",header:{"Content-Type":"application/json","X-Access-Token":uni.getStorageSync("token")||""},data:o,success:e=>{if(t("log","at pages/addoldman/oldIDcard.vue:554","r",e),200!=e.data.code)return void uni.showToast({title:e.data.message,icon:"none",duration:2e3});const a={nuId:o.nuId,openId:uni.getStorageSync("openid"),elderId:e.data.result,sysOrgCode:o.sysOrgCode},n=`${B.value}/api/nuBaseInfo/bindNu`;uni.request({url:n,method:"POST",header:{"Content-Type":"application/json","X-Access-Token":uni.getStorageSync("token")||""},data:a,success:e=>{uni.reLaunch({url:"/pages/oldmanindex/oldmansuccess"})},fail:e=>{}})},fail:e=>{}})}}else uni.showToast({title:"请上传清晰的身份证",icon:"error"})},C=()=>{x.value&&uni.navigateBack()},B=e.ref(""),T=e.ref("");const _=e.ref(!0);return i((()=>{if(B.value=s,uni.getStorageSync("allinfo"),uni.getStorageSync("specicalid")){let e=uni.getStorageSync("baddata");_.value=!1,h.value=e.idCardPositive,v.value=e.idCardNegative,m[0]=e.name,m[1]=e.sex,m[2]=e.idCard,m[3]=e.national,m[4]=function(e){const[t,a,n]=e.split(" ")[0].split("-");return`${t}年${parseInt(a)}月${parseInt(n)}日`}(e.dateOfBirth),m[5]=e.houseAddress,m[6]=e.issuingAuthority,p.value=e.relationship,e.startTime=e.startTime,e.endTime=e.endTime,T.value=e.id,m[7]=`${e.startTime}-${we(e.endTime)}`}})),o((()=>{const e=uni.getStorageSync("imgkey0");var t;e&&(t=e,x.value=!1,uni.showLoading(),uni.uploadFile({url:`${s}/api/ocr/idCard`,filePath:t,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{if(!JSON.parse(e.data).success)return uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),void(x.value=!0);if(JSON.parse(JSON.parse(e.data).result.data).data.face){let a=JSON.parse(JSON.parse(e.data).result.data).data.face.data;m[0]=a.name,m[1]=a.sex,m[2]=a.idNumber,m[3]=a.ethnicity,m[4]=a.birthDate,m[5]=a.address,E.value=t,b(t,0)}else if(JSON.parse(JSON.parse(e.data).result.data).data.back){let a=JSON.parse(JSON.parse(e.data).result.data).data.back.data;m[6]=a.issueAuthority,m[7]=a.validPeriod,k.value=t,b(t,1)}else uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),x.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:C},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"长者登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(必填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[1]||(n[1]=e=>N(0))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:h.value?`${e.unref(s)}/sys/common/static/${h.value}`:"https://www.focusnu.com/media/directive/index/IDfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:h.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:n[2]||(n[2]=e=>N(1))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:v.value?`${e.unref(s)}/sys/common/static/${v.value}`:"https://www.focusnu.com/media/directive/index/IDend.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:v.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>{return t=m[a],void("string"==typeof(n=t)&&n.length>=12&&(c.value=t,l.value=!0));var t,n}},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(m[a]?m[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{style:{color:"#333333"}},"注意事项:"),e.createElementVNode("view",{style:{"margin-top":"30rpx","font-size":"28rpx"}},[e.createElementVNode("view",{class:"line"},"1.同一个身份证号只能认证一个账号。"),e.createElementVNode("view",{class:"line"},"2.国徽与正面信息应为同一身份证的信息且在有效期内。"),e.createElementVNode("view",{class:"line"},"3.所有上传照片需清晰且未遮挡,请勿进行美化和修改。"),e.createElementVNode("view",{class:"line"},"4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。")])]),_.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"10rpx 0",display:"flex"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"监护人信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"与长者关系"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入与长者关系","onUpdate:modelValue":n[3]||(n[3]=e=>p.value=e)},null,512),[[e.vModelText,p.value]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"监护人姓名"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入监护人姓名","onUpdate:modelValue":n[4]||(n[4]=e=>g.name=e)},null,512),[[e.vModelText,g.name]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"监护人电话"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入监护人电话","onUpdate:modelValue":n[5]||(n[5]=e=>g.tel=e)},null,512),[[e.vModelText,g.tel]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"身份证号"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"18",placeholder:"请输入身份证号","onUpdate:modelValue":n[6]||(n[6]=e=>g.idCard=e)},null,512),[[e.vModelText,g.idCard]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"家庭住址"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入家庭住址","onUpdate:modelValue":n[7]||(n[7]=e=>g.homeAddress=e)},null,512),[[e.vModelText,g.homeAddress]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"工作单位"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入工作单位","onUpdate:modelValue":n[8]||(n[8]=e=>g.workUnit=e)},null,512),[[e.vModelText,g.workUnit]])])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between"}},[e.createElementVNode("view",{class:"finish-button",onClick:S}," 提交 ")]),e.createVNode(o,{list:d,onClick:w,modelValue:r.value,"onUpdate:modelValue":n[9]||(n[9]=e=>r.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-35047e23"]]),be=p({__name:"map",setup(t){const a=e.ref(!1),n=e.ref(!1),o=e.ref(-1),i=e.ref([{name:"护理单元01",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元02",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元03",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元04",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元05",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元06",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元07",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元08",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元09",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元10",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元11",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元12",width:"30",height:"30",top:"20",left:"0"},{name:"护理单元13",width:"30",height:"30",top:"20",left:"0"}]),l=()=>{uni.navigateTo({url:"/pages/login/protocol"})};return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"select",onClick:c[2]||(c[2]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"select-left",onClick:c[0]||(c[0]=e=>a.value=!0),style:e.normalizeStyle(a.value?{}:{color:"black",backgroundColor:"#fff"})}," 列表 ",4),e.createElementVNode("view",{class:"select-right",onClick:c[1]||(c[1]=e=>a.value=!1),style:e.normalizeStyle(a.value?{color:"black",backgroundColor:"#fff"}:{})}," 地图 ",4)]),a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title-map"},[e.createElementVNode("view",{class:"right-bad"},[e.createElementVNode("view",null,"北"),e.createElementVNode("image",{class:"right-bad-img",src:"https://www.focusnu.com/media/directive/index/zhinan.png"}),e.createElementVNode("view",null,"南")]),e.createElementVNode("image",{class:"title-img",src:"https://www.focusnu.com/media/directive/index/map.png"})])),e.createElementVNode("view",{class:"list-father"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"card-father",onClick:e=>o.value=a},[e.createElementVNode("view",{class:e.normalizeClass(o.value==a?"card-target":"card")},[e.createElementVNode("image",{class:"card-img",src:o.value==a?"https://www.focusnu.com/media/directive/index/jigou/bluewuzi.png":"https://www.focusnu.com/media/directive/index/jigou/wuzi.png"},null,8,["src"]),o.value==a?(e.openBlock(),e.createElementBlock("view",{key:0,class:"abs-father"},[e.createElementVNode("image",{class:"abs-img",src:"https://www.focusnu.com/media/directive/index/jigou/bar.png"}),e.createElementVNode("image",{class:"abs-dui",src:"https://www.focusnu.com/media/directive/index/jigou/dui.png"})])):e.createCommentVNode("",!0)],2),e.createElementVNode("view",{class:"card-name"},e.toDisplayString(t.name),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"under-container-title"},[e.createElementVNode("view",{style:{"margin-left":"60rpx"},class:e.normalizeClass(n.value?"radio-circle-target":"radio-circle"),onClick:c[3]||(c[3]=e=>n.value=!n.value)},null,2),e.createElementVNode("view",{style:{"margin-left":"17rpx"},class:"radio-circle-font",onClick:c[4]||(c[4]=e=>n.value=!n.value)},"阅读并同意"),e.createElementVNode("view",{class:"radio-circle-blue",onClick:l}," 《护理单元使用条款》 ")]),e.createElementVNode("view",{class:"button-blue",onClick:c[5]||(c[5]=(...e)=>t.loginIt&&t.loginIt(...e))}," 一键登录 "),e.createElementVNode("view",{class:"bgc-height"})]))}},[["__scopeId","data-v-b8141ff3"]]),Se=p({__name:"all",setup(a){const n=e.ref(!1),o=e.ref(""),l=["loading","success","fail"],c=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],r=e.reactive(["","","","","","","",""]),d=e.ref("");e.ref("");const u=e.ref(""),m=e.ref(""),p=e.ref(["","","",""]),g=["开户行","开户行卡号"],h=e.reactive(["",""]),v=["婚否","联系电话","身高","体重","健康状态","政治面貌","紧急联系人","紧急联系人电话","联系人与本人关系","户口性质"],w=e.reactive(["","","","","","","","","",""]),f=e.ref("");function y(e){e&&uni.previewImage({current:e,urls:[e],indicator:"default",loop:!0,longPressActions:{itemList:["保存图片"],success:e=>{t("log","at pages/addstaff/all.vue:294","长按操作成功",e)},fail:e=>{t("error","at pages/addstaff/all.vue:297","长按操作失败",e)}}})}e.ref(""),e.ref(""),e.ref(0),e.ref("");const N=e=>{var t;"string"==typeof(t=e)&&t.length>=12&&(o.value=e,n.value=!0)},V=()=>{uni.navigateBack()},E=e.ref(""),k=e.ref(""),x=e.ref(!1);i((e=>{e.applyStatus&&(x.value=e.applyStatus),E.value=JSON.parse(e.element);let t=E.value;t.content&&(k.value=t.content),r[0]=t.name,r[1]=t.sex,r[2]=t.idCard,r[3]=t.national,r[4]=t.birthDate,r[5]=t.idCardAddress,r[6]=t.issuingAuthority,r[7]=`${t.startTime}-${we(t.endTime)}`,d.value=`${s}/sys/common/static/${t.cardZmPath}`,f.value=`${s}/sys/common/static/${t.cardFmPath}`,h[0]=t.openingBank,h[1]=t.bankCard,u.value=`${s}/sys/common/static/${t.bankZmPath}`,m.value=`${s}/sys/common/static/${t.bankFmPath}`,p.value[0]=t.healthZmPath,p.value[1]=t.healthFmPath,p.value[2]=t.qualificationPath,p.value[3]=t.noCrimeCertificate;["maritalStatus","tel","height","weight","healthStatus","politicalAppearance","contactName","contactTel","contactRelationship","hukouType"].forEach(((e,a)=>{w[a]=t[e]||""})),w[2]+="cm",w[3]+="kg"}));const b=()=>{"1"==E.value.modifyState?N("该信息正在审核中,请等待"):(uni.setStorageSync("baddata",E.value),uni.setStorageSync("specicalid",E.value.id),uni.setStorageSync("backhuancun",{}),uni.navigateTo({url:"/pages/addstaff/information"}))};return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:n.value,onClose:a[0]||(a[0]=e=>n.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("image",{class:"greenbgc",src:"https://www.focusnu.com/media/directive/index/greenbgc.png"}),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:V},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入职登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0","justify-content":"space-between"}},[e.createElementVNode("view",{style:{display:"flex"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"个人信息"),e.createElementVNode("image",{class:"shu-img",src:x.value?`https://www.focusnu.com/media/directive/index/${l[x.value-1]}.png`:""},null,8,["src"])]),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"small-blue",onClick:b}," 修改个人信息 "))]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>N(r[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(w[a]?w[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:e.normalizeStyle([x.value?{height:"140rpx"}:{height:"100rpx"},{position:"relative","margin-bottom":"20rpx","z-index":"999"}])},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证")],4),e.createElementVNode("view",{class:"white-photo",onClick:a[1]||(a[1]=e=>y(d.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d.value?d.value:"https://www.focusnu.com/media/directive/index/IDcard.png"},null,8,["src"]),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:a[2]||(a[2]=e=>y(f.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:f.value?f.value:"https://www.focusnu.com/media/directive/index/backIDcard.png"},null,8,["src"]),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>N(r[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(r[a]?r[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{"margin-bottom":"30rpx"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"银行卡"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:a[3]||(a[3]=e=>y(u.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"银行卡正面"),e.createElementVNode("view",{class:"photo-font"},"请上传银行卡正面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:u.value?u.value:"https://www.focusnu.com/media/directive/index/bankfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:u.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:a[4]||(a[4]=e=>y(m.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"银行卡反面"),e.createElementVNode("view",{class:"photo-font"},"请上传银行卡反面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:m.value?m.value:"https://www.focusnu.com/media/directive/index/bankend.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:m.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"30rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认银行卡信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>N(h[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(h[a]?h[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{"margin-bottom":"20rpx"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"健康证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:a[5]||(a[5]=t=>y(p.value[0]?`${e.unref(s)}/sys/common/static/${p.value[0]}`:""))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"健康证正面"),e.createElementVNode("view",{class:"photo-font"},"请上传健康证正面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value[0]?`${e.unref(s)}/sys/common/static/${p.value[0]}`:""},null,8,["src"])])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"资质证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:a[6]||(a[6]=t=>y(p.value[2]?`${e.unref(s)}/sys/common/static/${p.value[2]}`:""))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"资质证"),e.createElementVNode("view",{class:"photo-font"},"请上传资质证")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value[2]?`${e.unref(s)}/sys/common/static/${p.value[2]}`:""},null,8,["src"])])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"无犯罪证明"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:a[7]||(a[7]=t=>y(p.value[3]?`${e.unref(s)}/sys/common/static/${p.value[3]}`:""))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"无犯罪证明"),e.createElementVNode("view",{class:"photo-font"},"请上传无犯罪证明")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value[3]?`${e.unref(s)}/sys/common/static/${p.value[3]}`:""},null,8,["src"])])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"40rpx"}})]))}},[["__scopeId","data-v-96c8699c"]]);const Ce=p({emits:["update:modelValue","input","confirm"],props:{value:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},border:{type:Boolean,default:!0},cancelColor:{type:String,default:"#606266"},confirmColor:{type:String,default:"#2979ff"},zIndex:{type:[String,Number],default:0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[0]},mode:{type:String,default:"single-column"},valueName:{type:String,default:"value"},labelName:{type:String,default:"label"},childName:{type:String,default:"children"},title:{type:String,default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},blur:{type:[Number,String],default:0}},data:()=>({popupValue:!1,defaultSelector:[0],columnData:[],selectValue:[],lastSelectIndex:[],columnNum:0,moving:!1,reset:!1}),watch:{valueCom:{immediate:!0,handler(e){e&&(this.reset=!0,setTimeout((()=>this.init()),10)),this.popupValue=e}}},computed:{uZIndex(){return this.zIndex?this.zIndex:this.$u.zIndex.popup},valueCom(){return this.modelValue},showColumnCom:()=>!0},methods:{pickstart(){},pickend(){},init(){this.reset=!1,this.setColumnNum(),this.setDefaultSelector(),this.setColumnData(),this.setSelectValue()},setDefaultSelector(){this.defaultSelector=this.defaultValue.length==this.columnNum?this.defaultValue:Array(this.columnNum).fill(0),this.lastSelectIndex=this.$u.deepClone(this.defaultSelector)},setColumnNum(){if("single-column"==this.mode)this.columnNum=1;else if("mutil-column"==this.mode)this.columnNum=this.list.length;else if("mutil-column-auto"==this.mode){let e=1,t=this.list;for(;t[0][this.childName];)t=t[0]?t[0][this.childName]:{},e++;this.columnNum=e}},setColumnData(){let e=[];if(this.selectValue=[],"mutil-column-auto"==this.mode){let t=this.list[this.defaultSelector.length?this.defaultSelector[0]:0];for(let a=0;a{e!=a[n]&&(t=n)})),this.defaultSelector=a;for(let e=t+1;e{let n=this.columnData[t][a[t]],o={index:a[t],value:n?n[this.valueName]:null,label:n?n[this.labelName]:null};n&&void 0!==n.extra&&(o.extra=n.extra),this.selectValue.push(o)})),this.lastSelectIndex=a}else if("single-column"==this.mode){let e=this.columnData[0][a[0]],t={index:a[0],value:e?e[this.valueName]:null,label:e?e[this.labelName]:null};e&&void 0!==e.extra&&(t.extra=e.extra),this.selectValue.push(t),this.lastSelectIndex=a}else"mutil-column"==this.mode&&(a.map(((e,t)=>{let n=this.columnData[t][a[t]],o={index:a[t],value:n?n[this.valueName]:null,label:n?n[this.labelName]:null};n&&void 0!==n.extra&&(o.extra=n.extra),this.selectValue.push(o)})),this.lastSelectIndex=a)},close(){this.$emit("input",!1),this.$emit("update:modelValue",!1)},getResult(e=null){e&&this.$emit(e,this.selectValue),this.close()},selectHandler(){this.$emit("click")}}},[["render",function(t,n,o,i,l,c){const s=a(e.resolveDynamicComponent("u-popup"),j);return e.openBlock(),e.createElementBlock("view",{class:"u-select"},[e.createVNode(s,{blur:o.blur,maskCloseAble:o.maskCloseAble,mode:"bottom",popup:!1,modelValue:l.popupValue,"onUpdate:modelValue":n[7]||(n[7]=e=>l.popupValue=e),length:"auto",safeAreaInsetBottom:o.safeAreaInsetBottom,onClose:c.close,"z-index":c.uZIndex},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"u-select"},[e.createElementVNode("view",{class:"u-select__header",onTouchmove:n[3]||(n[3]=e.withModifiers((()=>{}),["stop","prevent"]))},[e.createElementVNode("view",{class:"u-select__header__cancel u-select__header__btn",style:e.normalizeStyle({color:o.cancelColor}),"hover-class":"u-hover-class","hover-stay-time":150,onClick:n[0]||(n[0]=e=>c.getResult("cancel"))},e.toDisplayString(o.cancelText),5),e.createElementVNode("view",{class:"u-select__header__title"},e.toDisplayString(o.title),1),e.createElementVNode("view",{class:"u-select__header__confirm u-select__header__btn",style:e.normalizeStyle({color:l.moving?o.cancelColor:o.confirmColor}),"hover-class":"u-hover-class","hover-stay-time":150,onTouchmove:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"])),onClick:n[2]||(n[2]=e.withModifiers((e=>c.getResult("confirm")),["stop"]))},e.toDisplayString(o.confirmText),37)],32),e.createElementVNode("view",{class:"u-select__body"},[e.createElementVNode("picker-view",{onChange:n[4]||(n[4]=(...e)=>c.columnChange&&c.columnChange(...e)),class:"u-select__body__picker-view",value:l.defaultSelector,onPickstart:n[5]||(n[5]=(...e)=>c.pickstart&&c.pickstart(...e)),onPickend:n[6]||(n[6]=(...e)=>c.pickend&&c.pickend(...e))},[c.showColumnCom?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.columnData,((t,a)=>(e.openBlock(),e.createElementBlock("picker-view-column",{key:a},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"u-select__body__picker-view__item",key:a},[e.createElementVNode("view",{class:"u-line-1"},e.toDisplayString(t[o.labelName]),1)])))),128))])))),128)):e.createCommentVNode("",!0)],40,["value"])])])])),_:1},8,["blur","maskCloseAble","modelValue","safeAreaInsetBottom","onClose","z-index"])])}],["__scopeId","data-v-eceb18cd"]]),Be=p({__name:"information",setup(t){e.reactive(["","","","","","","",""]);const n=e.ref(!1),o=e.reactive([{value:"已婚",label:"已婚"},{value:"未婚",label:"未婚"}]),l=e.ref(!1),c=e.reactive([{value:"健康",label:"健康"},{value:"患病",label:"患病"}]),s=e.ref(!1),r=e.reactive([{value:"共产党员",label:"共产党员"},{value:"国民党",label:"国民党"},{value:"民主党",label:"民主党"},{value:"无党派",label:"无党派"}]),d=e.ref(!1),u=e.reactive([{value:"非农业",label:"非农业"},{value:"农业",label:"农业"}]),m=e=>{v.maritalStatus=e[0].value},p=e=>{v.healthStatus=e[0].value},g=e=>{v.politicalAppearance=e[0].value},h=e=>{v.hukouType=e[0].value},v=e.reactive({maritalStatus:"",tel:"",height:"",weight:"",healthStatus:"",politicalAppearance:"",contactName:"",contactTel:"",contactRelationship:"",hukouType:"",openId:uni.getStorageSync("openid")});function w(e){return/^(\d{11})$/.test(e)}const f=()=>{if(v.maritalStatus)if(v.tel){if(!w(v.tel))return void uni.showToast({title:"手机号格式错误",icon:"error"});if(v.height)if(v.weight)if(v.healthStatus)if(v.politicalAppearance)if(v.contactName)if(v.contactTel){if(!w(v.contactTel))return void uni.showToast({title:"紧急联系人手机号格式错误",icon:"none"});if(v.contactRelationship)if(v.hukouType){const e=v,t={...uni.getStorageSync("backhuancun"),...e};uni.setStorageSync("backhuancun",t),uni.navigateTo({url:"/pages/addstaff/IDcard"})}else uni.showToast({title:"请填写户口性质",icon:"error"});else uni.showToast({title:"请填写联系人和本人的关系",icon:"none"})}else uni.showToast({title:"请填写紧急联系人电话",icon:"none"});else uni.showToast({title:"请填写紧急联系人",icon:"none"});else uni.showToast({title:"请填写政治面貌",icon:"error"});else uni.showToast({title:"请填写健康状态",icon:"error"});else uni.showToast({title:"请填写体重",icon:"error"});else uni.showToast({title:"请填写身高",icon:"error"})}else uni.showToast({title:"请填写联系电话",icon:"error"});else uni.showToast({title:"请填写婚否",icon:"error"})},y=()=>{uni.navigateBack()};return i((()=>{if(uni.getStorageSync("baddata")){uni.setStorageSync("isstaffchange",!0);let e=uni.getStorageSync("baddata");["maritalStatus","tel","height","weight","healthStatus","politicalAppearance","contactName","contactTel","contactRelationship","hukouType"].forEach((t=>{v[t]=e[t]||""}))}else uni.setStorageSync("isstaffchange",!1)})),(t,i)=>{const w=a(e.resolveDynamicComponent("u-select"),Ce);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:y},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入职登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"个人信息")]),e.createElementVNode("view",{class:"one",style:{position:"relative"},onClick:i[1]||(i[1]=e=>n.value=!0)},[e.createElementVNode("view",{class:"one-left"},"婚否"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择婚否","onUpdate:modelValue":i[0]||(i[0]=e=>v.maritalStatus=e)},null,512),[[e.vModelText,v.maritalStatus]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})]),e.createVNode(w,{style:{"font-size":"35rpx"},modelValue:n.value,"onUpdate:modelValue":i[2]||(i[2]=e=>n.value=e),list:o,onConfirm:m},null,8,["modelValue","list"]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"联系电话"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"11",placeholder:"请输入联系电话","onUpdate:modelValue":i[3]||(i[3]=e=>v.tel=e)},null,512),[[e.vModelText,v.tel]])]),e.createElementVNode("view",{class:"one",style:{position:"relative"}},[e.createElementVNode("view",{class:"one-left"},"身高"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"3",placeholder:"请输入身高","onUpdate:modelValue":i[4]||(i[4]=e=>v.height=e)},null,512),[[e.vModelText,v.height]]),e.createElementVNode("view",{class:"triangle-down-mi"}," cm ")]),e.createElementVNode("view",{class:"one",style:{position:"relative"}},[e.createElementVNode("view",{class:"one-left"},"体重"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"3",placeholder:"请输入体重","onUpdate:modelValue":i[5]||(i[5]=e=>v.weight=e)},null,512),[[e.vModelText,v.weight]]),e.createElementVNode("view",{class:"triangle-down-mi"}," kg ")]),e.createElementVNode("view",{class:"one",style:{position:"relative"},onClick:i[7]||(i[7]=e=>l.value=!0)},[e.createElementVNode("view",{class:"one-left"},"健康状况"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择健康状况","onUpdate:modelValue":i[6]||(i[6]=e=>v.healthStatus=e)},null,512),[[e.vModelText,v.healthStatus]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})]),e.createVNode(w,{style:{"font-size":"35rpx"},modelValue:l.value,"onUpdate:modelValue":i[8]||(i[8]=e=>l.value=e),list:c,onConfirm:p},null,8,["modelValue","list"]),e.createElementVNode("view",{class:"one",style:{position:"relative"},onClick:i[10]||(i[10]=e=>s.value=!0)},[e.createElementVNode("view",{class:"one-left"},"政治面貌"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择政治面貌","onUpdate:modelValue":i[9]||(i[9]=e=>v.politicalAppearance=e)},null,512),[[e.vModelText,v.politicalAppearance]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})]),e.createVNode(w,{style:{"font-size":"35rpx"},modelValue:s.value,"onUpdate:modelValue":i[11]||(i[11]=e=>s.value=e),list:r,onConfirm:g},null,8,["modelValue","list"]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"紧急联系人"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"9",placeholder:"请输入紧急联系人","onUpdate:modelValue":i[12]||(i[12]=e=>v.contactName=e)},null,512),[[e.vModelText,v.contactName]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"紧急联系人电话"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",type:"number",placeholder:"请输入紧急联系人电话","onUpdate:modelValue":i[13]||(i[13]=e=>v.contactTel=e)},null,512),[[e.vModelText,v.contactTel]])]),e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"联系人与本人关系"),e.withDirectives(e.createElementVNode("input",{class:"one-right",maxlength:"11",placeholder:"请输入联系人与本人关系","onUpdate:modelValue":i[14]||(i[14]=e=>v.contactRelationship=e)},null,512),[[e.vModelText,v.contactRelationship]])]),e.createElementVNode("view",{class:"one",style:{position:"relative"},onClick:i[16]||(i[16]=e=>d.value=!0)},[e.createElementVNode("view",{class:"one-left"},"户口性质"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择户口性质","onUpdate:modelValue":i[15]||(i[15]=e=>v.hukouType=e)},null,512),[[e.vModelText,v.hukouType]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})]),e.createVNode(w,{style:{"font-size":"35rpx"},modelValue:d.value,"onUpdate:modelValue":i[17]||(i[17]=e=>d.value=e),list:u,onConfirm:h},null,8,["modelValue","list"])]),e.createElementVNode("view",{style:{display:"flex",width:"100%"}},[e.createElementVNode("view",{class:"finish-button",onClick:f}," 确认并继续 ")])])}}},[["__scopeId","data-v-cd3174b1"]]),Te=p({__name:"IDcard",setup(n){const l=e.ref(!1),c=e.ref(""),r=e.ref(!1),d=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],u=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],m=e.reactive(["","","","","","","",""]),p=e.ref(""),g=e.ref("");e.ref(0);const h=e=>{e?uni.previewImage({urls:[N.value,V.value],current:w.value?V.value:N.value,indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):y()},v=e.ref(""),w=e.ref(0),f=e=>{E.value&&(V.value&&N.value?(w.value=e,r.value=!0):y())};function y(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{v.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0`})},fail:e=>{t("error","at pages/addstaff/IDcard.vue:176","拍照失败:",e)}})}const N=e.ref(""),V=e.ref("");const E=e.ref(!0),k=(e,t)=>{uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:a=>{t?g.value=JSON.parse(a.data).message:p.value=JSON.parse(a.data).message,uni.hideLoading(),401==JSON.parse(a.data).code&&uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{t?g.value=JSON.parse(e.data).message:p.value=JSON.parse(e.data).message,E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}})};const x=()=>{if(!p.value)return void uni.showToast({title:"请上传身份证正面",icon:"error"});if(!g.value)return void uni.showToast({title:"请上传身份证背面",icon:"error"});const e=m.every((e=>""!==e));if(E.value)if(e){const e=m[7],[t,a]=e.split("-");let n=uni.getStorageSync("backhuancun");n.startTime=t,n.endTime=a,n.id=uni.getStorageSync("specicalid")||"",n.name=m[0],n.sex=m[1],n.idCard=m[2],n.national=m[3],n.birthDate=m[4],n.idCardAddress=m[5],n.issuingAuthority=m[6],n.cardZmPath=p.value,n.cardFmPath=g.value,uni.setStorageSync("backhuancun",n),uni.navigateTo({url:"/pages/addstaff/bankcard"})}else uni.showToast({title:"请上传清晰的身份证",icon:"error"})},b=()=>{if(E.value){if(m[0]){let e=uni.getStorageSync("backhuancun");const t=m[7],[a,n]=t.split("-");e.startTime=a,e.endTime=n,e.name=m[0],e.sex=m[1],e.idCard=m[2],e.national=m[3],e.birthDate=m[4],e.idCardAddress=m[5],e.issuingAuthority=m[6],e.cardZmPath=p.value,e.cardFmPath=g.value,uni.setStorageSync("backhuancun",e)}uni.navigateBack()}};return i((()=>{if(t("log","at pages/addstaff/IDcard.vue:407","11",uni.getStorageSync("backhuancun")),uni.getStorageSync("backhuancun").name){let e=uni.getStorageSync("backhuancun");m[0]=e.name,m[1]=e.sex,m[2]=e.idCard,m[3]=e.national,m[4]=e.birthDate,m[5]=e.idCardAddress,m[6]=e.issuingAuthority,m[7]=`${e.startTime}-${e.endTime}`,N.value=`${s}/sys/common/static/${e.cardZmPath}`,V.value=`${s}/sys/common/static/${e.cardFmPath}`,p.value=e.cardZmPath,g.value=e.cardFmPath}else if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");m[0]=e.name,m[1]=e.sex,m[2]=e.idCard,m[3]=e.national,m[4]=e.birthDate,m[5]=e.idCardAddress,m[6]=e.issuingAuthority,m[7]=`${e.startTime}-${e.endTime}`,N.value=`${s}/sys/common/static/${e.cardZmPath}`,V.value=`${s}/sys/common/static/${e.cardFmPath}`,p.value=e.cardZmPath,g.value=e.cardFmPath}})),o((()=>{const e=uni.getStorageSync("imgkey0");var t;e&&(t=e,E.value=!1,uni.showLoading(),uni.uploadFile({url:`${s}/api/ocr/idCard`,filePath:t,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{if(!JSON.parse(e.data).success)return uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),void(E.value=!0);if(JSON.parse(JSON.parse(e.data).result.data).data.face){let a=JSON.parse(JSON.parse(e.data).result.data).data.face.data;m[0]=a.name,m[1]=a.sex,m[2]=a.idNumber,m[3]=a.ethnicity,m[4]=a.birthDate,m[5]=a.address,N.value=t,k(t,0)}else if(JSON.parse(JSON.parse(e.data).result.data).data.back){let a=JSON.parse(JSON.parse(e.data).result.data).data.back.data;m[6]=a.issueAuthority,m[7]=a.validPeriod,V.value=t,k(t,1)}else uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:b},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入职登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(必填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[1]||(n[1]=e=>f(0))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value?`${e.unref(s)}/sys/common/static/${p.value}`:"https://www.focusnu.com/media/directive/index/IDfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:p.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:n[2]||(n[2]=e=>f(1))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:g.value?`${e.unref(s)}/sys/common/static/${g.value}`:"https://www.focusnu.com/media/directive/index/IDend.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:g.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>{return t=m[a],void("string"==typeof(n=t)&&n.length>=12&&(c.value=t,l.value=!0));var t,n}},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(m[a]?m[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{style:{color:"#333333"}},"注意事项:"),e.createElementVNode("view",{style:{"margin-top":"30rpx","font-size":"28rpx"}},[e.createElementVNode("view",{class:"line"},"1.同一个身份证号只能认证一个账号。"),e.createElementVNode("view",{class:"line"},"2.国徽与正面信息应为同一身份证的信息且在有效期内。"),e.createElementVNode("view",{class:"line"},"3.所有上传照片需清晰且未遮挡,请勿进行美化和修改。"),e.createElementVNode("view",{class:"line"},"4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。")])]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between"}},[e.createElementVNode("view",{class:"back-button",onClick:b}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:x}," 确认并继续 ")]),e.createVNode(o,{list:d,onClick:h,modelValue:r.value,"onUpdate:modelValue":n[3]||(n[3]=e=>r.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-cdf914be"]]),_e=p({__name:"bankcard",setup(n){const l=e.ref(!1),c=e.ref(""),r=e.ref(!1),d=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],u=["开户行","开户行卡号"],m=e.reactive(["",""]),p=e.ref(""),g=e.ref("");e.ref(0);const h=e=>{e?uni.previewImage({urls:[N.value,V.value],current:w.value?V.value:N.value,indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):y()},v=e.ref(""),w=e.ref(0),f=e=>{E.value&&(w.value=e,t("log","at pages/addstaff/bankcard.vue:150","????",V.value,N.value),V.value&&N.value?r.value=!0:y())};function y(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{v.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0`})},fail:e=>{t("error","at pages/addstaff/bankcard.vue:173","拍照失败:",e)}})}const N=e.ref(""),V=e.ref("");const E=e.ref(!0),k=(e,t)=>{uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:a=>{t?(g.value=JSON.parse(a.data).message,V.value=e):(p.value=JSON.parse(a.data).message,N.value=e),uni.hideLoading(),401==JSON.parse(a.data).code&&uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{t?g.value=JSON.parse(e.data).message:p.value=JSON.parse(e.data).message,E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}})};const x=()=>{if(!E.value)return;let e=uni.getStorageSync("backhuancun");e.openingBank=m[0],e.bankCard=m[1],e.bankZmPath=p.value,e.bankFmPath=g.value,uni.setStorageSync("backhuancun",e),uni.navigateTo({url:"/pages/addstaff/healthcertificate"})},b=()=>{if(E.value){if(m[0]){let e=uni.getStorageSync("backhuancun");e.openingBank=m[0],e.bankCard=m[1],e.bankZmPath=p.value,e.bankFmPath=g.value,uni.setStorageSync("backhuancun",e)}uni.navigateBack()}};return i((()=>{if(uni.getStorageSync("backhuancun").openingBank){let e=uni.getStorageSync("backhuancun");m[0]=e.openingBank,m[1]=e.bankCard,p.value=e.bankZmPath,g.value=e.bankFmPath}else if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");m[0]=e.openingBank,m[1]=e.bankCard,p.value=e.bankZmPath,g.value=e.bankFmPath}})),o((()=>{const e=uni.getStorageSync("imgkey0");var t;e&&(t=e,E.value=!1,uni.showLoading(),uni.uploadFile({url:`${s}/api/ocr/bankCard`,filePath:t,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{if(!JSON.parse(e.data).success)return uni.hideLoading(),void k(t,w.value);if(JSON.parse(JSON.parse(e.data).result.data).data.bankName){let a=JSON.parse(JSON.parse(e.data).result.data).data;m[0]=a.bankName,m[1]=a.cardNumber,k(t,w.value)}else uni.hideLoading(),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:b},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入职登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"银行卡"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[1]||(n[1]=e=>f(0))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"银行卡正面"),e.createElementVNode("view",{class:"photo-font"},"请上传银行卡正面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value?`${e.unref(s)}/sys/common/static/${p.value}`:"https://www.focusnu.com/media/directive/index/bankfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:p.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:n[2]||(n[2]=e=>f(1))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"银行卡反面"),e.createElementVNode("view",{class:"photo-font"},"请上传银行卡反面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:g.value?`${e.unref(s)}/sys/common/static/${g.value}`:"https://www.focusnu.com/media/directive/index/bankend.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:g.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认银行卡信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>{return t=m[a],void("string"==typeof(n=t)&&n.length>=12&&(c.value=t,l.value=!0));var t,n}},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(m[a]?m[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between"}},[e.createElementVNode("view",{class:"back-button",onClick:b}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:x}," 确认并继续 ")]),e.createVNode(o,{list:d,onClick:h,modelValue:r.value,"onUpdate:modelValue":n[3]||(n[3]=e=>r.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-3fb66cc1"]]),Ie=p({__name:"healthcertificate",setup(n){const l=e.ref(!1),c=e.ref(""),d=e.reactive(["","","",""]);e.reactive(["","","",""]);const u=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],m=e.ref(!1),p=e.ref(""),g=e.ref(0),h=e=>{f.value&&(g.value=e,d[e]?m.value=!0:w())},v=e=>{e?uni.previewImage({urls:[`${s}/sys/common/static/${d[g.value]}`],indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):w()};function w(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{p.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0&size=1`})},fail:e=>{t("error","at pages/addstaff/healthcertificate.vue:206","拍照失败:",e)}})}e.ref(""),e.ref("");const f=e.ref(!0);e.ref("");const y=()=>{if(!f.value)return;let e=uni.getStorageSync("backhuancun");e.healthZmPath=d[0],e.healthFmPath=d[1],e.qualificationPath=d[2],e.noCrimeCertificate=d[3],e.endTime=we(e.endTime),e.orgCode=uni.getStorageSync("changeyuangongorgCode"),uni.setStorageSync("changeyuangongorgCode",""),function(e){return r({url:"/api/employessAdvisiory/saveApiEmployess",method:"post",data:e})}(e).then((e=>{e.success&&N()}))};i((()=>{if(uni.getStorageSync("backhuancun").healthZmPath){let e=uni.getStorageSync("backhuancun");d[0]=e.healthZmPath,d[1]=e.healthFmPath,d[2]=e.qualificationPath,d[3]=e.noCrimeCertificate}else if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");d[0]=e.healthZmPath,d[1]=e.healthFmPath,d[2]=e.qualificationPath,d[3]=e.noCrimeCertificate}}));const N=()=>{uni.getStorageSync("nostaffmessage")?M().then((e=>{if(e.success){let t=e.result[0];t={...t,dateOfBirth:t.birthDate,marriedOrNot:t.maritalStatus,address:t.address,emergencyContact:t.contactName,emergencyTel:t.contactTel,emergencyRelationship:t.contactRelationship,hukouNature:t.hukouType,idCardPositive:t.cardZmPath,idCardNegative:t.cardFmPath,healthCertificatePositive:t.healthZmPath,healthCertificateNegative:t.healthFmPath,bankPositive:t.bankZmPath,bankNegative:t.bankFmPath,qualification:t.qualificationPath,noCrimeCertificate:t.noCrimeCertificate,houseAddress:t.idCardAddress,employeeId:t.id,id:null,createTime:null,updateBy:null,updateTime:null,orgCode:uni.getStorageSync("nostaffmessage")},function(e){return r({url:"/api/employessapply/apply",method:"post",data:e})}(t).then((e=>{e.success&&uni.requestSubscribeMessage({tmplIds:["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],success:e=>{uni.setStorageSync("nostaffmessage",""),uni.reLaunch({url:"/pages/addstaff/successpush"})},fail:e=>{uni.setStorageSync("nostaffmessage",""),uni.reLaunch({url:"/pages/addstaff/successpush"}),uni.showToast({title:"订阅失败",icon:"none"})}})}))}})):uni.reLaunch({url:"/pages/addstaff/successpush"})},V=()=>{if(f.value){if(d[0]||d[1]||d[2]||d[3]){let e=uni.getStorageSync("backhuancun");e.healthZmPath=d[0],e.healthFmPath=d[1],e.qualificationPath=d[2],e.noCrimeCertificate=d[3],uni.setStorageSync("backhuancun",e)}uni.navigateBack()}};return o((()=>{const e=uni.getStorageSync("imgkey0");var t;e&&(t=e,f.value=!1,uni.uploadFile({url:`${s}/sys/common/upload`,filePath:t,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{d[g.value]=JSON.parse(e.data).message,f.value=!0,uni.hideLoading()},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:V},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"入职登记表")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"健康证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[1]||(n[1]=e=>h(0))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"健康证正面"),e.createElementVNode("view",{class:"photo-font"},"请上传健康证正面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d[0]?`${e.unref(s)}/sys/common/static/${d[0]}`:"https://www.focusnu.com/media/directive/index/healfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:d[0]?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),d[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"资质证"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[2]||(n[2]=e=>h(2))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"资质证"),e.createElementVNode("view",{class:"photo-font"},"请上传资质证")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d[2]?`${e.unref(s)}/sys/common/static/${d[2]}`:"https://www.focusnu.com/media/directive/index/zizhi.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:d[2]?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),d[2]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"无犯罪证明"),e.createElementVNode("view",{style:{"margin-top":"8rpx","margin-left":"12rpx","font-size":"23rpx"}},"(选填)")]),e.createElementVNode("view",{class:"white-photo",onClick:n[3]||(n[3]=e=>h(3))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"无犯罪证明"),e.createElementVNode("view",{class:"photo-font"},"请上传无犯罪证明")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d[3]?`${e.unref(s)}/sys/common/static/${d[3]}`:"https://www.focusnu.com/media/directive/index/fanzui.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:d[3]?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),d[3]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between","margin-top":"40rpx"}},[e.createElementVNode("view",{class:"back-button",onClick:V}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:y}," 确认 ")]),e.createVNode(o,{list:u,onClick:v,modelValue:m.value,"onUpdate:modelValue":n[4]||(n[4]=e=>m.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-bcd6e7f0"]]),De=p({__name:"successpush",setup(t){e.ref(!1);const a=()=>{u(uni.getStorageSync("openid")).then((e=>{uni.setStorageSync("tel",e.result.tel),uni.setStorageSync("token",e.result.token),uni.setStorageSync("serverUrl",e.result.serverUrl),uni.setStorageSync("platId",e.result.platId),uni.setStorageSync("izJg",e.result.izJg),uni.setStorageSync("izJs",e.result.izJs),uni.setStorageSync("izYg",e.result.izYg),uni.reLaunch({url:"/pages/yuangongindex/index"})}))};return i((()=>{})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"font-father"},[e.createElementVNode("view",{class:"fixed"},[uni.getStorageSync("isstaffchange")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key:0,class:"title-photo",src:"https://www.focusnu.com/media/directive/index/blue111.png"},null,8,["src"])),uni.getStorageSync("isstaffchange")?(e.openBlock(),e.createElementBlock("image",{key:1,class:"title-photo",style:{width:"300rpx",height:"300rpx"},src:"https://www.focusnu.com/media/directive/index/blue222.png"},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{style:{"font-size":"35rpx","font-weight":"600",margin:"50rpx 0"}},e.toDisplayString(uni.getStorageSync("isstaffchange")?"修改":"提交")+"成功 ",1),e.createElementVNode("view",{class:"small-title"},e.toDisplayString(uni.getStorageSync("isstaffchange")?"尊敬的用户,您好!您的个人信息已成功修改":"尊敬的用户,您的员工入驻申请已提交成功"),1),e.createElementVNode("view",{class:"normal"},[e.createElementVNode("text",null,e.toDisplayString(uni.getStorageSync("isstaffchange")?"新设置即刻生效":"欢迎加入护理单元大家庭")+" ! ",1)])]),e.createElementVNode("view",{class:"bottom-button",onClick:a}," 我的机构 ")]))}},[["__scopeId","data-v-fc98f8ec"]]),ze=p({__name:"all",setup(a){const n=e.ref(!1),o=e.ref(""),l=["loading","success","fail"],c=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],r=e.reactive(["","","","","","","",""]),d=e.ref(""),u=e.ref(""),m=["企业名称","注册地址","信用代码","法人"],p=e.reactive(["","","","","","",""]),g=["机构位置","详细地址","机构负责人","机构负责人电话","房屋性质","建筑面积"],h=e.reactive(["","","","","",""]),v=e.ref("");e.ref(""),e.ref("");const w=e.ref(0);function f(e){uni.previewImage({current:e,urls:[e],indicator:"default",loop:!0,longPressActions:{itemList:["保存图片"],success:e=>{t("log","at pages/addjigou/all.vue:174","长按操作成功",e)},fail:e=>{t("error","at pages/addjigou/all.vue:177","长按操作失败",e)}}})}e.ref("");const y=e=>{var t;"string"==typeof(t=e)&&t.length>=12&&(o.value=e,n.value=!0)},N=()=>{uni.navigateBack()},V=e.ref(""),E=e.ref(""),k=e.ref(!1);return i((e=>{e.special&&(k.value=!0),V.value=JSON.parse(e.element);let t=V.value;t.content&&(E.value=t.content),r[0]=t.name,r[1]=t.sex,r[2]=t.idCard,r[3]=t.national,r[4]=t.birthDate,r[5]=t.idCardAddress,r[6]=t.issuingAuthority,r[7]=`${t.startTime}-${we(t.endTime)}`,d.value=`${s}/sys/common/static/${t.cardZmPath}`,v.value=`${s}/sys/common/static/${t.cardFmPath}`,p[0]=t.comName,p[1]=t.comRegisterAddress,p[2]=t.comCreditCode,p[3]=t.comLegalPerson,u.value=`${s}/sys/common/static/${t.comBusinessLicense}`,h[0]=(t.orgProvince_dictText||"")+(null!=t.orgCity_dictText?t.orgCity_dictText:"")+(null!=t.orgDistrict_dictText?t.orgDistrict_dictText:""),h[1]=t.orgAddress,h[2]=t.orgLeader,h[3]=t.orgLeaderPhone,h[4]=t.orgPropertyType,t.orgBuildingArea&&(h[5]=t.orgBuildingArea+"m²")})),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:n.value,onClose:a[0]||(a[0]=e=>n.value=!1),content:o.value},null,8,["show","content"]),e.createElementVNode("image",{class:"greenbgc",src:"https://www.focusnu.com/media/directive/index/greenbgc.png"}),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:N},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"机构加盟")])]),3==w.value||"5"==V.value.status||"3"==V.value.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"contentred"},[e.createElementVNode("view",{class:"contentred-bgc"}," 驳回原因:"+e.toDisplayString(E.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:e.normalizeStyle([k.value?{height:"100rpx"}:{height:"140rpx"},{position:"relative","margin-bottom":"20rpx","z-index":"999"}])},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证"),e.createElementVNode("image",{class:"shu-img",src:k.value?"":`https://www.focusnu.com/media/directive/index/${l[w.value-1]}.png`},null,8,["src"])],4),e.createElementVNode("view",{class:"white-photo",onClick:a[1]||(a[1]=e=>f(d.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:d.value?d.value:"https://www.focusnu.com/media/directive/index/IDcard.png"},null,8,["src"]),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:a[2]||(a[2]=e=>f(v.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:v.value?v.value:"https://www.focusnu.com/media/directive/index/backIDcard.png"},null,8,["src"]),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>y(r[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(r[a]?r[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title",style:{"margin-bottom":"30rpx"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"营业执照")]),e.createElementVNode("view",{class:"white-photo",onClick:a[3]||(a[3]=e=>f(u.value))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"营业执照"),e.createElementVNode("view",{class:"photo-font"},"请上传营业执照")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:u.value?u.value:"https://www.focusnu.com/media/directive/index/zhizhao.png"},null,8,["src"]),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{"margin-top":"30rpx"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"企业信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>y(p[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(p[a]?p[a]:"自动获取"),1)],8,["onClick"]))),64))])]),e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"机构信息")])]),e.createElementVNode("view",{class:"white-content",style:{"margin-top":"0rpx"}},[e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",{style:{"margin-bottom":"20rpx"}},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>y(h[a])},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(h[a]?h[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"40rpx"}})]))}},[["__scopeId","data-v-8a0e2e77"]]),$e=p({__name:"where",setup(n){const l=e.ref([]),c=e.ref(!1),s=e.ref(""),d=e.ref(""),u=e.ref(!1),m=e.ref([]),p=e.ref(!1),g=e.reactive([{value:1,label:"租赁"},{value:2,label:"自由产权"},{value:3,label:"合作使用"},{value:4,label:"其它"}]);function h(e){v.orgPropertyType=e[0].label}const v=e.reactive({orgLeader:"",orgLeaderPhone:"",orgAddress:"",orgPropertyType:"",orgBuildingArea:"",orgCoordinateLo:"",orgCoordinateLa:"",id:uni.getStorageSync("specicalid")||"",tel:uni.getStorageSync("tel"),status:"1"});e.ref(""),e.ref(""),e.ref("");const w=e=>{l.value=function(e,t){const a=Math.max(0,Math.min(t,e.length));return e.slice(0,a)}(l.value,e),e?(m.value=[],E(l.value[0].id).then((e=>{m.value=V(e.result)}))):(m.value=[],E("xzqhdm").then((e=>{m.value=V(e.result)})))};const f=()=>{if(!v.address)return void uni.showToast({title:"请选择机构位置",icon:"error"});if(!v.orgAddress)return void uni.showToast({title:"请填写详细地址",icon:"error"});if(!v.orgLeader)return void uni.showToast({title:"请填写机构负责人",icon:"error"});if(!v.orgLeaderPhone)return void uni.showToast({title:"请填写手机号",icon:"error"});if(e=v.orgLeaderPhone,!/^(\d{11})$/.test(e))return void uni.showToast({title:"手机号格式错误",icon:"error"});if(!v.orgPropertyType)return void uni.showToast({title:"请填写房屋性质",icon:"error"});if(!v.orgBuildingArea)return void uni.showToast({title:"请填写建筑面积",icon:"error"});var e;const a=v.orgLeader&&v.orgLeaderPhone&&v.orgAddress&&v.orgPropertyType&&v.orgBuildingArea&&v.address;let n=uni.getStorageSync("backhuancun");if(n.openId=uni.getStorageSync("openid"),n.address=v.address,n.orgProvince=v.orgProvince,n.orgCity=v.orgCity,n.orgDistrict=v.orgDistrict,n.orgAddress=v.orgAddress,n.orgLeader=v.orgLeader,n.orgLeaderPhone=v.orgLeaderPhone,n.orgPropertyType=v.orgPropertyType,n.orgBuildingArea=v.orgBuildingArea,null===n.id?n.status="4":n.status=v.status,uni.setStorageSync("backhuancun",n),a){let e=uni.getStorageSync("backhuancun");e.endTime=we(e.endTime),uni.setStorageSync("backhuancun",e),function(e){return r({url:"/api/orgApplyInfo/save",method:"post",data:e})}(uni.getStorageSync("backhuancun")).then((e=>{e.success?uni.requestSubscribeMessage({tmplIds:["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],success:e=>{uni.setStorageSync("specicalid",""),uni.reLaunch({url:`/pages/login/specialsmall?type=1&special=${null===uni.getStorageSync("backhuancun").id}`})},fail:e=>{t("error","at pages/addjigou/where.vue:308","订阅接口调用失败:",e),uni.showToast({title:"订阅失败",icon:"none"})}}):uni.showToast({title:e.message,icon:"error"})}))}else uni.showToast({title:"请完善信息",icon:"error"})},y=()=>{if(v.address){let e=uni.getStorageSync("backhuancun");e.address=v.address,e.orgProvince=v.orgProvince,e.orgCity=v.orgCity,e.orgDistrict=v.orgDistrict,e.orgAddress=v.orgAddress,e.orgLeader=v.orgLeader,e.orgLeaderPhone=v.orgLeaderPhone,e.orgPropertyType=v.orgPropertyType,e.orgBuildingArea=v.orgBuildingArea,uni.setStorageSync("backhuancun",e)}uni.navigateBack()},N=()=>{u.value=!0};function V(e){const t=new Set;return e.map((e=>{const a=e.firstLetter;return!a||t.has(a)?{...e,firstLetter:""}:(t.add(a),e)}))}function k(){const t=v.orgBuildingArea,a=t.indexOf("."),n=t.lastIndexOf(".");let o=t;if(a!==n&&(o=t.slice(0,n)),o.includes(".")){const[e,t]=o.split(".");o=e+"."+t.slice(0,4)}o!==t&&e.nextTick((()=>{v.orgBuildingArea=o}))}return o((()=>{const e=uni.getStorageSync("dingwei");e&&(t("log","at pages/addjigou/where.vue:392","data",e),d.value=e.name,v.orgAddress=e.name,v.orgCoordinateLo=e.lng,v.orgCoordinateLa=e.lat,uni.removeStorageSync("dingwei"))})),i((()=>{if(E("xzqhdm").then((e=>{m.value=V(e.result)})),uni.getStorageSync("backhuancun").address){let e=uni.getStorageSync("backhuancun");v.address=e.address,v.orgProvince=e.orgProvince,v.orgCity=e.orgCity,v.orgDistrict=e.orgDistrict,v.orgAddress=e.orgAddress,v.orgLeader=e.orgLeader,v.orgLeaderPhone=e.orgLeaderPhone,v.orgPropertyType=e.orgPropertyType,v.orgBuildingArea=e.orgBuildingArea}else if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");e.orgProvince_dictText&&(v.address=e.orgProvince_dictText+(null!=e.orgCity_dictText?e.orgCity_dictText:"")+(null!=e.orgDistrict_dictText?e.orgDistrict_dictText:"")),v.orgProvince=e.orgProvince,v.orgCity=e.orgCity,v.orgDistrict=e.orgDistrict,v.orgAddress=e.orgAddress,v.orgLeader=e.orgLeader,v.orgLeaderPhone=e.orgLeaderPhone,v.orgPropertyType=e.orgPropertyType,v.orgBuildingArea=e.orgBuildingArea}})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-popup"),j),i=a(e.resolveDynamicComponent("u-select"),Ce);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:c.value,onClose:n[0]||(n[0]=e=>c.value=!1),content:s.value},null,8,["show","content"]),e.createVNode(o,{modelValue:u.value,"onUpdate:modelValue":n[1]||(n[1]=e=>u.value=e),mode:"bottom","border-radius":"40",height:"600px"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-father"},[e.createElementVNode("view",{class:"popup-title"},[e.createElementVNode("view",{class:"all-bgc",style:{display:"flex","justify-content":"center","align-items":"center",height:"180rpx",width:"100%",position:"relative"}},[e.createElementVNode("view",{class:"title-font"}," 请选择所在地区 "),e.createElementVNode("image",{class:"title-imge-title",src:"https://www.focusnu.com/media/directive/index/mark.png"})]),e.createElementVNode("view",{style:{display:"flex"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"button-father",style:e.normalizeStyle(a==l.value.length-1?{backgroundColor:"rgb(222, 233, 251)",color:"rgb(6, 122, 233)"}:{}),onClick:e=>w(a)},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("image",{class:"title-imge",src:`https://www.focusnu.com/media/directive/index/workjoin/${a==l.value.length-1?"x":"redcha"}.png`},null,8,["src"])],12,["onClick"])))),256))])]),e.createElementVNode("view",{style:{height:"180rpx",width:"100%"}}),l.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,style:{height:"80rpx",width:"100%"}})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"other-title"}," 选择地区 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,onClick:e=>{return a=t,void(l.value.length<3&&(m.value=[],l.value.push(a),E(a.id).then((e=>{e.result.length?m.value=V(e.result):(u.value=!1,v.address="",l.value.forEach((e=>{v.address+=e.name})),["orgProvince","orgCity","orgDistrict"].forEach(((e,t)=>{var a,n;v[e]=(null==(a=l.value[t])?void 0:a.id)?null==(n=l.value[t])?void 0:n.id:""})),l.value=[],m.value=[],E("xzqhdm").then((e=>{m.value=V(e.result)})))}))));var a}},[e.createElementVNode("view",{class:"cards"},[e.createElementVNode("view",{class:"zimu"},e.toDisplayString(t.firstLetter),1),e.createElementVNode("view",{class:"font"},e.toDisplayString(t.name),1)])],8,["onClick"])))),128))])])),_:1},8,["modelValue"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:y},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"机构信息")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"机构信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",{onClick:N},[e.createElementVNode("view",{class:"one",style:{position:"relative"}},[e.createElementVNode("view",{class:"one-left"},"机构位置"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择机构位置","onUpdate:modelValue":n[2]||(n[2]=e=>v.address=e)},null,512),[[e.vModelText,v.address]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"one",style:{overflow:"hidden"}},[e.createElementVNode("view",{class:"one-left"},"详细地址"),e.withDirectives(e.createElementVNode("input",{class:"one-right",placeholder:"请输入详细地址","onUpdate:modelValue":n[3]||(n[3]=e=>v.orgAddress=e)},null,512),[[e.vModelText,v.orgAddress]])])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"机构负责人"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"text",placeholder:"请输入机构负责人姓名","onUpdate:modelValue":n[4]||(n[4]=e=>v.orgLeader=e)},null,512),[[e.vModelText,v.orgLeader]])])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"one"},[e.createElementVNode("view",{class:"one-left"},"机构负责人电话"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"number",maxlength:"11",placeholder:"请输入机构负责人电话","onUpdate:modelValue":n[5]||(n[5]=e=>v.orgLeaderPhone=e)},null,512),[[e.vModelText,v.orgLeaderPhone]])])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"one",style:{position:"relative"},onClick:n[7]||(n[7]=e=>p.value=!0)},[e.createElementVNode("view",{class:"one-left"},"房屋性质"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{cursor:"not-allowed","pointer-events":"none"},class:"one-right",type:"text",placeholder:"请选择房屋性质","onUpdate:modelValue":n[6]||(n[6]=e=>v.orgPropertyType=e)},null,512),[[e.vModelText,v.orgPropertyType]]),e.createElementVNode("image",{class:"triangle-down",src:"https://www.focusnu.com/media/directive/login/xia.png"})])]),e.createVNode(i,{style:{"font-size":"35rpx"},modelValue:p.value,"onUpdate:modelValue":n[8]||(n[8]=e=>p.value=e),list:g,onConfirm:h},null,8,["modelValue","list"]),e.createElementVNode("view",{style:{"margin-bottom":"20rpx"}},[e.createElementVNode("view",{class:"one",style:{position:"relative"}},[e.createElementVNode("view",{class:"one-left"},"建筑面积"),e.withDirectives(e.createElementVNode("input",{class:"one-right",type:"digit",placeholder:"请输入建筑面积","onUpdate:modelValue":n[9]||(n[9]=e=>v.orgBuildingArea=e),onInput:k},null,544),[[e.vModelText,v.orgBuildingArea]]),e.createElementVNode("view",{class:"triangle-down-mi"}," m² ")])])])]),e.createElementVNode("view",{style:{display:"flex",width:"100%","margin-top":"10rpx",padding:"0 10%","justify-content":"space-between"}},[e.createElementVNode("view",{class:"back-button",onClick:y}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:f}," 确认并提交 ")])])}}},[["__scopeId","data-v-0cc50279"]]),Pe=p({__name:"name",setup(n){const l=e.ref(!1),c=e.ref(""),r=e.ref(!1),d=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],u=["姓名","性别","身份证号码","民族","出生日期","住址","签发机关","有效期限"],m=e.reactive(["","","","","","","",""]),p=e.ref(""),g=e.ref("");e.ref(0);const h=e=>{e?uni.previewImage({urls:[N.value,V.value],current:w.value?V.value:N.value,indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):y()},v=e.ref(""),w=e.ref(0),f=e=>{E.value&&(V.value&&N.value?(w.value=e,r.value=!0):y())};function y(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{v.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0`})},fail:e=>{t("error","at pages/addjigou/name.vue:173","拍照失败:",e)}})}const N=e.ref(""),V=e.ref("");const E=e.ref(!0),k=(e,t)=>{uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:a=>{t?g.value=JSON.parse(a.data).message:p.value=JSON.parse(a.data).message,uni.hideLoading(),401==JSON.parse(a.data).code&&uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{t?g.value=JSON.parse(e.data).message:p.value=JSON.parse(e.data).message,E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}})};const x=()=>{if(!p.value)return void uni.showToast({title:"请上传身份证正面",icon:"error"});if(!g.value)return void uni.showToast({title:"请上传身份证背面",icon:"error"});const e=m.every((e=>""!==e));if(E.value)if(e){const e=m[7],[t,a]=e.split("-");let n=uni.getStorageSync("backhuancun");n.tel=uni.getStorageSync("tel"),n.name=m[0],n.sex=m[1],n.idCard=m[2],n.national=m[3],n.birthDate=m[4],n.idCardAddress=m[5],n.issuingAuthority=m[6],n.startTime=t,n.endTime=a,n.cardZmPath=p.value,n.cardFmPath=g.value,uni.setStorageSync("backhuancun",n),uni.navigateTo({url:"/pages/addjigou/card"})}else uni.showToast({title:"请上传清晰的身份证",icon:"error"})},b=()=>{uni.navigateBack()};return i((()=>{if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");m[0]=e.name,m[1]=e.sex,m[2]=e.idCard,m[3]=e.national,m[4]=e.birthDate,m[5]=e.idCardAddress,m[6]=e.issuingAuthority,m[7]=`${e.startTime}-${e.endTime}`,N.value=`${s}/sys/common/static/${e.cardZmPath}`,V.value=`${s}/sys/common/static/${e.cardFmPath}`,p.value=e.cardZmPath,g.value=e.cardFmPath}})),o((()=>{const e=uni.getStorageSync("imgkey0");var a;e&&(a=e,E.value=!1,uni.showLoading(),uni.uploadFile({url:`${s}/api/ocr/idCard`,filePath:a,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{if(t("log","at pages/addjigou/name.vue:211","token",uni.getStorageSync("token")),!JSON.parse(e.data).success)return uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),void(E.value=!0);if(JSON.parse(JSON.parse(e.data).result.data).data.face){let t=JSON.parse(JSON.parse(e.data).result.data).data.face.data;m[0]=t.name,m[1]=t.sex,m[2]=t.idNumber,m[3]=t.ethnicity,m[4]=t.birthDate,m[5]=t.address,N.value=a,k(a,0)}else if(JSON.parse(JSON.parse(e.data).result.data).data.back){let t=JSON.parse(JSON.parse(e.data).result.data).data.back.data;m[6]=t.issueAuthority,m[7]=t.validPeriod,V.value=a,k(a,1)}else uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),E.value=!0},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:b},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"身份证")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"身份证")]),e.createElementVNode("view",{class:"white-photo",onClick:n[1]||(n[1]=e=>f(0))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"人像面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证人像面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:p.value?`${e.unref(s)}/sys/common/static/${p.value}`:"https://www.focusnu.com/media/directive/index/IDfront.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:p.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"white-photo",style:{"margin-top":"30rpx"},onClick:n[2]||(n[2]=e=>f(1))},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"国徽面"),e.createElementVNode("view",{class:"photo-font"},"请上传身份证国徽面")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:g.value?`${e.unref(s)}/sys/common/static/${g.value}`:"https://www.focusnu.com/media/directive/index/IDend.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:g.value?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title",style:{margin:"20rpx 0"}},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"确认身份证信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>{return t=m[a],void("string"==typeof(n=t)&&n.length>=12&&(c.value=t,l.value=!0));var t,n}},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(m[a]?m[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{style:{color:"#333333"}},"注意事项:"),e.createElementVNode("view",{style:{"margin-top":"30rpx","font-size":"28rpx"}},[e.createElementVNode("view",{class:"line"},"1.同一个身份证号只能认证一个账号。"),e.createElementVNode("view",{class:"line"},"2.国徽与正面信息应为同一身份证的信息且在有效期内。"),e.createElementVNode("view",{class:"line"},"3.所有上传照片需清晰且未遮挡,请勿进行美化和修改。"),e.createElementVNode("view",{class:"line"},"4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。")])]),e.createElementVNode("view",{style:{display:"flex",width:"100%"}},[e.createElementVNode("view",{class:"finish-button",onClick:x}," 确认并继续 ")]),e.createVNode(o,{list:d,onClick:h,modelValue:r.value,"onUpdate:modelValue":n[3]||(n[3]=e=>r.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-ba84f266"]]),Ae=p({__name:"card",setup(n){const l=e.ref(!1),c=e.ref(""),r=["企业名称","注册地址","信用代码","法人"],d=e.reactive(["","","",""]),u=[{text:"拍摄图片",fontSize:40},{text:"图片预览",fontSize:40}],m=e.ref(!1),p=e.ref(""),g=e=>{f.value&&(w.value?m.value=!0:v())},h=e=>{e?uni.previewImage({urls:[w.value],current:w.value,indicator:"default",longPressActions:{itemList:["保存图片到相册"]}}):v()};function v(){uni.chooseImage({count:1,sourceType:["album","camera"],success:e=>{p.value=e.tempFilePaths[0],uni.navigateTo({url:`/compontent/public/camera?url=${e.tempFilePaths[0]}&type=0&size=1`})},fail:e=>{t("error","at pages/addjigou/card.vue:141","拍照失败:",e)}})}const w=e.ref("");e.ref("");const f=e.ref(!0);const y=e.ref(""),N=e=>{uni.uploadFile({url:`${s}/sys/common/upload`,filePath:e,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{biz:"temp"},success:e=>{y.value=JSON.parse(e.data).message,f.value=!0,uni.hideLoading()},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),uni.hideLoading()}})};const V=()=>{if(!f.value)return;if(d[0]&&d[1]&&d[2]&&d[3]&&y.value){let e=uni.getStorageSync("backhuancun");e.comName=d[0],e.comRegisterAddress=d[1],e.comCreditCode=d[2],e.comLegalPerson=d[3],e.comBusinessLicense=y.value,uni.setStorageSync("backhuancun",e),uni.navigateTo({url:"/pages/addjigou/where"})}else uni.showToast({title:"请上传清晰的营业执照",icon:"error"})};i((()=>{if(uni.getStorageSync("backhuancun").comName){let e=uni.getStorageSync("backhuancun");e.comName&&(d[0]=e.comName,d[1]=e.comRegisterAddress,d[2]=e.comCreditCode,d[3]=e.comLegalPerson,e.comBusinessLicense&&(w.value=`${s}/sys/common/static/${e.comBusinessLicense}`,y.value=e.comBusinessLicense))}else if(uni.getStorageSync("baddata")){let e=uni.getStorageSync("baddata");if(e.comName){d[0]=e.comName,d[1]=e.comRegisterAddress,d[2]=e.comCreditCode,d[3]=e.comLegalPerson,uni.getStorageSync("backhuancun").comName=e.id,uni.setStorageSync("backhuancun",e),e.comBusinessLicense&&(w.value=`${s}/sys/common/static/${e.comBusinessLicense}`,y.value=e.comBusinessLicense)}}}));const E=()=>{if(f.value){if(d[0]){let e=uni.getStorageSync("backhuancun");e.comName=d[0],e.comRegisterAddress=d[1],e.comCreditCode=d[2],e.comLegalPerson=d[3],e.comBusinessLicense=y.value,uni.setStorageSync("backhuancun",e)}uni.navigateBack()}};return o((()=>{const e=uni.getStorageSync("imgkey0");var t;e&&(t=e,f.value=!1,uni.showLoading(),uni.uploadFile({url:`${s}/api/ocr/businessLicense`,filePath:t,name:"file",header:{"X-Access-Token":uni.getStorageSync("token")||""},formData:{},success:e=>{if(!JSON.parse(e.data).success)return uni.hideLoading(),uni.showToast({title:"识别失败",icon:"error",duration:2e3}),void(f.value=!0);if(JSON.parse(JSON.parse(e.data).result.data).data.companyName){let a=JSON.parse(JSON.parse(e.data).result.data).data;d[0]=a.companyName,d[1]=a.businessAddress,d[2]=a.creditCode,d[3]=a.legalPerson,w.value=t,N(t)}else uni.showToast({title:"识别失败",icon:"error",duration:2e3}),f.value=!0,uni.hideLoading()},fail:e=>{uni.showToast({title:"上传出错",icon:"error"}),f.value=!0,uni.hideLoading()}}),uni.removeStorageSync("imgkey0"))})),(t,n)=>{const o=a(e.resolveDynamicComponent("u-action-sheet"),ke);return e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createVNode(z,{show:l.value,onClose:n[0]||(n[0]=e=>l.value=!1),content:c.value},null,8,["show","content"]),e.createElementVNode("view",{class:"title-back"},[e.createElementVNode("view",{class:"left-father",onClick:E},[e.createElementVNode("image",{class:"back-img",src:"https://www.focusnu.com/media/directive/index/left.png"}),e.createElementVNode("view",{style:{"font-size":"30rpx"}},"营业执照")])]),e.createElementVNode("view",{class:"white-content"},[e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"营业执照")]),e.createElementVNode("view",{class:"white-photo",onClick:g},[e.createElementVNode("view",{class:"photo-left"},[e.createElementVNode("view",{class:"photo-weight"},"营业执照"),e.createElementVNode("view",{class:"photo-font"},"请上传营业执照")]),e.createElementVNode("view",{style:{position:"relative"}},[e.createElementVNode("image",{class:"photo",src:w.value?w.value:"https://www.focusnu.com/media/directive/index/yingye.png"},null,8,["src"]),e.createElementVNode("image",{style:{width:"100%",height:"100%",top:"0",left:"0","z-index":"1",position:"absolute"},src:t.endphoto?"":"https://www.focusnu.com/media/directive/index/bian.png"},null,8,["src"]),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("image",{key: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"}))])]),e.createElementVNode("view",{class:"content-title"},[e.createElementVNode("view",{class:"shu"}),e.createElementVNode("view",{class:"content-weight"},"企业信息")]),e.createElementVNode("view",{class:"white-message"},[e.createElementVNode("view",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,((t,a)=>e.createElementVNode("view",{key:a,class:"one",onClick:e=>{return t=d[a],void("string"==typeof(n=t)&&n.length>=12&&(c.value=t,l.value=!0));var t,n}},[e.createElementVNode("view",{class:"one-left"},e.toDisplayString(t),1),e.createElementVNode("view",{class:"one-right"},e.toDisplayString(d[a]?d[a]:"自动获取"),1)],8,["onClick"]))),64))])])]),e.createElementVNode("view",{class:"gray-font"},[e.createElementVNode("view",{style:{color:"#333333","margin-bottom":"30rpx"}},"注意事项:"),e.createElementVNode("view",{class:"gray-text"}," 1. 运用企业、个体工商户、政府、事业单位、学校、组织等,账号归属企业。 "),e.createElementVNode("view",{class:"gray-text"}," 2.一个企业信息主体默认可认证1个账号。 "),e.createElementVNode("view",{class:"gray-text"}," 3.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给其他第三方。 ")]),e.createElementVNode("view",{style:{display:"flex",width:"100%",padding:"0 10%","justify-content":"space-between"}},[e.createElementVNode("view",{class:"back-button",onClick:E}," 返回上一步 "),e.createElementVNode("view",{class:"finish-button",onClick:V}," 确认并继续 ")]),e.createVNode(o,{list:u,onClick:h,modelValue:m.value,"onUpdate:modelValue":n[1]||(n[1]=e=>m.value=e)},null,8,["modelValue"])])}}},[["__scopeId","data-v-1b8277e6"]]),Le=p({__name:"index",setup(a){const n=e.ref(""),o=e.ref(!1),i=e.ref("");e.ref({timeStamp:"1747983532",package:"prepay_id=wx23145806465232c82870c59d2d41cf0000",paySign:"0pUqj2JZ77BYchyJuthQyP4yRfqhjvwag78Q4IMnIyQ3/OQP6OyJreZfmj0GFSEMrRsKAHIdBBM7tVnot0aaRhI5qwSOWpzyvJCkYa4eqPgqlV4XYVMqE3zeB/Cx4C9bv4poMXnaGlfFPdkhMYbUcdtsw4gBXXhqUx//9x7eu9cOERRzLquM8Z8rewRpar/kkVKSCV6h8pX19kRj+KEkK5LZB8IUIG995g1lsVFOqdO4mVFBJ1wZCkwJczgVI+jdNGgnR2lpdjwIpJFm+5Hm0y9SwR0UFvgkm95NrmY+Sruty/Zf8ekQwF4+atubW8CE6i8wm2zZpMEnnfS4WFwAwg==",appId:"wx8fc3e4305d2fbf0b",signType:"RSA",nonceStr:"DxpF2uIMl0VM7vPOG7pWnPHk2Dvi3V7K"});const l=()=>{const e={title:"测试订单",openId:s.value,amountPrice:n.value,orgCode:"组织id",nursingUnit:"护理单元id",customerId:"顾客id",orderType:"订单类型",price:1,count:1,unit:"单位"};t("log","at pages/pay/index.vue:77","???/",e),fetch("https://www.focusnu.com/nursingunit_0010507/weiXinPay/native",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{e.appId?function(e){const t=()=>{window.WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},(function(e){o.value=!1,"get_brand_wcpay_request:ok"===e.err_msg?i.value="支付成功":i.value="支付失败或取消"}))};void 0===window.WeixinJSBridge?document.addEventListener("WeixinJSBridgeReady",t,!1):t()}(e):uni.showToast({title:"支付失败",icon:"error"})})).catch((e=>{t("error","at pages/pay/index.vue:97","请求失败:",e)}))},c=e.ref(""),s=e.ref("");function r(){n.value&&(o.value=!0,i.value="拉起微信支付...",uni.getStorage({key:"serverUrl",success:function(e){t("log","at pages/pay/index.vue:109","读取缓存:",e.data.url),c.value=e.data.url}}),uni.getStorage({key:"openid",success:function(e){t("log","at pages/pay/index.vue:117","读取缓存:",e.data.openid),s.value=e.data.openid}}),l())}return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"container"},[e.createElementVNode("div",{class:"input-group"},[e.withDirectives(e.createElementVNode("input",{type:"number","onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),placeholder:"请输入金额",class:"amount-input"},null,512),[[e.vModelText,n.value]]),e.createElementVNode("button",{onClick:r,disabled:o.value||!n.value,class:"pay-btn"}," 支付 ",8,["disabled"])]),i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-group"},[e.createElementVNode("p",null,e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-cb978398"]]),Fe=e=>{(e.$renderjs||(e.$renderjs=[])).push("cropper"),(e.$renderjsModules||(e.$renderjsModules={})).cropper="c0c7256a"},je=300,Oe={name:"qf-image-cropper",props:{src:{type:String,default:""},width:{type:Number,default:je},height:{type:Number,default:je},showBorder:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},showAngle:{type:Boolean,default:!0},areaScale:{type:Number,default:.3},minScale:{type:Number,default:.3},maxScale:{type:Number,default:2},checkRange:{type:Boolean,default:!1},backgroundColor:{type:String},bounce:{type:Boolean,default:!0},rotatable:{type:Boolean,default:!0},reverseRotatable:{type:Boolean,default:!1},choosable:{type:Boolean,default:!0},gpu:{type:Boolean,default:!1},angleSize:{type:Number,default:20},angleBorderWidth:{type:Number,default:2},zIndex:{type:[Number,String]},radius:{type:Number,default:60},fileType:{type:String,default:"png"},delay:{type:Number,default:1e3}},emits:["crop"],data:()=>({maskList:[{id:"crop-mask-block-1"},{id:"crop-mask-block-2"},{id:"crop-mask-block-3"},{id:"crop-mask-block-4"}],gridList:[{id:"crop-grid-1"},{id:"crop-grid-2"},{id:"crop-grid-3"},{id:"crop-grid-4"}],angleList:[{id:"crop-angle-1"},{id:"crop-angle-2"},{id:"crop-angle-3"},{id:"crop-angle-4"}],imgSrc:"",imgWidth:je,imgHeight:je,widthPercent:75,heightPercent:75,area:{},oldWidth:0,oldHeight:0,sys:uni.getSystemInfoSync(),scaleWidth:0,scaleHeight:0,rotate:0,offsetX:0,offsetY:0,use2d:!1,canvansWidth:0,canvansHeight:0}),computed:{initData(){return{timestamp:(new Date).getTime(),area:{...this.area,bounce:this.bounce,showBorder:this.showBorder,showGrid:this.showGrid,showAngle:this.showAngle,angleSize:this.angleSize,angleBorderWidth:this.angleBorderWidth,minScale:this.areaScale,widthPercent:this.widthPercent,heightPercent:this.heightPercent,radius:this.radius,checkRange:this.checkRange,zIndex:+this.zIndex||0},sys:this.sys,img:{minScale:this.minScale,maxScale:this.maxScale,src:this.imgSrc,width:this.oldWidth,height:this.oldHeight,oldWidth:this.oldWidth,oldHeight:this.oldHeight,gpu:this.gpu}}},imgProps(){return{width:this.width,height:this.height,src:this.src}}},watch:{imgProps:{handler(e,t){this.imgWidth=Number(e.width)||je,this.imgHeight=Number(e.height)||je;let a=!0;a=!1;let n=this.imgWidth,o=this.imgHeight,i=Math.max(n,o),l=1;i>1365&&(l=1365/i),this.canvansWidth=n*l,this.canvansHeight=o*l,this.use2d=false,this.initArea();const c=e.src||this.imgSrc;c&&this.initImage(c,void 0===t)},immediate:!0}},methods:{dataChange(e){this.scaleWidth=e.width,this.scaleHeight=e.height,this.rotate=e.rotate,this.offsetX=e.x,this.offsetY=e.y},initArea(){this.sys.offsetBottom=uni.upx2px(100)+this.sys.safeAreaInsets.bottom,this.sys.windowTop=0,this.sys.navigation=!0;let e=this.widthPercent,t=this.heightPercent;this.imgWidth>this.imgHeight?t=t*this.imgHeight/this.imgWidth:this.imgWidththis.sys.windowHeight?this.sys.windowHeight:this.sys.windowWidth,n=a*e/100,o=a*t/100,i=(this.sys.windowWidth-n)/2,l=i+n,c=(this.sys.windowHeight+this.sys.windowTop-this.sys.offsetBottom-o)/2,s=this.sys.windowHeight+this.sys.windowTop-this.sys.offsetBottom-c;this.area={width:n,height:o,left:i,right:l,top:c,bottom:s},this.scaleWidth=n,this.scaleHeight=o},chooseImage(e){uni.chooseImage({...e,count:1,success:e=>{this.resetData(),this.initImage(e.tempFiles[0].path)}})},resetData(){this.imgSrc="",this.rotate=0,this.offsetX=0,this.offsetY=0,this.initArea()},initImage(e,a){uni.getImageInfo({src:e,success:async t=>{a&&this.src===e&&await new Promise((e=>setTimeout(e,50))),this.imgSrc=t.path;let n=t.width/t.height,o=this.area.width/this.area.height;n>1?n>=o?this.scaleWidth=this.scaleHeight/t.height*this.scaleWidth*(t.width/this.scaleWidth):this.scaleHeight=t.height*this.scaleWidth/t.width:n<=o?this.scaleHeight=this.scaleWidth/t.width*this.scaleHeight/(this.scaleHeight/t.height):this.scaleWidth=t.width*this.scaleHeight/t.height,this.oldWidth=+this.scaleWidth.toFixed(2),this.oldHeight=+this.scaleHeight.toFixed(2)},fail:e=>{t("error","at uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue:493",e)}})},drawClipImage(e,t,a,n){if(t>0){e.save(),e.beginPath();const a=this.canvansWidth,o=this.canvansHeight;a===o&&t>=a/2?e.arc(a/2,o/2,a/2,0,2*Math.PI):(a!==o&&(t=Math.min(a/2,o/2,t)),e.moveTo(t,0),e.arcTo(a,0,a,o,t),e.arcTo(a,o,0,o,t),e.arcTo(0,o,0,0,t),e.arcTo(0,0,a,0,t),e.closePath()),e.clip(),n&&n(!0),e.restore()}else n&&n(!1)},drawRotateImage(e,t,a){if(0!==t){const n=this.scaleWidth*a/2,o=this.scaleHeight*a/2;e.translate(n,o),e.rotate(t*Math.PI/180),e.translate(-n,-o)}},drawImage(e,t,a){const n=this.canvansWidth/this.area.width;this.backgroundColor&&(e.setFillStyle?e.setFillStyle(this.backgroundColor):e.fillStyle=this.backgroundColor,e.fillRect(0,0,this.canvansWidth,this.canvansHeight)),this.drawClipImage(e,this.radius,n,(()=>{this.drawRotateImage(e,this.rotate,n);const a=this.rotate/90;e.drawImage(t,[this.offsetX-this.area.left,this.offsetY-this.area.top,-(this.offsetX-this.area.left),-(this.offsetY-this.area.top)][a]*n,[this.offsetY-this.area.top,-(this.offsetX-this.area.left),-(this.offsetY-this.area.top),this.offsetX-this.area.left][a]*n,this.scaleWidth*n,this.scaleHeight*n)}))},draw2DImage(e,a,n,o){if(e){const i=e.createImage();i.onload=()=>{this.drawImage(a,i),o&&setTimeout(o,this.delay)},i.onerror=e=>{t("error","at uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue:596",e),uni.hideLoading()},i.src=n}else this.drawImage(a,n),setTimeout((()=>{a.draw(!1,o)}),200)},canvasToTempFilePath(e,t){uni.canvasToTempFilePath({canvas:e,canvasId:t,x:0,y:0,width:this.canvansWidth,height:this.canvansHeight,destWidth:this.imgWidth,destHeight:this.imgHeight,fileType:this.fileType,success:e=>{this.handleImage(e.tempFilePath)},fail:e=>{uni.hideLoading(),uni.showToast({title:"裁剪失败,生成图片异常!",icon:"none"})}},this)},cropClick(){if(uni.showLoading({title:"裁剪中...",mask:!0}),!this.use2d){const e=uni.createCanvasContext("imgCanvas",this);return e.clearRect(0,0,this.canvansWidth,this.canvansHeight),void this.draw2DImage(null,e,this.imgSrc,(()=>{this.canvasToTempFilePath(null,"imgCanvas")}))}},handleImage(e){uni.hideLoading(),this.$emit("crop",{tempFilePath:e})}}};Fe(Oe);const Ue=p(Oe,[["render",function(t,a,n,o,i,l){return e.openBlock(),e.createElementBlock("view",{class:"image-cropper",style:e.normalizeStyle({zIndex:n.zIndex}),onWheel:a[9]||(a[9]=(...e)=>t.cropper.mousewheel&&t.cropper.mousewheel(...e))},[i.use2d?(e.openBlock(),e.createElementBlock("canvas",{key:0,type:"2d",id:"imgCanvas",class:"img-canvas",style:e.normalizeStyle({width:`${i.canvansWidth}px`,height:`${i.canvansHeight}px`})},null,4)):(e.openBlock(),e.createElementBlock("canvas",{key:1,id:"imgCanvas","canvas-id":"imgCanvas",class:"img-canvas",style:e.normalizeStyle({width:`${i.canvansWidth}px`,height:`${i.canvansHeight}px`})},null,4)),e.createElementVNode("view",{class:"whitefont"},[e.createElementVNode("view",{class:"action-bar-special"},[e.createElementVNode("view",{class:"rotate-icon",onClick:a[0]||(a[0]=()=>{})})]),e.createElementVNode("view",{class:""}," 请调整图片尺寸,放入取景框内 ")]),e.createElementVNode("view",{id:"pic-preview",class:"pic-preview","change:init":t.cropper.initObserver,init:e.wp(l.initData),onTouchstart:a[1]||(a[1]=(...e)=>t.cropper.touchstart&&t.cropper.touchstart(...e)),onTouchmove:a[2]||(a[2]=(...e)=>t.cropper.touchmove&&t.cropper.touchmove(...e)),onTouchend:a[3]||(a[3]=(...e)=>t.cropper.touchend&&t.cropper.touchend(...e))},[i.imgSrc?(e.openBlock(),e.createElementBlock("image",{key:0,id:"crop-image",class:"crop-image",style:e.normalizeStyle(t.cropper.imageStyles),src:i.imgSrc,webp:""},null,12,["src"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.maskList,((a,n)=>(e.openBlock(),e.createElementBlock("view",{key:a.id,id:a.id,class:"crop-mask-block",style:e.normalizeStyle(t.cropper.maskStylesList[n])},null,12,["id"])))),128)),n.showBorder?(e.openBlock(),e.createElementBlock("view",{key:1,id:"crop-border",class:"crop-border"},[e.createElementVNode("view",{class:"border-son"})])):e.createCommentVNode("",!0),n.radius>0?(e.openBlock(),e.createElementBlock("view",{key:2,id:"crop-circle-box",class:"crop-circle-box",style:e.normalizeStyle(t.cropper.circleBoxStyles)},[e.createElementVNode("view",{class:"crop-circle",id:"crop-circle",style:e.normalizeStyle(t.cropper.circleStyles)},null,4)],4)):e.createCommentVNode("",!0),n.showGrid?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(i.gridList,((a,n)=>(e.openBlock(),e.createElementBlock("view",{key:a.id,id:a.id,class:"crop-grid",style:e.normalizeStyle(t.cropper.gridStylesList[n])},null,12,["id"])))),128)):e.createCommentVNode("",!0)],40,["change:init","init"]),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createElementVNode("view",{class:"fixed-bottom safe-area-inset-bottom",style:e.normalizeStyle({zIndex:l.initData.area.zIndex+99})},[(n.rotatable||n.reverseRotatable)&&i.imgSrc?(e.openBlock(),e.createElementBlock("view",{key:0,class:"action-bar"},[n.reverseRotatable?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rotate-icon",onClick:a[4]||(a[4]=(...e)=>t.cropper.rotateImage270&&t.cropper.rotateImage270(...e))})):e.createCommentVNode("",!0),n.rotatable?(e.openBlock(),e.createElementBlock("view",{key:1,class:"rotate-icon is-reverse",onClick:a[5]||(a[5]=(...e)=>t.cropper.rotateImage90&&t.cropper.rotateImage90(...e))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(n.rotatable||n.reverseRotatable)&&i.imgSrc?(e.openBlock(),e.createElementBlock("view",{key:1,class:"action-bar-anther"},[n.reverseRotatable?(e.openBlock(),e.createElementBlock("view",{key:0,class:"rotate-icon",onClick:a[6]||(a[6]=(...e)=>l.chooseImage&&l.chooseImage(...e))})):e.createCommentVNode("",!0),n.rotatable?(e.openBlock(),e.createElementBlock("view",{key:1,class:"rotate-icon is-reverse",onClick:a[7]||(a[7]=(...e)=>l.chooseImage&&l.chooseImage(...e))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(n.rotatable||n.reverseRotatable)&&i.imgSrc?(e.openBlock(),e.createElementBlock("view",{key:2,class:"action-bar-right",onClick:a[8]||(a[8]=(...e)=>l.cropClick&&l.cropClick(...e))}," 确认 ")):e.createCommentVNode("",!0)],4)],36)}],["__scopeId","data-v-01baa887"]]),Re={__name:"camera",setup(t){const a=e.ref(""),n=e.ref(0),o=e.ref(900),l=e.ref(600),c=e=>{uni.setStorageSync(`imgkey${n.value}`,e.tempFilePath),uni.navigateBack()};return i((e=>{a.value=e.url,n.value=e.type,e.size&&(o.value=1500,l.value=1e3)})),(t,n)=>(e.openBlock(),e.createElementBlock("view",null,[e.createVNode(Ue,{src:a.value,width:o.value,height:l.value,radius:10,onCrop:c},null,8,["src","width","height"])]))}};__definePage("pages/login/callback",g),__definePage("pages/login/index",h),__definePage("pages/login/phonebumber",f),__definePage("pages/login/threeselectone",y),__definePage("pages/login/threeselectonespec",N),__definePage("pages/login/workjoin",k),__definePage("pages/login/workjoinsuccess",x),__definePage("pages/login/code",S),__definePage("pages/login/protocol",C),__definePage("pages/login/special",B),__definePage("pages/login/specialsmall",T),__definePage("pages/login/specialloginafther",_),__definePage("pages/login/xuanchuan",I),__definePage("pages/index/index",$),__definePage("pages/index/mine",A),__definePage("pages/yuangongindex/searchjigou",J),__definePage("pages/yuangongindex/workjoin",q),__definePage("pages/yuangongindex/message",W),__definePage("pages/yuangongindex/companyyaoqing",Z),__definePage("pages/yuangongindex/simpleyaoqing",X),__definePage("pages/yuangongindex/company",G),__definePage("pages/yuangongindex/index",K),__definePage("pages/yuangongindex/mine",Q),__definePage("pages/oldmanindex/account",oe),__definePage("pages/oldmanindex/input",ie),__definePage("pages/oldmanindex/protocol",le),__definePage("pages/oldmanindex/oldmansuccess",ce),__definePage("pages/oldmanindex/paysuccess",se),__definePage("pages/oldmanindex/saoyisao",re),__definePage("pages/oldmanindex/saoyisaothen",de),__definePage("pages/oldmanindex/workjoin",ue),__definePage("pages/oldmanindex/moneylist",me),__definePage("pages/oldmanindex/message",pe),__definePage("pages/oldmanindex/index",he),__definePage("pages/addoldman/jianhurenall",ve),__definePage("pages/addoldman/oldmanall",fe),__definePage("pages/oldmanindex/mine",ye),__definePage("pages/addoldman/hukou",Ne),__definePage("pages/addoldman/yibao",Ve),__definePage("pages/addoldman/IDcard",Ee),__definePage("pages/addoldman/oldIDcard",xe),__definePage("pages/selectunit/map",be),__definePage("pages/addstaff/all",Se),__definePage("pages/addstaff/information",Be),__definePage("pages/addstaff/IDcard",Te),__definePage("pages/addstaff/bankcard",_e),__definePage("pages/addstaff/healthcertificate",Ie),__definePage("pages/addstaff/successpush",De),__definePage("pages/addjigou/all",ze),__definePage("pages/addjigou/where",$e),__definePage("pages/addjigou/name",Pe),__definePage("pages/addjigou/card",Ae),__definePage("pages/pay/index",Le),__definePage("compontent/public/camera",Re);const Me={onLaunch:function(){t("log","at App.vue:4","App Launch")},onShow:function(){t("log","at App.vue:7","App Show")},onHide:function(){t("log","at App.vue:10","App Hide")}},Je={data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect(e,t){return new Promise((a=>{uni.createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&a(e),!t&&e&&a(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,e),this.parent&&(Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]})),this.parentData.value=this.parent.modelValue)},preventEvent(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom(){uni.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&uni.$u.test.array(this.parent.children)){const e=this.parent.children;e.map(((t,a)=>{t===this&&e.splice(a,1)}))}}};function qe(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;var t,a=(t=e,"[object Array]"===Object.prototype.toString.call(t)?[]:{});for(let n in e)e.hasOwnProperty(n)&&(a[n]="object"==typeof e[n]?qe(e[n]):e[n]);return a}function We(e={},t={}){if("object"!=typeof(e=qe(e))||"object"!=typeof t)return!1;for(var a in t)t.hasOwnProperty(a)&&(a in e?"object"!=typeof e[a]||"object"!=typeof t[a]?e[a]=t[a]:e[a].concat&&t[a].concat?e[a]=e[a].concat(t[a]):e[a]=We(e[a],t[a]):e[a]=t[a]);return e}function He(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function Ze(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function Xe(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ge(e){return"function"==typeof e}const Ye={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!!e&&(He(e)&&(e=+e),!/Invalid|NaN/.test(new Date(e).toString()))},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:He,digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,a=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?a.test(e):8===e.length&&t.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:Ze,isEmpty:Ze,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(a){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Xe,array:function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:Ge,promise:function(e){return Xe(e)&&Ge(e.then)&&Ge(e.catch)},video:function(e){const t=e.split("?")[0];return new RegExp(/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8|3gp)$/).test(t)},image:function(e){const t=e.split("?")[0];return new RegExp(/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)$/).test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"==typeof e}};const Ke=new class{setConfig(e){this.config=We(this.config,e)}request(e={}){if(this.interceptor.request&&"function"==typeof this.interceptor.request){let t=this.interceptor.request(e);if(!1===t)return new Promise((()=>{}));this.options=t}return e.dataType=e.dataType||this.config.dataType,e.responseType=e.responseType||this.config.responseType,e.url=e.url||"",e.params=e.params||{},e.header=Object.assign({},this.config.header,e.header),e.method=e.method||this.config.method,new Promise(((t,a)=>{e.complete=e=>{if(uni.hideLoading(),clearTimeout(this.config.timer),this.config.timer=null,this.config.originalData)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let n=this.interceptor.response(e);!1!==n?t(n):a(e)}else t(e);else if(200==e.statusCode)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let n=this.interceptor.response(e.data);!1!==n?t(n):a(e.data)}else t(e.data);else a(e)},e.url=Ye.url(e.url)?e.url:this.config.baseUrl+(0==e.url.indexOf("/")?e.url:"/"+e.url),this.config.showLoading&&!this.config.timer&&(this.config.timer=setTimeout((()=>{uni.showLoading({title:this.config.loadingText,mask:this.config.loadingMask}),this.config.timer=null}),this.config.loadingTime)),uni.request(e)}))}constructor(){this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=(e,t={},a={})=>this.request({method:"GET",url:e,header:a,data:t}),this.post=(e,t={},a={})=>this.request({url:e,method:"POST",header:a,data:t}),this.put=(e,t={},a={})=>this.request({url:e,method:"PUT",header:a,data:t}),this.delete=(e,t={},a={})=>this.request({url:e,method:"DELETE",header:a,data:t})}};const Qe=(new class{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let a="";return/.*\/.*\?.*=.*/.test(e)?(a=uni.$u.queryParams(t,!1),e+"&"+a):(a=uni.$u.queryParams(t),e+a)}async route(e={},t={}){let a={};if("string"==typeof e?(a.url=this.mixinParam(e,t),a.type="navigateTo"):(a=uni.$u.deepClone(e,this.config),a.url=this.mixinParam(e.url,e.params)),t.intercept&&(this.config.intercept=t.intercept),a.params=t,a=uni.$u.deepMerge(this.config,a),"function"==typeof uni.$u.routeIntercept){await new Promise(((e,t)=>{uni.$u.routeIntercept(a,e)}))&&this.openPage(a)}else this.openPage(a)}openPage(e){const{url:t,type:a,delta:n,animationType:o,animationDuration:i}=e;"navigateTo"!=e.type&&"to"!=e.type||uni.navigateTo({url:t,animationType:o,animationDuration:i}),"reLaunch"!=e.type&&"redirect"!=e.type||uni.reLaunch({url:t}),"switchTab"!=e.type&&"tab"!=e.type||uni.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||uni.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||uni.navigateBack({delta:n})}}).route;function et(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let a,n=new Date(e),o={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(let i in o)a=new RegExp("("+i+")").exec(t),a&&(t=t.replace(a[1],1==a[1].length?o[i]:o[i].padStart(a[1].length,"0")));return t}function tt(e,t=!0){if((e=e.toLowerCase())&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){let t="#";for(let a=1;a<4;a+=1)t+=e.slice(a,a+1).concat(e.slice(a,a+1));e=t}let a=[];for(let t=1;t<7;t+=2)a.push(parseInt("0x"+e.slice(t,t+2)));return t?`rgb(${a[0]},${a[1]},${a[2]})`:a}if(/^(rgb|RGB)/.test(e)){return e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map((e=>Number(e)))}return e}function at(e){let t=e;if(/^(rgb|RGB)/.test(t)){let e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),a="#";for(let t=0;t=e)return String(a);let n=e-a.length,o=Math.ceil(n/t.length);for(;o>>=1;)t+=t,1===o&&(t+=t);return t.slice(0,n)+a});const nt={colorGradient:function(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",a=10){let n=tt(e,!1),o=n[0],i=n[1],l=n[2],c=tt(t,!1),s=(c[0]-o)/a,r=(c[1]-i)/a,d=(c[2]-l)/a,u=[];for(let m=0;m=0))if(t.constructor===Array)switch(a){case"indices":for(let a=0;a{o.push(i+"[]="+e)}));break;case"repeat":t.forEach((e=>{o.push(i+"="+e)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),o.push(i+"="+e)}else o.push(i+"="+t)}return o.length?n+o.join("&"):""},route:Qe,timeFormat:et,date:et,timeFrom:function(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let a=+new Date(Number(e)),n=(Number(new Date)-a)/1e3,o="";switch(!0){case n<300:o="刚刚";break;case n>=300&&n<3600:o=parseInt(n/60)+"分钟前";break;case n>=3600&&n<86400:o=parseInt(n/3600)+"小时前";break;case n>=86400&&n<2592e3:o=parseInt(n/86400)+"天前";break;default:o=!1===t?n>=2592e3&&n<31536e3?parseInt(n/2592e3)+"个月前":parseInt(n/31536e3)+"年前":et(a,t)}return o},colorGradient:nt.colorGradient,colorToRgba:nt.colorToRgba,guid:function(e=32,t=!0,a=null){let n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(a=a||n.length,e)for(let i=0;iMath.random()-.5))},wranning:function(e){},get:Ke.get,post:Ke.post,put:Ke.put,delete:Ke.delete,hexToRgb:nt.hexToRgb,rgbToHex:nt.rgbToHex,test:Ye,random:function(e,t){if(e>=0&&t>0&&t>=e){let a=t-e+1;return Math.floor(Math.random()*a+e)}return 0},deepClone:qe,deepMerge:We,getParent:function(e,t){let a=this.$parent;for(;a;){if(a.$options.name===e){let e={};if(Array.isArray(t))t.map((t=>{e[t]=a[t]?a[t]:""}));else for(let n in t)Array.isArray(t[n])?t[n].length?e[n]=t[n]:e[n]=a[n]:t[n].constructor===Object?Object.keys(t[n]).length?e[n]=t[n]:e[n]=a[n]:e[n]=t[n]||!1===t[n]?t[n]:a[n];return e}a=a.$parent}return{}},$parent:function(e){let t=this.$parent;for(;t;){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1},addUnit:function(e="auto",t="rpx"){return e=String(e),Ye.number(e)?`${e}${t}`:e},trim:function(e,t="both"){return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e},type:["primary","success","error","warning","info"],http:Ke,toast:function(e,t=1500){uni.showToast({title:e,icon:"none",duration:t})},config:dt,zIndex:{toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965},debounce:function(e,t=500,a=!1){if(null!==it&&clearTimeout(it),a){var n=!it;it=setTimeout((function(){it=null}),t),n&&"function"==typeof e&&e()}else it=setTimeout((function(){"function"==typeof e&&e()}),t)},throttle:function(e,t=500,a=!0,n="default"){lt[n]||(lt[n]=null),a?ct[n]||(ct[n]=!0,"function"==typeof e&&e(),lt[n]=setTimeout((()=>{ct[n]=!1}),t)):ct[n]||(ct[n]=!0,lt[n]=setTimeout((()=>{ct[n]=!1,"function"==typeof e&&e()}),t))},addStyle:function(e,t="object"){if(Ye.empty(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=st(e)).split(";"),a={};for(let e=0;e{e.mixin(Je),e.config.globalProperties.$u=ut}};const{app:pt,Vuex:gt,Pinia:ht}=function(){const t=e.createVueApp(Me);return t.use(mt),{app:t}}();uni.Vuex=gt,uni.Pinia=ht,pt.provide("__globalStyles",__uniConfig.styles),pt._component.mpType="app",pt._component.render=()=>{},pt.mount("#app")}(Vue);