From 2b70c47a455b68290e9810e82cb4b91e18cb5246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 24 Sep 2025 18:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E8=A7=A6=E5=8F=91=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form-input/components/form-input/phone.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pages/form-input/components/form-input/phone.vue b/pages/form-input/components/form-input/phone.vue index 2b7687fd..fb57c9a4 100644 --- a/pages/form-input/components/form-input/phone.vue +++ b/pages/form-input/components/form-input/phone.vue @@ -86,12 +86,12 @@ }; }, watch: { - // propValue: { - // handler(newVal) { - // this.init(); - // }, - // deep: true - // }, + propValue: { + handler(newVal) { + this.init(); + }, + deep: true + }, propKey(val) { // 初始化 this.init(); @@ -105,9 +105,6 @@ isEmpty, init() { const com_data = this.propValue; - if (com_data.is_img_sms_verification == '1') { - this.image_verify_event('sms'); - } this.setData({ com_data: com_data, placeholder: com_data.placeholder, @@ -151,6 +148,8 @@ popup_image_verify_status: true, verify_disabled: true, }); + // 获取图片验证码 + this.image_verify_event('sms'); // 进行操作时,将当前组件的层级调到最高,避免弹出框被其他的盖住 this.z_index_change(this.propDataId); } else {