From c9bc2da46b3405a374d4e2382b16cd4756898578 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 30 May 2026 00:38:46 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E8=AE=A4=E8=AF=81=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=AD=A3=E6=96=87=E5=92=8C=E6=8C=89=E9=92=AE=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=8E=92=E5=88=97,=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=90=8E=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/submit_create_validate.dspy | 30 +++++++++++++++++-------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/wwwroot/api/submit_create_validate.dspy b/wwwroot/api/submit_create_validate.dspy index 3a1b71e..97e4b5d 100644 --- a/wwwroot/api/submit_create_validate.dspy +++ b/wwwroot/api/submit_create_validate.dspy @@ -18,18 +18,30 @@ if result.get('success'): h5_link = result.get('h5_link', '') return json.dumps({ "widgettype": "Message", - "options": {"title": "真人认证", "message": "认证会话已创建,请点击按钮在新窗口中完成真人认证"}, + "id": "verify_msg_popup", + "options": {"title": "真人认证", "message": ""}, "subwidgets": [ { - "widgettype": "Button", - "options": {"label": "打开认证页面"}, - "binds": [ + "widgettype": "VBox", + "options": {"padding": "8px", "gap": "12px"}, + "subwidgets": [ { - "wid": "self", - "event": "click", - "actiontype": "script", - "target": "self", - "script": "window.open('" + h5_link + "', '_blank')" + "widgettype": "Text", + "options": {"text": "认证会话已创建,请点击按钮在新窗口中完成真人认证"} + }, + { + "widgettype": "Button", + "id": "open_verify_btn", + "options": {"label": "打开认证页面"}, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "script", + "target": "self", + "script": "window.open('" + h5_link + "', '_blank'); var p = bricks.getWidgetById('verify_msg_popup', bricks.app); if(p) p.destroy();" + } + ] } ] }