if (typeof Promise !== "undefined" && !Promise.prototype.finally) { Promise.prototype.finally = function(callback) { const promise = this.constructor; return this.then( (value) => promise.resolve(callback()).then(() => value), (reason) => promise.resolve(callback()).then(() => { throw reason; }) ); }; } ; if (typeof uni !== "undefined" && uni && uni.requireGlobal) { const global = uni.requireGlobal(); ArrayBuffer = global.ArrayBuffer; Int8Array = global.Int8Array; Uint8Array = global.Uint8Array; Uint8ClampedArray = global.Uint8ClampedArray; Int16Array = global.Int16Array; Uint16Array = global.Uint16Array; Int32Array = global.Int32Array; Uint32Array = global.Uint32Array; Float32Array = global.Float32Array; Float64Array = global.Float64Array; BigInt64Array = global.BigInt64Array; BigUint64Array = global.BigUint64Array; } ; if (uni.restoreGlobal) { uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval); } (function(vue) { "use strict"; const ON_SHOW = "onShow"; const ON_LOAD = "onLoad"; const ON_PULL_DOWN_REFRESH = "onPullDownRefresh"; function formatAppLog(type, filename, ...args) { if (uni.__log__) { uni.__log__(type, filename, ...args); } else { console[type].apply(console, [...args, filename]); } } function resolveEasycom(component, easycom) { return typeof component === "string" ? easycom : component; } const createLifeCycleHook = (lifecycle, flag = 0) => (hook, target = vue.getCurrentInstance()) => { !vue.isInSSRComponentSetup && vue.injectHook(lifecycle, hook, target); }; const onShow = /* @__PURE__ */ createLifeCycleHook( ON_SHOW, 1 | 2 /* HookFlags.PAGE */ ); const onLoad = /* @__PURE__ */ createLifeCycleHook( ON_LOAD, 2 /* HookFlags.PAGE */ ); const onPullDownRefresh = /* @__PURE__ */ createLifeCycleHook( ON_PULL_DOWN_REFRESH, 2 /* HookFlags.PAGE */ ); const base_url = "https://www.focusnu.com/opeapi"; const timeout$1 = 5e3; const request = (params) => { let url2 = params.url; let method = params.method || "get"; let data = params.data || {}; let header = { "X-Access-Token": uni.getStorageSync("token") || "", "Content-Type": "application/json;charset=UTF-8", "Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0", ...params.header }; return new Promise((resolve, reject) => { uni.request({ url: base_url + url2, method, header, data, timeout: timeout$1, success(response) { const res = response; if (res.statusCode == 200) { resolve(res.data); } else { uni.clearStorageSync(); switch (res.statusCode) { case 401: uni.showModal({ title: "登录过期", content: "请登录", showCancel: false, success() { setTimeout(() => { uni.navigateTo({ url: "/pages/login/callback" }); }, 1e3); } }); break; case 404: uni.showToast({ title: "请求地址不存在...", duration: 2e3 }); break; default: uni.showToast({ title: "请重试...", duration: 2e3 }); break; } } }, fail(err) { if (err.errMsg.indexOf("request:fail") !== -1) { uni.showToast({ title: "网络异常", icon: "error", duration: 2e3 }); } else { uni.showToast({ title: "未知异常", duration: 2e3 }); } reject(err); } }); }).catch(() => { }); }; function getHkCode(data) { return request({ url: `/sys/getHkCode`, method: "post", data }); } function smsCode(data) { return request({ url: `/sys/smsCode`, method: "post", data }); } function checkPhoneCode(data) { return request({ url: `/sys/checkPhoneCode`, method: "post", data }); } function getOpenid(code2) { return request({ url: `/weixin/wechat/callback?code=${code2}`, method: "get" }); } function getMessage(openId) { return request({ url: `/admin/h5Api/nuBizAdvisoryInfo/queryWeixinInfo?openId=${openId}`, method: "get" }); } const _export_sfc = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; const _sfc_main$A = { __name: "callback", setup(__props, { expose: __expose }) { __expose(); const superLogin = () => { uni.login({ provider: "weixin", success(res) { getOpenid(res.code).then((res2) => { let openid = res2.data.openid; uni.setStorageSync("openid", openid); getMessage(openid).then((res3) => { uni.setStorageSync("tel", res3.result.tel); uni.setStorageSync("token", res3.result.token); uni.setStorageSync("serverUrl", res3.result.serverUrl); uni.setStorageSync("platId", res3.result.platId); uni.setStorageSync("izJg", res3.result.izJg); uni.setStorageSync("izJs", res3.result.izJs); uni.setStorageSync("izYg", res3.result.izYg); if (!res3.result.tel) { uni.redirectTo({ url: `/pages/login/xuanchuan` }); } else { if (uni.getStorageSync("special")) { uni.redirectTo({ url: `/pages/login/specialloginafther` }); } else { switch (res3.result.advisoryType) { case `1`: uni.redirectTo({ url: `/pages/login/threeselectone` }); break; case 2: break; case `3`: uni.redirectTo({ url: `/pages/index/index` }); break; default: uni.redirectTo({ url: `/pages/login/threeselectone` }); } } } }); }); }, fail(err) { formatAppLog("error", "at pages/login/callback.vue:76", "获取 code 失败:", err); } }); }; onLoad((options) => { if (options.type) { uni.setStorageSync("special", true); } else { uni.setStorageSync("special", false); } superLogin(); }); const __returned__ = { superLogin, get onLoad() { return onLoad; }, reactive: vue.reactive, ref: vue.ref, get getOpenid() { return getOpenid; }, get getMessage() { return getMessage; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createElementVNode("image", { class: "login-imge", src: "https://www.focusnu.com/media/directive/login/loading.gif", mode: "widthFix", "lazy-load": "false" }) ]); } const PagesLoginCallback = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$z], ["__scopeId", "data-v-47aa4dce"], ["__file", "D:/hldy_xcx/pages/login/callback.vue"]]); const _sfc_main$z = { __name: "index", setup(__props, { expose: __expose }) { __expose(); const isTarget = vue.ref(false); const isFadingOut = vue.ref(false); const maskColor = vue.ref("rgba(0, 0, 0, 0.5)"); function closeModal() { isFadingOut.value = false; } const getCode = () => { uni.login({ provider: "weixin", success(res) { getOpenid(res.code).then((res2) => { let openid = res2.data.openid; uni.setStorageSync("openid", openid); uni.navigateTo({ url: `/pages/login/phonebumber` }); }); }, fail(err) { formatAppLog("error", "at pages/login/index.vue:122", "获取 code 失败:", err); } }); }; const loginIt = () => { if (!isTarget.value) { isFadingOut.value = true; } else { getCode(); } }; const jumpToPro = () => { uni.navigateTo({ url: "/pages/login/protocol" }); }; const userInfo = vue.ref(null); const isallow = vue.ref(false); function getUserProfile() { uni.getUserProfile({ desc: "用于完善会员资料", // 必填,弹窗提示语 lang: "zh_CN", success: (res) => { userInfo.value = res.userInfo; formatAppLog("log", "at pages/login/index.vue:151", "用户信息:", res.userInfo); isallow.value = true; }, fail: (err) => { formatAppLog("warn", "at pages/login/index.vue:155", "用户拒绝了授权", err); } }); } vue.onMounted(() => { }); const __returned__ = { isTarget, isFadingOut, maskColor, closeModal, getCode, loginIt, jumpToPro, userInfo, isallow, getUserProfile, reactive: vue.reactive, ref: vue.ref, onMounted: vue.onMounted, get getOpenid() { return getOpenid; }, get getMessage() { return getMessage; }, get onLoad() { return onLoad; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createElementVNode("image", { class: "title-imge", src: "https://www.focusnu.com/media/directive/login/icon.png" }), vue.createElementVNode("image", { class: "photo-imge", src: "https://www.focusnu.com/media/directive/login/bgc.png" }), vue.createElementVNode("view", { class: "under-container" }, [ vue.createCommentVNode(' '), vue.createElementVNode("button", { class: "button-blue", onClick: $setup.loginIt }, " 一键登录 "), vue.createElementVNode("view", { class: "under-container-title" }, [ vue.createElementVNode( "view", { class: vue.normalizeClass($setup.isTarget ? "radio-circle-target" : "radio-circle"), onClick: _cache[0] || (_cache[0] = ($event) => $setup.isTarget = !$setup.isTarget) }, null, 2 /* CLASS */ ), vue.createElementVNode("view", { style: { "margin-left": "17rpx" }, class: "radio-circle-font", onClick: _cache[1] || (_cache[1] = ($event) => $setup.isTarget = !$setup.isTarget) }, "同意护理单元"), vue.createElementVNode("view", { class: "radio-circle-blue", onClick: $setup.jumpToPro }, " 《使用条款》 "), vue.createElementVNode("view", { class: "radio-circle-font", onClick: _cache[2] || (_cache[2] = ($event) => $setup.isTarget = !$setup.isTarget) }, "并授权NU获取本机号码") ]) ]), vue.createCommentVNode(" 遮罩 "), vue.createVNode(vue.Transition, { name: "fade" }, { default: vue.withCtx(() => [ $setup.isFadingOut ? (vue.openBlock(), vue.createElementBlock( "view", { key: 0, class: "overlay", onClick: $setup.closeModal, style: vue.normalizeStyle({ backgroundColor: $setup.maskColor }) }, null, 4 /* STYLE */ )) : vue.createCommentVNode("v-if", true) ]), _: 1 /* STABLE */ }), vue.createCommentVNode(" 底部弹窗 "), vue.createVNode(vue.Transition, { name: "slide-up" }, { default: vue.withCtx(() => [ $setup.isFadingOut ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "modal" }, [ vue.createElementVNode("view", { class: "modal-title" }, "使用条款"), vue.createElementVNode("view", { class: "model-p" }, [ vue.createElementVNode("text", null, "  为了更好地保障您的合法权益,请阅读并同意以下协议护理单元"), vue.createElementVNode("text", { style: { "color": "rgb(0,141,255)" }, onClick: $setup.jumpToPro }, "《使用条款》"), vue.createElementVNode("text", null, ",同意后将自动登录。") ]), vue.createElementVNode("view", { class: "model-down" }, [ vue.createCommentVNode(' \r\n 不同意\r\n '), vue.createElementVNode("view", { class: "model-blue", onClick: _cache[3] || (_cache[3] = ($event) => { $setup.closeModal(); $setup.isTarget = true; }) }, " 同意 ") ]) ])) : vue.createCommentVNode("v-if", true) ]), _: 1 /* STABLE */ }) ]); } const PagesLoginIndex = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$y], ["__scopeId", "data-v-d08ef7d4"], ["__file", "D:/hldy_xcx/pages/login/index.vue"]]); const pieceSize = 50; const tolerance = 20; const _sfc_main$y = { __name: "huakuai", emits: ["success"], setup(__props, { expose: __expose, emit: __emit }) { __expose(); const emit = __emit; const containerWidth = vue.ref(0); const containerHeight = vue.ref(0); const originX = vue.ref(0); const originY = vue.ref(0); const offsetX = vue.ref(0); const dragging = vue.ref(false); const startX = vue.ref(0); const bgImage = vue.ref(""); const instance = vue.getCurrentInstance(); function getPuzzlePiecePath(size) { const s = size; return ` M${10} 0 h${s / 3 - 10} a${10} ${10} 0 0 1 0 ${20} h${s / 3} a${10} ${10} 0 0 0 0 -${20} h${s / 3 - 10} v${s / 3 - 10} a${10} ${10} 0 0 1 -${20} 0 v${s / 3} a${10} ${10} 0 0 0 ${20} 0 v${s / 3 - 10} h-${s / 3 - 10} a${10} ${10} 0 0 1 0 -${20} h-${s / 3} a${10} ${10} 0 0 0 0 ${20} h-${s / 3 - 10} z `; } const clipPath = `path('${getPuzzlePiecePath(pieceSize)}')`; function init() { vue.nextTick(() => { if (!instance) { formatAppLog("error", "at compontent/public/huakuai.vue:106", "无法获取组件实例"); return; } uni.createSelectorQuery().in(instance.proxy).select(".bg-image").boundingClientRect((data) => { if (!data) { formatAppLog("error", "at compontent/public/huakuai.vue:114", "无法获取图片尺寸"); return; } containerWidth.value = data.width; containerHeight.value = data.height; originX.value = Math.random() * (containerWidth.value - pieceSize) + pieceSize / 2; originX.value = Math.max(pieceSize / 2, Math.min(originX.value, containerWidth.value - pieceSize / 2)); originY.value = containerHeight.value / 2; offsetX.value = 0; }).exec(); }); } function onStart(e) { dragging.value = true; startX.value = e.touches[0].clientX; } function onMove(e) { if (!dragging.value) return; const clientX = e.touches[0].clientX; let dx = clientX - startX.value; dx = Math.max(0, Math.min(dx, containerWidth.value - pieceSize)); offsetX.value = dx; } function onEnd() { dragging.value = false; if (Math.abs(offsetX.value - originX.value) < tolerance) { uni.showToast({ title: "验证成功", icon: "none", duration: 2e3 }); emit("success"); } else { offsetX.value全員 = 0; uni.showToast({ title: "验证失败", icon: "none", duration: 2e3 }); } } vue.onMounted(() => { const images = [ "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" // 'https://www.focusnu.com/media/directive/login/3.png' ]; bgImage.value = images[Math.floor(Math.random() * images.length)]; }); const __returned__ = { emit, pieceSize, tolerance, containerWidth, containerHeight, originX, originY, offsetX, dragging, startX, bgImage, instance, getPuzzlePiecePath, clipPath, init, onStart, onMove, onEnd, ref: vue.ref, onMounted: vue.onMounted, nextTick: vue.nextTick, getCurrentInstance: vue.getCurrentInstance }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "captcha-container", id: "container" }, [ vue.createElementVNode("view", { class: "font-title" }, "请通过滑块验证"), vue.createElementVNode("view", { class: "captcha-image", style: { "position": "relative", "width": "100%", "height": "400rpx", "overflow": "hidden" } }, [ vue.createElementVNode("image", { src: $setup.bgImage, class: "bg-image", mode: "widthFix", onLoad: $setup.init }, null, 40, ["src"]), vue.createElementVNode( "view", { class: "overlay", style: vue.normalizeStyle({ width: $setup.containerWidth + "px", height: $setup.containerHeight + "px" }) }, [ vue.createElementVNode( "view", { class: "hole", style: vue.normalizeStyle({ top: $setup.originY + "px", left: $setup.originX + "px", width: $setup.pieceSize + "px", height: $setup.pieceSize + "px", clipPath: $setup.clipPath, transform: "translate(-50%, -50%)", backgroundColor: "rgba(0,0,0,0.6)" }) }, null, 4 /* STYLE */ ), vue.createElementVNode( "view", { class: "piece", style: vue.normalizeStyle({ top: $setup.originY + "px", left: $setup.offsetX + "px", width: $setup.pieceSize + "px", height: $setup.pieceSize + "px", backgroundImage: `url(${$setup.bgImage})`, backgroundSize: $setup.containerWidth + "px " + $setup.containerHeight + "px", backgroundPosition: `-${$setup.originX}px -${$setup.originY}px`, clipPath: $setup.clipPath, transform: "translate(-50%, -50%)" }) }, null, 4 /* STYLE */ ) ], 4 /* STYLE */ ) ]), vue.createElementVNode("view", { class: "slider-bar" }, [ vue.createElementVNode("view", { class: "slider-bar-font" }, "向右滑动滑块填充拼图"), vue.createElementVNode( "view", { class: "slider-button", ref: "btn", onTouchstart: $setup.onStart, onTouchmove: $setup.onMove, onTouchend: $setup.onEnd, style: vue.normalizeStyle({ left: $setup.offsetX + "px", maxWidth: $setup.containerWidth - $setup.pieceSize + "px" }) }, [ vue.createElementVNode("image", { src: "https://www.focusnu.com/media/directive/login/right.png", style: { "width": "50rpx", "height": "50rpx" }, mode: "widthFix" }) ], 36 /* STYLE, NEED_HYDRATION */ ) ]) ]); } const huakuai = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$x], ["__scopeId", "data-v-2ca77e4c"], ["__file", "D:/hldy_xcx/compontent/public/huakuai.vue"]]); const _sfc_main$x = { __name: "phonebumber", setup(__props, { expose: __expose }) { __expose(); const huakuaiOpen = vue.ref(false); const jumpto = () => { huakuaiOpen.value = true; }; const codeIsOk = () => { huakuaiOpen.value = false; getHkCode({ mobile: phonenumber.value }).then((res) => { if (res.success) { uni.navigateTo({ url: `/pages/login/code?mobile=${phonenumber.value}&hkcode=${res.message}` }); } else { uni.showToast({ title: res.message, icon: "none", // 不显示图标(提示信息) duration: 2e3 // 显示时长(毫秒) }); } }); }; function is11DigitNumber(value) { return /^\d{11}$/.test(value.toString()); } const phonenumber = vue.ref(""); const canClick = vue.ref(false); const isRight = (res) => { if (is11DigitNumber(res.detail.value)) { phonenumber.value = res.detail.value; canClick.value = true; } else { canClick.value = false; } }; const goback = () => { uni.navigateBack(); }; const __returned__ = { huakuaiOpen, jumpto, codeIsOk, is11DigitNumber, phonenumber, canClick, isRight, goback, reactive: vue.reactive, ref: vue.ref, onMounted: vue.onMounted, huakuai, get getHkCode() { return getHkCode; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createCommentVNode(' '), vue.createElementVNode("image", { class: "title-imge", src: "https://www.focusnu.com/media/directive/login/icon.png" }), vue.createElementVNode("image", { class: "photo-imge", src: "https://www.focusnu.com/media/directive/login/bgc.png" }), vue.createElementVNode("view", { class: "under-container" }, [ vue.createElementVNode("view", { class: "under-container-title" }, [ vue.createElementVNode("view", { class: "under-container-input" }, [ vue.createElementVNode("view", { class: "input-left" }, "+86"), vue.createElementVNode( "input", { type: "number", style: { "width": "600rpx", "font-size": "33rpx" }, maxlength: "11", placeholder: "请输入手机号", onInput: $setup.isRight }, null, 32 /* NEED_HYDRATION */ ) ]) ]), $setup.canClick ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "button-blue", onClick: $setup.jumpto }, " 获取验证码 ")) : vue.createCommentVNode("v-if", true), !$setup.canClick ? (vue.openBlock(), vue.createElementBlock("view", { key: 1, class: "button-gray" }, " 获取验证码 ")) : vue.createCommentVNode("v-if", true) ]), $setup.huakuaiOpen ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "bg-mask", onClick: _cache[1] || (_cache[1] = ($event) => $setup.huakuaiOpen = false) }, [ vue.createVNode($setup["huakuai"], { onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => { }, ["stop"])), onSuccess: $setup.codeIsOk }) ])) : vue.createCommentVNode("v-if", true) ]); } const PagesLoginPhonebumber = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$w], ["__scopeId", "data-v-94511ff7"], ["__file", "D:/hldy_xcx/pages/login/phonebumber.vue"]]); const _sfc_main$w = { __name: "threeselectone", setup(__props, { expose: __expose }) { __expose(); const itemTarget = vue.ref(0); const fontArray = [ "护理院日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护。", "护理员日常为长者提供饮食起居照料、协助康复训练监测健康状况,陪伴交流并做好环境清洁。", "护理员日常为长者提供饮食起居照料、协助康复训练监测健康状况,陪伴交流并做好环境清洁。" ]; const changePhoto = (index) => { itemTarget.value = index; }; const goBack = () => { uni.navigateBack(); }; const ceshi = () => { uni.navigateTo({ url: `/pages/login/xuanchuan` }); }; const jumpToindex = () => { uni.navigateTo({ url: `/pages/index/index` }); }; const gotowork = (number2) => { uni.navigateTo({ url: `/pages/login/workjoin?type=${number2}` }); }; const gotoadd = () => { uni.setStorageSync("specicalid", ""); uni.setStorageSync("baddata", ""); uni.setStorageSync("backhuancun", {}); uni.navigateTo({ url: `/pages/addjigou/name` }); }; const close = () => { uni.exitMiniProgram({}); }; const phone = vue.ref(""); const op0 = vue.ref(false); const op1 = vue.ref(false); const op2 = vue.ref(false); onLoad(() => { phone.value = uni.getStorageSync("tel"); op0.value = uni.getStorageSync("izJs"); op1.value = uni.getStorageSync("izYg"); op2.value = uni.getStorageSync("izJg"); }); const __returned__ = { itemTarget, fontArray, changePhoto, goBack, ceshi, jumpToindex, gotowork, gotoadd, close, phone, op0, op1, op2, reactive: vue.reactive, ref: vue.ref, get onLoad() { return onLoad; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createCommentVNode(' \r\n \r\n \r\n 您好,\r\n 欢迎使用护理单元~\r\n \r\n '), vue.createElementVNode("image", { class: "photo-imge", src: "https://www.focusnu.com/media/directive/index/indexgif.gif", mode: "widthFix", "lazy-load": "false" }), vue.createCommentVNode(' \r\n \r\n \r\n \r\n \r\n '), vue.createCommentVNode(' '), vue.createCommentVNode(' '), vue.createCommentVNode(' \r\n \r\n \r\n \r\n {{fontArray[itemTarget]}}\r\n \r\n \r\n \r\n \r\n 绑定单元\r\n \r\n \r\n \r\n \r\n 审核详情\r\n \r\n \r\n 申请入驻\r\n \r\n \r\n \r\n \r\n 审核详情\r\n \r\n \r\n 申请加盟\r\n \r\n \r\n '), vue.createCommentVNode(' \r\n 恭喜您已成功绑定手机 {{phone}},现在您可以:\r\n '), vue.createElementVNode("view", { class: "card", style: { "margin-top": "550rpx" } }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 长者入住 "), vue.createElementVNode("view", { class: "card-text" }, " 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 "), vue.createElementVNode("view", { class: "white-button" }, " 申请入住 ") ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/old.png" }) ]) ]), vue.createElementVNode("view", { class: "card" }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 员工入驻 "), vue.createElementVNode("view", { class: "card-text" }, " 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 "), vue.createElementVNode("view", { style: { "display": "flex" } }, [ vue.createCommentVNode(' \r\n 审核列表\r\n '), vue.createElementVNode("view", { class: "white-button" }, " 申请入驻 ") ]) ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/yuangong.png" }) ]) ]), vue.createElementVNode("view", { class: "card", style: { "height": "340rpx" } }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 机构加盟 "), vue.createElementVNode("view", { class: "card-text" }, " 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 "), vue.createElementVNode("view", { style: { "display": "flex" } }, [ $setup.op2 == `1` ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "white-button", onClick: $setup.jumpToindex }, " 进入机构 ")) : vue.createCommentVNode("v-if", true), $setup.op2 != `1` ? (vue.openBlock(), vue.createElementBlock("view", { key: 1, class: "white-button", onClick: $setup.gotoadd }, " 申请加盟 ")) : vue.createCommentVNode("v-if", true) ]) ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/gongsi.png", onClick: $setup.ceshi }) ]) ]), vue.createElementVNode("view", { class: "blue-button", onClick: $setup.close }, " 关闭 ") ]); } const PagesLoginThreeselectone = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$v], ["__scopeId", "data-v-83beea56"], ["__file", "D:/hldy_xcx/pages/login/threeselectone.vue"]]); const _sfc_main$v = { __name: "threeselectonespec", setup(__props, { expose: __expose }) { __expose(); const itemTarget = vue.ref(0); const fontArray = [ "护理院日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护。", "护理员日常为长者提供饮食起居照料、协助康复训练监测健康状况,陪伴交流并做好环境清洁。", "护理员日常为长者提供饮食起居照料、协助康复训练监测健康状况,陪伴交流并做好环境清洁。" ]; const changePhoto = (index) => { itemTarget.value = index; }; const goBack = () => { uni.navigateBack(); }; const ceshi = () => { uni.navigateTo({ url: `/pages/login/phonebumber` }); }; const jumpToindex = () => { uni.navigateTo({ url: `/pages/index/index` }); }; const gotowork = (number2) => { uni.navigateTo({ url: `/pages/login/workjoin?type=${number2}` }); }; const gotoadd = () => { uni.setStorageSync("specicalid", ""); uni.setStorageSync("baddata", ""); uni.setStorageSync("backhuancun", {}); uni.navigateTo({ url: `/pages/addjigou/name` }); }; const close = () => { uni.exitMiniProgram({}); }; const phone = vue.ref(""); const op0 = vue.ref(false); const op1 = vue.ref(false); const op2 = vue.ref(false); onLoad(() => { phone.value = uni.getStorageSync("tel"); op0.value = uni.getStorageSync("izJs"); op1.value = uni.getStorageSync("izYg"); op2.value = uni.getStorageSync("izJg"); }); const __returned__ = { itemTarget, fontArray, changePhoto, goBack, ceshi, jumpToindex, gotowork, gotoadd, close, phone, op0, op1, op2, reactive: vue.reactive, ref: vue.ref, get onLoad() { return onLoad; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createCommentVNode(' \r\n \r\n \r\n 您好,\r\n 欢迎使用护理单元~\r\n \r\n '), vue.createElementVNode("image", { class: "photo-imge", src: "https://www.focusnu.com/media/directive/index/indexgif.gif", mode: "widthFix", "lazy-load": "false" }), vue.createElementVNode("view", { class: "title-back" }, [ vue.createElementVNode("view", { class: "left-father", onClick: $setup.goBack }, [ vue.createElementVNode("image", { class: "back-img", src: "https://www.focusnu.com/media/directive/index/left.png" }) ]) ]), vue.createCommentVNode(' '), vue.createCommentVNode(' '), vue.createCommentVNode(' \r\n \r\n \r\n \r\n {{fontArray[itemTarget]}}\r\n \r\n \r\n \r\n \r\n 绑定单元\r\n \r\n \r\n \r\n \r\n 审核详情\r\n \r\n \r\n 申请入驻\r\n \r\n \r\n \r\n \r\n 审核详情\r\n \r\n \r\n 申请加盟\r\n \r\n \r\n '), vue.createCommentVNode(' \r\n 恭喜您已成功绑定手机 {{phone}},现在您可以:\r\n '), vue.createElementVNode("view", { class: "card", style: { "margin-top": "550rpx" } }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 长者入住 "), vue.createElementVNode("view", { class: "card-text" }, " 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为长者提供贴心照护服务。 "), vue.createElementVNode("view", { class: "white-button" }, " 申请入住 ") ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/old.png" }) ]) ]), vue.createElementVNode("view", { class: "card" }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 员工入驻 "), vue.createElementVNode("view", { class: "card-text" }, " 护理员严格按标准流程,定时为失能长者开展床旁照护,用专业与温情守护长者生活与健康。 "), vue.createElementVNode("view", { style: { "display": "flex" } }, [ vue.createCommentVNode(' \r\n 审核列表\r\n '), vue.createElementVNode("view", { class: "white-button" }, " 申请入驻 ") ]) ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/yuangong.png" }) ]) ]), vue.createElementVNode("view", { class: "card", style: { "height": "340rpx" } }, [ vue.createElementVNode("view", { class: "card-left" }, [ vue.createElementVNode("view", { class: "card-weight" }, " 机构加盟 "), vue.createElementVNode("view", { class: "card-text" }, " 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 "), vue.createElementVNode("view", { style: { "display": "flex" } }, [ $setup.op2 == `1` ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "white-button", onClick: $setup.jumpToindex }, " 进入机构 ")) : vue.createCommentVNode("v-if", true), $setup.op2 != `1` ? (vue.openBlock(), vue.createElementBlock("view", { key: 1, class: "white-button", onClick: $setup.gotoadd }, " 申请加盟 ")) : vue.createCommentVNode("v-if", true) ]) ]), vue.createElementVNode("view", { class: "card-right" }, [ vue.createElementVNode("image", { class: "right-imge", src: "https://www.focusnu.com/media/directive/login/gongsi.png", onClick: $setup.ceshi }) ]) ]), vue.createCommentVNode(' \r\n 关闭\r\n ') ]); } const PagesLoginThreeselectonespec = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$u], ["__scopeId", "data-v-f4bd7fdd"], ["__file", "D:/hldy_xcx/pages/login/threeselectonespec.vue"]]); function changemessage(data) { return request({ url: `/api/orgApplyInfo/save`, method: "post", data }); } function getMessageList(id) { return request({ url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`, method: "get" }); } function getMessageListsuccess(id) { return request({ url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`, method: "get" }); } function getdate(id) { return request({ url: `/api/common/queryAreaDict?id=${id}`, method: "get" }); } function getrel(id) { return request({ url: `/api/common/queryAreaNameById?id=${id}`, method: "get" }); } const _sfc_main$u = { __name: "workjoin", setup(__props, { expose: __expose }) { __expose(); const type = vue.ref(0); const workArray = vue.ref([]); const special = vue.ref(false); const statusarray = ["loading", "success", "fail"]; onLoad((options) => { uni.getStorage({ key: "openid", success: function(res) { getMessageList(res.data).then((res2) => { workArray.value = res2.result; }); } }); }); onPullDownRefresh(() => { uni.getStorage({ key: "openid", success: function(res) { getMessageList(res.data).then((res2) => { workArray.value = res2.result; }); } }); uni.stopPullDownRefresh(); }); const goBack = () => { uni.navigateBack(); }; const again = (item) => { formatAppLog("log", "at pages/login/workjoin.vue:100", "????", item); uni.setStorageSync("baddata", item); uni.setStorageSync("specicalid", item.id); uni.setStorageSync("backhuancun", {}); uni.navigateTo({ url: `/pages/addjigou/name` }); }; const jumpToAll = (element) => { uni.navigateTo({ url: `/pages/addjigou/all?element=${JSON.stringify(element)}` }); }; const __returned__ = { type, workArray, special, statusarray, goBack, again, jumpToAll, reactive: vue.reactive, ref: vue.ref, nextTick: vue.nextTick, get onLoad() { return onLoad; }, get onPullDownRefresh() { return onPullDownRefresh; }, get getMessageList() { return getMessageList; }, get getMessageListsuccess() { return getMessageListsuccess; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createElementVNode("view", { class: "title-back" }, [ vue.createElementVNode("view", { class: "left-father", onClick: $setup.goBack }, [ vue.createElementVNode("image", { class: "back-img", src: "https://www.focusnu.com/media/directive/index/left.png" }), vue.createElementVNode("view", { style: { "font-size": "30rpx" } }, "加盟审核") ]) ]), vue.createElementVNode("view", { class: "index-up" }, [ vue.createElementVNode("image", { class: "index-up-img", src: "https://www.focusnu.com/media/directive/index/indexgif.gif", mode: "widthFix", "lazy-load": "false" }) ]), vue.createElementVNode("view", { class: "bgc-card" }, [ vue.createElementVNode("view", { class: "under-scroll" }, [ (vue.openBlock(true), vue.createElementBlock( vue.Fragment, null, vue.renderList($setup.workArray, (item, index) => { return vue.openBlock(), vue.createElementBlock("view", { key: index }, [ vue.createElementVNode("view", { class: "white-small", onClick: ($event) => $setup.jumpToAll(item) }, [ vue.createElementVNode( "view", { style: { "font-size": "32rpx" } }, vue.toDisplayString(item.comName), 1 /* TEXT */ ), vue.createCommentVNode(' '), vue.createElementVNode("view", { class: "bottom-father" }, [ vue.createElementVNode("view", { style: { "margin-top": "45rpx" } }, [ vue.createElementVNode("view", { class: "" }, [ item.franchiseTime ? (vue.openBlock(), vue.createElementBlock("text", { key: 0, style: { "color": "#999" } }, " 加盟日期:")) : vue.createCommentVNode("v-if", true), item.franchiseTime ? (vue.openBlock(), vue.createElementBlock( "text", { key: 1 }, vue.toDisplayString(item.franchiseTime), 1 /* TEXT */ )) : vue.createCommentVNode("v-if", true), !item.franchiseTime ? (vue.openBlock(), vue.createElementBlock("text", { key: 2, style: { "color": "#999" } }, " 申请日期:")) : vue.createCommentVNode("v-if", true), !item.franchiseTime ? (vue.openBlock(), vue.createElementBlock( "text", { key: 3 }, vue.toDisplayString(item.commitTime), 1 /* TEXT */ )) : vue.createCommentVNode("v-if", true) ]), vue.createElementVNode("view", { style: { "margin-top": "10rpx" } }, [ vue.createElementVNode("text", { style: { "color": "#999" } }, " 审核日期:"), vue.createTextVNode( vue.toDisplayString(item.auditTime), 1 /* TEXT */ ) ]) ]), vue.createElementVNode("view", { class: "" }), vue.createElementVNode("image", { class: "bottom-img", src: `https://www.focusnu.com/media/directive/index/${$setup.statusarray[Number(item.status) - 1]}.png` }, null, 8, ["src"]) ]) ], 8, ["onClick"]) ]); }), 128 /* KEYED_FRAGMENT */ )) ]) ]) ]); } const PagesLoginWorkjoin = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$t], ["__scopeId", "data-v-808c8183"], ["__file", "D:/hldy_xcx/pages/login/workjoin.vue"]]); const _sfc_main$t = { __name: "workjoinsuccess", setup(__props, { expose: __expose }) { __expose(); const type = vue.ref(0); const workArray = vue.ref([]); const special = vue.ref(false); const statusarray = ["success", "loading", "success", "fail", "loading", "fail"]; const namearraay = ["审核通过", "审核中", "审核通过", "审核不通过", "审核中", "审核不通过"]; const getData = () => { uni.getStorage({ key: "openid", success: function(res) { getMessageListsuccess(res.data).then((res2) => { const counts = {}; res2.result.forEach((item) => { counts[item.pkId] = (counts[item.pkId] || 0) + 1; }); const seenFirst = {}; const seenCount = {}; workArray.value = res2.result.map((item) => { const { pkId } = item; if (counts[pkId] > 1) { if (!seenFirst[pkId]) { item.ischange = true; seenFirst[pkId] = true; } else { item.ischange = false; } } else { item.ischange = true; } seenCount[pkId] = (seenCount[pkId] || 0) + 1; item.isend = seenCount[pkId] === counts[pkId]; return item; }); }).catch((err) => { formatAppLog("error", "at pages/login/workjoinsuccess.vue:131", err); }); } }); }; onLoad((options) => { getData(); }); onPullDownRefresh(() => { getData(); uni.stopPullDownRefresh(); }); const goBack = () => { uni.navigateBack(); }; const again = (item) => { let trans = item; trans.id = null; uni.setStorageSync("baddata", trans); uni.setStorageSync("specicalid", trans.id); uni.setStorageSync("backhuancun", {}); uni.navigateTo({ url: `/pages/addjigou/name` }); }; const jumpToAll = (element) => { uni.navigateTo({ url: `/pages/addjigou/all?element=${JSON.stringify(element)}&special=1` }); }; const __returned__ = { type, workArray, special, statusarray, namearraay, getData, goBack, again, jumpToAll, reactive: vue.reactive, ref: vue.ref, nextTick: vue.nextTick, get onLoad() { return onLoad; }, get onPullDownRefresh() { return onPullDownRefresh; }, get getMessageListsuccess() { return getMessageListsuccess; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createElementVNode("view", { class: "title-back" }, [ vue.createElementVNode("view", { class: "left-father", onClick: $setup.goBack }, [ vue.createElementVNode("image", { class: "back-img", src: "https://www.focusnu.com/media/directive/index/left.png" }), vue.createElementVNode("view", { style: { "font-size": "30rpx" } }, "机构信息") ]) ]), vue.createElementVNode("view", { class: "index-up" }, [ vue.createElementVNode("image", { class: "index-up-img", src: "https://www.focusnu.com/media/directive/index/indexgif.gif", mode: "widthFix", "lazy-load": "false" }) ]), vue.createElementVNode("view", { class: "bgc-card" }, [ vue.createCommentVNode(' \r\n 机构加盟\r\n \r\n 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。\r\n \r\n '), !$setup.workArray.length ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "none" }, [ vue.createElementVNode("image", { style: { "width": "300rpx", "height": "300rpx" }, src: "https://www.focusnu.com/media/directive/index/none.png", mode: "widthFix", "lazy-load": "false" }), vue.createElementVNode("view", { class: "" }, "暂无机构信息") ])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("view", { class: "under-scroll" }, [ (vue.openBlock(true), vue.createElementBlock( vue.Fragment, null, vue.renderList($setup.workArray, (item, index) => { return vue.openBlock(), vue.createElementBlock("view", { key: index }, [ vue.createElementVNode("view", { class: "white-small", onClick: ($event) => $setup.jumpToAll(item) }, [ vue.createElementVNode( "view", { style: { "font-size": "32rpx" } }, vue.toDisplayString(item.comName), 1 /* TEXT */ ), vue.createElementVNode("view", { class: "bottom-father" }, [ vue.createElementVNode("view", { style: { "margin-top": "45rpx" } }, [ vue.createElementVNode("view", { class: "" }, [ vue.createElementVNode( "text", { style: { "color": "#999" } }, vue.toDisplayString(item.isend ? `申请` : `变更`) + "日期:", 1 /* TEXT */ ), vue.createTextVNode( vue.toDisplayString(item.commitTime), 1 /* TEXT */ ) ]), vue.createElementVNode("view", { style: { "margin-top": "10rpx" } }, [ vue.createElementVNode("text", { style: { "color": "#999" } }, " 审核日期:"), vue.createTextVNode( vue.toDisplayString(item.auditTime), 1 /* TEXT */ ) ]) ]), vue.createElementVNode("view", { class: "" }), vue.createElementVNode("image", { class: "bottom-img", src: `https://www.focusnu.com/media/directive/index/${$setup.statusarray[Number(item.status)]}.png` }, null, 8, ["src"]) ]), vue.createCommentVNode(' '), vue.createCommentVNode(' \r\n \r\n {{ item.status ? namearraay[Number(item.status)] :"" }}\r\n \r\n \r\n '), item.modifyStatus === `0` && item.ischange ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "blue-button", onClick: vue.withModifiers(($event) => $setup.again(item), ["stop"]) }, [ vue.createElementVNode("image", { class: "blue-button-img", src: "https://www.focusnu.com/media/directive/change.png", mode: "widthFix", "lazy-load": "false" }) ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(' \r\n \r\n ') ], 8, ["onClick"]) ]); }), 128 /* KEYED_FRAGMENT */ )) ]) ]) ]); } const PagesLoginWorkjoinsuccess = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$s], ["__scopeId", "data-v-c1509caf"], ["__file", "D:/hldy_xcx/pages/login/workjoinsuccess.vue"]]); const _sfc_main$s = { 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: false }, // 显示模式,box-盒子模式,bottomLine-横线在底部模式,middleLine-横线在中部模式 mode: { type: String, default: "box" }, // 当前激活输入item,是否带有呼吸效果 breathe: { type: Boolean, default: true }, // 是否自动获取焦点 focus: { type: Boolean, default: false }, // 字体是否加粗 bold: { type: Boolean, default: false }, // 字体大小 fontSize: { type: [String, Number], default: 60 }, // 激活样式 activeColor: { type: String, default: "#2979ff" }, // 未激活的样式 inactiveColor: { type: String, default: "#606266" }, // 输入框的大小,单位rpx,宽等于高 width: { type: [Number, String], default: "80" }, // 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true disabledKeyboard: { type: Boolean, default: false } }, watch: { // maxlength: { // // 此值设置为true,会在组件加载后无需maxlength变化就会执行一次本监听函数,无需再created生命周期中处理 // immediate: true, // handler(val) { // this.maxlength = Number(val); // } // }, valueCom: { immediate: true, handler(val) { val = String(val); this.valueModel = val.substring(0, Number(this.maxlength)); } } }, data() { return { valueModel: "" }; }, computed: { valueCom() { return this.modelValue; }, // 是否显示呼吸灯效果 animationClass() { return (index) => { if (this.breathe && this.charArr.length == index) return "u-breathe"; else return ""; }; }, // 用于显示字符 charArr() { return this.valueModel.split(""); }, charArrLength() { return this.charArr.length; }, // 根据长度,循环输入框的个数,因为头条小程序数值不能用于v-for loopCharArr() { return new Array(Number(this.maxlength)); } }, methods: { getVal(e) { let { value } = e.detail; this.valueModel = value; if (String(value).length > Number(this.maxlength)) return; this.$emit("change", value); this.$emit("input", value); this.$emit("update:modelValue", value); if (String(value).length == Number(this.maxlength)) { this.$emit("finish", value); } } } }; function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("view", { class: "u-char-box" }, [ vue.createElementVNode("view", { class: "u-char-flex" }, [ vue.createElementVNode("input", { disabled: $props.disabledKeyboard, value: $data.valueModel, type: "number", focus: $props.focus, maxlength: $props.maxlength, class: "u-input", onInput: _cache[0] || (_cache[0] = (...args) => $options.getVal && $options.getVal(...args)) }, null, 40, ["disabled", "value", "focus", "maxlength"]), (vue.openBlock(true), vue.createElementBlock( vue.Fragment, null, vue.renderList($options.loopCharArr, (item, index) => { return vue.openBlock(), vue.createElementBlock("view", { key: index }, [ vue.createElementVNode( "view", { class: vue.normalizeClass([ $props.breathe && $options.charArrLength == index ? "u-breathe" : "", "u-char-item", $options.charArrLength === index && $props.mode == "box" ? "u-box-active" : "", $props.mode === "box" ? "u-box" : "" ]), style: vue.normalizeStyle({ fontWeight: $props.bold ? "bold" : "normal", fontSize: $props.fontSize + "rpx", width: $props.width + "rpx", height: $props.width + "rpx", color: $props.inactiveColor, borderColor: $options.charArrLength === index && $props.mode == "box" ? $props.activeColor : $props.inactiveColor }) }, [ $props.mode !== "middleLine" ? (vue.openBlock(), vue.createElementBlock( "view", { key: 0, class: "u-placeholder-line", style: vue.normalizeStyle({ display: $options.charArrLength === index ? "block" : "none", height: $props.width * 0.5 + "rpx" }) }, null, 4 /* STYLE */ )) : vue.createCommentVNode("v-if", true), $props.mode === "middleLine" && $options.charArrLength <= index ? (vue.openBlock(), vue.createElementBlock( "view", { key: 1, class: vue.normalizeClass([[$props.breathe && $options.charArrLength == index ? "u-breathe" : "", $options.charArrLength === index ? "u-middle-line-active" : ""], "u-middle-line"]), style: vue.normalizeStyle({ height: $props.bold ? "4px" : "2px", background: $options.charArrLength === index ? $props.activeColor : $props.inactiveColor }) }, null, 6 /* CLASS, STYLE */ )) : vue.createCommentVNode("v-if", true), $props.mode === "bottomLine" ? (vue.openBlock(), vue.createElementBlock( "view", { key: 2, class: vue.normalizeClass([[$props.breathe && $options.charArrLength == index ? "u-breathe" : "", $options.charArrLength === index ? "u-bottom-line-active" : ""], "u-bottom-line"]), style: vue.normalizeStyle({ height: $props.bold ? "4px" : "2px", background: $options.charArrLength === index ? $props.activeColor : $props.inactiveColor }) }, null, 6 /* CLASS, STYLE */ )) : vue.createCommentVNode("v-if", true), !$props.dotFill ? (vue.openBlock(), vue.createElementBlock( vue.Fragment, { key: 3 }, [ vue.createTextVNode( vue.toDisplayString($options.charArr[index] ? $options.charArr[index] : ""), 1 /* TEXT */ ) ], 64 /* STABLE_FRAGMENT */ )) : (vue.openBlock(), vue.createElementBlock( "text", { key: 4, class: "u-dot" }, vue.toDisplayString($options.charArr[index] ? "●" : ""), 1 /* TEXT */ )) ], 6 /* CLASS, STYLE */ ) ]); }), 128 /* KEYED_FRAGMENT */ )) ]) ]); } const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$r], ["__scopeId", "data-v-d917afbe"], ["__file", "D:/hldy_xcx/uni_modules/vk-uview-ui/components/u-message-input/u-message-input.vue"]]); const _sfc_main$r = { __name: "code", setup(__props, { expose: __expose }) { __expose(); const mobile2 = vue.ref(""); const hkcode = vue.ref(""); const captcha = vue.ref(["", "", "", ""]); const focusedIndex = vue.ref(-1); const isFadingOut = vue.ref(false); const maskColor = vue.ref("rgba(0, 0, 0, 0.5)"); function closeModal() { isFadingOut.value = false; } function filterToSingleDigit(number2) { if (typeof number2 === "number") { return number2 % 10; } return number2; } function isLength4(str) { return typeof str === "string" && str.length === 4; } const finshinput = (res) => { if (isLength4(res)) { submitCaptcha(res); } }; const handleInput = (index, event) => { const val = event.detail.value || ""; captcha.value[index] = val; if (val.length == 4) { const codeStr = event.detail.value.toString().padStart(4, "0"); captcha.value = codeStr.split(""); focusedIndex.value = 3; vue.nextTick(() => { submitCaptcha(); }); } else if (val.length == 2) { captcha.value[index] = filterToSingleDigit(captcha.value[index]); if (captcha.value[index]) { if (index < 3) { focusedIndex.value = index + 1; } } let isFour = true; captcha.value.forEach((number2) => { if (!number2) { isFour = false; } }); vue.nextTick(() => { if (isFour) { submitCaptcha(); } }); } else { if (captcha.value[index]) { if (index < 3) { focusedIndex.value = index + 1; } } let isFour = true; captcha.value.forEach((number2) => { if (!number2) { isFour = false; } }); vue.nextTick(() => { if (isFour) { submitCaptcha(); } }); } }; const handleKeydown = (index, event) => { if (event.key === "Backspace" && !captcha.value[index]) { if (index > 0) { focusedIndex.value = index - 1; } } }; const rightCode = vue.ref(""); const submitCaptcha = (res0) => { const code2 = res0; if (code2.length === 4) { let openid = uni.getStorageSync("openid"); if (rightCode.value != code2) { rightCode.value = code2; checkPhoneCode({ mobile: mobile2.value, openId: openid, smscode: code2 }).then((res) => { if (res.success) { getMessage(openid).then((res2) => { uni.setStorageSync("tel", res2.result.tel); uni.setStorageSync("token", res2.result.token); uni.setStorageSync("serverUrl", res2.result.serverUrl); uni.redirectTo({ url: `/pages/login/specialloginafther` }); }); } else { uni.showToast({ title: res.message, icon: "none", // 不显示图标(提示信息) duration: 2e3 // 显示时长(毫秒) }); } }); } } else { formatAppLog("log", "at pages/login/code.vue:194", "验证码未输入完整"); } }; const getcode = () => { smsCode({ mobile: mobile2.value, hkcode: hkcode.value, smsmode: 1 }).then((res) => { if (res.success) { uni.showToast({ title: "发送成功", icon: "none", // 不显示图标(提示信息) duration: 2e3 // 显示时长(毫秒) }); focusedIndex.value = 0; countdown.value = 60; timerId = setInterval(() => { if (countdown.value > 0) { countdown.value--; } else { clearInterval(timerId); timerId = null; } }, 1e3); } else { uni.showToast({ title: res.message, icon: "none", // 不显示图标(提示信息) duration: 2e3 // 显示时长(毫秒) }); } }); }; const goback = () => { uni.navigateBack(); }; const countdown = vue.ref(0); let timerId = null; vue.onUnmounted(() => { if (timerId) { clearInterval(timerId); } }); onLoad((options) => { mobile2.value = options.mobile; hkcode.value = options.hkcode; getcode(); }); const __returned__ = { mobile: mobile2, hkcode, captcha, focusedIndex, isFadingOut, maskColor, closeModal, filterToSingleDigit, isLength4, finshinput, handleInput, handleKeydown, rightCode, submitCaptcha, getcode, goback, countdown, get timerId() { return timerId; }, set timerId(v) { timerId = v; }, nextTick: vue.nextTick, reactive: vue.reactive, ref: vue.ref, onUnmounted: vue.onUnmounted, get onLoad() { return onLoad; }, get smsCode() { return smsCode; }, get checkPhoneCode() { return checkPhoneCode; }, get getMessage() { return getMessage; } }; Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); return __returned__; } }; function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { const _component_u_message_input = resolveEasycom(vue.resolveDynamicComponent("u-message-input"), __easycom_0$3); return vue.openBlock(), vue.createElementBlock("view", { class: "login-container" }, [ vue.createElementVNode("image", { class: "photo-imge", src: "https://www.focusnu.com/media/directive/login/bgc.png" }), vue.createElementVNode("image", { class: "back-img", src: "https://www.focusnu.com/media/directive/login/back.png", onClick: $setup.goback }), vue.createElementVNode("view", { class: "under-container-title" }, [ vue.createElementVNode("view", { class: "code-title" }, " 请输入验证码 "), vue.createElementVNode("view", { class: "code-number" }, [ vue.createTextVNode(" 验证码已发送到 "), vue.createElementVNode( "view", { class: "code-font" }, vue.toDisplayString($setup.mobile), 1 /* TEXT */ ) ]) ]), vue.createElementVNode("view", { class: "captcha-container" }, [ vue.createVNode(_component_u_message_input, { "active-color": "#333333", "inactive-color": "rgb(175,179,189)", width: "150", focus: true, mode: "bottomLine", onChange: $setup.finshinput }) ]), vue.createElementVNode("view", { class: "under-view", style: { "z-index": "1" } }, [ !$setup.countdown ? (vue.openBlock(), vue.createElementBlock("view", { key: 0, class: "right-blue", onClick: $setup.getcode }, " 重新发送 ")) : vue.createCommentVNode("v-if", true), $setup.countdown ? (vue.openBlock(), vue.createElementBlock("view", { key: 1, class: "right-white" }, [ vue.createElementVNode( "text", { style: { "color": "#0096FF" } }, vue.toDisplayString($setup.countdown) + "秒", 1 /* TEXT */ ), vue.createTextVNode("后重新发送 ") ])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("view", { class: "right-black", onClick: _cache[0] || (_cache[0] = ($event) => $setup.isFadingOut = true) }, " 收不到验证码? ") ]), vue.createCommentVNode(" 遮罩 "), vue.createCommentVNode(' '), $setup.isFadingOut ? (vue.openBlock(), vue.createElementBlock( "view", { key: 0, class: "overlay", onClick: $setup.closeModal, style: vue.normalizeStyle({ backgroundColor: $setup.maskColor }) }, null, 4 /* STYLE */ )) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" \r\n\r\n