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

View File

@ -10,7 +10,8 @@
"options": {
"url": "${text}"
}
}, {
},
{
"wid": "self",
"event": "recognized",
"actiontype": "script",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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