From 8d6546bdfa15236b93c2027bd65d0eee07a0e562 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Tue, 3 Jun 2025 09:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=9F=E6=88=90=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=B8=A6=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/modify_visitor/modify_visitor.vue | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue index 41be135..4928c97 100644 --- a/pages/modify_visitor/modify_visitor.vue +++ b/pages/modify_visitor/modify_visitor.vue @@ -78,6 +78,7 @@ var method = 'POST' if(this.vid){ param.id = this.vid + param.get_idcard = 1 req = 'api/user/update_visitor' } @@ -94,14 +95,20 @@ }); }, getVisitorInfo() { - this.visitor_info = JSON.parse(uni.getStorageSync('visitor_info_'+ this.vid)) - this.name = this.visitor_info.name - this.idcard = this.visitor_info.idcard - this.phone = this.visitor_info.phone - this.nameRule = true - this.idcardExtRule = true - this.phoneRule = true - this.checkSubmit() + var param = new Object() + param.vid = this.vid + + this.$http.req('api/user/get_modify_visitor', param, 'POST').then(data=>{ + if(data == -1) return + this.name = data.name + this.idcard = data.idcard + this.phone = data.phone + this.nameRule = true + this.idcardExtRule = true + this.phoneRule = true + this.checkSubmit() + }); + }, nameBlurEvent(value, res){ this.name = value