ui: 认证弹窗正文和按钮改为上下排列,点击打开后关闭弹窗
This commit is contained in:
parent
967d1c728c
commit
c9bc2da46b
@ -18,18 +18,30 @@ if result.get('success'):
|
|||||||
h5_link = result.get('h5_link', '')
|
h5_link = result.get('h5_link', '')
|
||||||
return json.dumps({
|
return json.dumps({
|
||||||
"widgettype": "Message",
|
"widgettype": "Message",
|
||||||
"options": {"title": "真人认证", "message": "认证会话已创建,请点击按钮在新窗口中完成真人认证"},
|
"id": "verify_msg_popup",
|
||||||
|
"options": {"title": "真人认证", "message": ""},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "VBox",
|
||||||
"options": {"label": "打开认证页面"},
|
"options": {"padding": "8px", "gap": "12px"},
|
||||||
"binds": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"wid": "self",
|
"widgettype": "Text",
|
||||||
"event": "click",
|
"options": {"text": "认证会话已创建,请点击按钮在新窗口中完成真人认证"}
|
||||||
"actiontype": "script",
|
},
|
||||||
"target": "self",
|
{
|
||||||
"script": "window.open('" + h5_link + "', '_blank')"
|
"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