This commit is contained in:
yumoqing 2026-05-18 16:00:42 +08:00
parent c0ea3baef1
commit 0ac6c83ead
8 changed files with 288 additions and 287 deletions

View File

@ -1,36 +1,36 @@
{ {
"widgettype":"ModalForm", "widgettype": "ModalForm",
"options":{ "options": {
"cwidth":20, "cwidth": 20,
"cheight":30, "cheight": 30,
"title":"增加管理员", "title": "增加管理员",
"fields":[ "fields": [
{ {
"name":"username", "name": "username",
"label":"用户名", "label": "用户名",
"uitype":"str" "uitype": "str"
}, },
{ {
"name":"password", "name": "password",
"label":"密码", "label": "密码",
"uitype":"password" "uitype": "password"
}, },
{ {
"name":"chkpassword", "name": "chkpassword",
"label":"确认密码", "label": "确认密码",
"uitype":"password" "uitype": "password"
} }
] ]
}, },
"binds":[ "binds": [
{ {
"wid":"self", "wid": "self",
"event":"submit", "event": "submit",
"actiontype":"urlwidget", "actiontype": "urlwidget",
"target":"self", "target": "self",
"options":{ "options": {
"url":"{{entire_url('./add_adminuser.dspy')}}" "url": "{{entire_url('./add_adminuser.dspy')}}"
} }
} }
] ]
} }

View File

@ -1,21 +1,22 @@
{ {
"widgettype": "QRCodeScan", "widgettype": "QRCodeScan",
"options": {}, "options": {},
"binds": [ "binds": [
{ {
"wid": "self", "wid": "self",
"event": "recognized", "event": "recognized",
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "root.page_center", "target": "root.page_center",
"options": { "options": {
"url": "${text}" "url": "${text}"
} }
}, { },
"wid": "self", {
"event": "recognized", "wid": "self",
"actiontype": "script", "event": "recognized",
"target": "-@PopupWindow", "actiontype": "script",
"script": "this.dismiss()" "target": "-@PopupWindow",
} "script": "this.dismiss()"
] }
} ]
}

View File

@ -1,112 +1,114 @@
{ {
"id":"login_window", "id": "login_window",
"widgettype":"PopupWindow", "widgettype": "PopupWindow",
"options":{ "options": {
"title": "登录/注册", "title": "登录/注册",
"auto_open":true, "auto_open": true,
"anthor":"cc", "anthor": "cc",
"cwidth":22, "cwidth": 22,
"cheight":19 "cheight": 19
}, },
"subwidgets":[ "subwidgets": [
{ {
"widgettype":"TabPanel", "widgettype": "TabPanel",
"options":{ "options": {
"tab_wide":"auto", "tab_wide": "auto",
"height":"100%", "height": "100%",
"width":"100%", "width": "100%",
"tab_pos":"top", "tab_pos": "top",
"items":[ "items": [
{ {
"name":"userpasswd", "name": "userpasswd",
"label":"用户密码", "label": "用户密码",
"content":{ "content": {
"widgettype":"Form", "widgettype": "Form",
"options":{ "options": {
"cols":1, "cols": 1,
"fields":[ "fields": [
{ {
"name":"username", "name": "username",
"label":"用户名", "label": "用户名",
"uitype":"str" "uitype": "str"
}, },
{ {
"name":"password", "name": "password",
"label":"密码", "label": "密码",
"uitype":"password" "uitype": "password"
} }
] ]
}, },
"binds":[ "binds": [
{ {
"wid":"self", "wid": "self",
"event":"submit", "event": "submit",
"actiontype":"urlwidget", "actiontype": "urlwidget",
"target":"self", "target": "self",
"options":{ "options": {
"method":"POST", "method": "POST",
"url":"{{entire_url('up_login.dspy')}}" "url": "{{entire_url('up_login.dspy')}}"
} }
} }
] ]
} }
}, },
{ {
"name":"checkcode", "name": "checkcode",
"label":"手机验证码", "label": "手机验证码",
"content":{ "content": {
"widgettype":"Form", "widgettype": "Form",
"options":{ "options": {
"toolbar":{ "toolbar": {
"tools":[ "tools": [
{ {
"name":"gen_code", "name": "gen_code",
"label":"发送验证码" "label": "发送验证码"
} }
] ]
}, },
"description":"限中国国内手机", "description": "限中国国内手机",
"fields":[ "fields": [
{ {
"name":"cell_no", "name": "cell_no",
"label":"手机号", "label": "手机号",
"uitype":"str" "uitype": "str"
},{ },
"name":"codeid", {
"uitype":"hide", "name": "codeid",
"value":"{{uuid()}}" "uitype": "hide",
},{ "value": "{{uuid()}}"
"name":"check_code", },
"uitype":"str" {
} "name": "check_code",
] "uitype": "str"
}, }
"binds":[ ]
{ },
"wid":"self", "binds": [
"event":"gen_code", {
"actiontype":"urlwidget", "wid": "self",
"datawidget":"self", "event": "gen_code",
"datamethod":"getValue", "actiontype": "urlwidget",
"target":"self", "datawidget": "self",
"options":{ "datamethod": "getValue",
"url":"{{entire_url('../gen_sms_code.dspy')}}" "target": "self",
} "options": {
}, "url": "{{entire_url('../gen_sms_code.dspy')}}"
{ }
"wid":"self", },
"event":"submit", {
"actiontype":"urlwidget", "wid": "self",
"target":"self", "event": "submit",
"options":{ "actiontype": "urlwidget",
"url":"{{entire_url('code_login.dspy')}}" "target": "self",
} "options": {
} "url": "{{entire_url('code_login.dspy')}}"
] }
} }
} ]
] }
} }
} ]
] }
} }
]
}

