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();" + } + ] } ] }