From 938cb29e98fd1395f3b94cf75e56f95ccdd94b19 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 15 Jan 2026 14:30:12 +0800 Subject: [PATCH] no message --- uni_modules/rh-ui/changelog.md | 2 + uni_modules/rh-ui/components/rh-apply/rh-apply.vue | 80 ++++++++++++---------- uni_modules/rh-ui/package.json | 6 +- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/uni_modules/rh-ui/changelog.md b/uni_modules/rh-ui/changelog.md index 11ed09e..d3cf4f1 100644 --- a/uni_modules/rh-ui/changelog.md +++ b/uni_modules/rh-ui/changelog.md @@ -1,3 +1,5 @@ +## 1.0.923(2026-01-15) +迭代 ## 1.0.922(2026-01-15) 迭代 ## 1.0.921(2026-01-15) diff --git a/uni_modules/rh-ui/components/rh-apply/rh-apply.vue b/uni_modules/rh-ui/components/rh-apply/rh-apply.vue index 6446bdb..56b05e5 100644 --- a/uni_modules/rh-ui/components/rh-apply/rh-apply.vue +++ b/uni_modules/rh-ui/components/rh-apply/rh-apply.vue @@ -114,44 +114,7 @@ export default { onReady() { rhJS.setNavStyle(); let that = this; - uni.$on("getTownsman", (data) => { - // 前端本地处理根据身份证号获取年龄 - if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) { - let infoByIDcard = rhJS.getInfoByIDcard(data.info.idCard); - data.info.age = infoByIDcard.age; - } - - if (that.persenInfo.length == 0) { - that.persenInfo[0] = { - ...data.info, - index: that.persenInfo.length, - }; - } else if (data.info.index || data.info.index === 0) { - that.persenInfo[data.info.index] = data.info; - } else { - that.persenInfo[that.persenInfo.length] = { - ...data.info, - index: that.persenInfo.length, - }; - } - that.$forceUpdate(); - }); - uni.$on("changeJobInfo", function (data) { - that.updateInfo.jobId = data.info.leafCateId; - that.updateInfo.jobName = data.info.title; - that.currentJobInfo = data.info; - - that.jobType = data.info.jobType; - console.log("data.info", data.info); - that.getJobDetail(data.info); - that.$forceUpdate(); - }); - uni.$on("resetTownsman", function (data) { - if (data.reset) { - that.persenInfo = []; - } - that.$forceUpdate(); - }); + console.log('0115 000 是否执行') }, onShareAppMessage() { return rhJS.shareFun(); @@ -169,6 +132,7 @@ export default { } }, mounted() { + console.log('0115 002 是否执行') let that = this; let options = this.dataoptions; let params = options.params ? JSON.parse(options.params) : {}; @@ -209,6 +173,45 @@ export default { that.setFormList(); } }, 1); + uni.$on("getTownsman", (data) => { + console.log('0115 001 是否执行') + // 前端本地处理根据身份证号获取年龄 + if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) { + let infoByIDcard = rhJS.getInfoByIDcard(data.info.idCard); + data.info.age = infoByIDcard.age; + } + + if (that.persenInfo.length == 0) { + that.persenInfo[0] = { + ...data.info, + index: that.persenInfo.length, + }; + } else if (data.info.index || data.info.index === 0) { + that.persenInfo[data.info.index] = data.info; + } else { + that.persenInfo[that.persenInfo.length] = { + ...data.info, + index: that.persenInfo.length, + }; + } + that.$forceUpdate(); + }); + uni.$on("changeJobInfo", function (data) { + that.updateInfo.jobId = data.info.leafCateId; + that.updateInfo.jobName = data.info.title; + that.currentJobInfo = data.info; + + that.jobType = data.info.jobType; + console.log("data.info", data.info); + that.getJobDetail(data.info); + that.$forceUpdate(); + }); + uni.$on("resetTownsman", function (data) { + if (data.reset) { + that.persenInfo = []; + } + that.$forceUpdate(); + }); }, data() { return { @@ -247,6 +250,7 @@ export default { onShow() { let that = this; that.pageSpeed = -1; + console.log('0115 003 是否执行') }, methods: { getTownsManInfo(info) { diff --git a/uni_modules/rh-ui/package.json b/uni_modules/rh-ui/package.json index 30de308..2b20392 100644 --- a/uni_modules/rh-ui/package.json +++ b/uni_modules/rh-ui/package.json @@ -1,7 +1,7 @@ { "id": "rh-ui", "displayName": "rh-ui", - "version": "1.0.922", + "version": "1.0.923", "description": "公司内部UI框架", "keywords": [ "ui框架" @@ -61,11 +61,11 @@ }, "nvue": "-", "android": { - "extVersion": "1.0.922", + "extVersion": "1.0.923", "minVersion": "19" }, "ios": { - "extVersion": "1.0.922", + "extVersion": "1.0.923", "minVersion": "12" }, "harmony": "-"