View File

@ -1,49 +1,49 @@
{ {
"widgettype":"PopupWindow", "widgettype": "PopupWindow",
"options":{ "options": {
"cwidth":22, "cwidth": 22,
"height":"75%", "height": "75%",
"archor":"cc", "archor": "cc",
"auto_open":true "auto_open": true
}, },
"subwidgets":[ "subwidgets": [
{ {
"widgettype":"Form", "widgettype": "Form",
"options":{ "options": {
"title":"Reset Password", "title": "Reset Password",
"description":"reset yourself password", "description": "reset yourself password",
"fields":[ "fields": [
{ {
"name": "password", "name": "password",
"type": "str", "type": "str",
"length": 255, "length": 255,
"uitype": "password", "uitype": "password",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u5bc6\u7801" "label": "密码"
}, },
{ {
"name": "cfm_password", "name": "cfm_password",
"type": "str", "type": "str",
"length": 255, "length": 255,
"uitype": "password", "uitype": "password",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u5bc6\u7801" "label": "密码"
} }
] ]
}, },
"binds":[ "binds": [
{ {
"wid":"self", "wid": "self",
"event":"submit", "event": "submit",
"actiontype":"urlwidget", "actiontype": "urlwidget",
"target":"self", "target": "self",
"options":{ "options": {
"url":"{{entire_url('reset_password.dspy')}}" "url": "{{entire_url('reset_password.dspy')}}"
} }
} }
] ]
} }
] ]
} }

View File

@ -1,15 +1,15 @@
{ {
"id":"user_container", "id": "user_container",
"widgettype":"VBox", "widgettype": "VBox",
"options":{ "options": {
"cwidth":6 "cwidth": 6
}, },
"subwidgets":[ "subwidgets": [
{ {
"widgettype":"urlwidget", "widgettype": "urlwidget",
"options":{ "options": {
"url":"{{entire_url('userinfo.ui')}}" "url": "{{entire_url('userinfo.ui')}}"
} }
} }
] ]
} }

View File

@ -1,15 +1,15 @@
{ {
"id":"user_panel", "id": "user_panel",
"widgettype":"VBox", "widgettype": "VBox",
"options":{ "options": {
"width":"auto" "width": "auto"
}, },
"subwidgets":[ "subwidgets": [
{ {
"widgettype":"urlwidget", "widgettype": "urlwidget",
"options":{ "options": {
"url":"{{entire_url('user.ui')}}" "url": "{{entire_url('user.ui')}}"
} }
} }
] ]
} }

View File

@ -1,5 +1,4 @@
{ {
"widgettype":"VBox", "widgettype": "VBox",
"options":{ "options": {}
} }
}

View File

@ -1,43 +1,42 @@
{ {
"id":"login_window", "id": "login_window",
"widgettype":"PopupWindow", "widgettype": "PopupWindow",
"options":{ "options": {
"auto_open":true, "auto_open": true,
"anthor":"cc", "anthor": "cc",
"cwidth":20, "cwidth": 20,
"cheight":"14" "cheight": "14"
}, },
"subwidgets":[ "subwidgets": [
{ {
"widgettype":"Form", "widgettype": "Form",
"id":"userpasswd", "id": "userpasswd",
"options":{ "options": {
"cols":1, "cols": 1,
"fields":[ "fields": [
{ {
"name":"username", "name": "username",
"label":"用户名", "label": "用户名",
"uitype":"str" "uitype": "str"
}, },
{ {
"name":"passwd", "name": "passwd",
"label":"密码", "label": "密码",
"uitype":"password" "uitype": "password"
} }
] ]
} }
} }
], ],
"binds":[ "binds": [
{ {
"wid":"userpasswd", "wid": "userpasswd",
"event":"submit", "event": "submit",
"actiontype":"urlwidget", "actiontype": "urlwidget",
"target":"self", "target": "self",
"options":{ "options": {
"url":"{{entire_url('userpassword_login.dspy')}}" "url": "{{entire_url('userpassword_login.dspy')}}"
} }
} }
] ]
} }