ui: 认证弹窗正文和按钮改为上下排列,点击打开后关闭弹窗
This commit is contained in:
parent
967d1c728c
commit
c9bc2da46b
@ -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();"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user