From 0ac6c83ead62e6bd897ac3efb27f41d86d830ebb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 18 May 2026 16:00:42 +0800 Subject: [PATCH] bugfix --- wwwroot/add_adminuser.ui | 70 ++++----- wwwroot/qr_scan.ui | 41 ++--- wwwroot/user/login.ui | 224 ++++++++++++++------------- wwwroot/user/reset_password/index.ui | 96 ++++++------ wwwroot/user/user.ui | 28 ++-- wwwroot/user/user_panel.ui | 28 ++-- wwwroot/user/wechat_login.ui | 7 +- wwwroot/userpassword_login.ui | 81 +++++----- 8 files changed, 288 insertions(+), 287 deletions(-) diff --git a/wwwroot/add_adminuser.ui b/wwwroot/add_adminuser.ui index 7e58462..186efe4 100644 --- a/wwwroot/add_adminuser.ui +++ b/wwwroot/add_adminuser.ui @@ -1,36 +1,36 @@ { - "widgettype":"ModalForm", - "options":{ - "cwidth":20, - "cheight":30, - "title":"增加管理员", - "fields":[ - { - "name":"username", - "label":"用户名", - "uitype":"str" - }, - { - "name":"password", - "label":"密码", - "uitype":"password" - }, - { - "name":"chkpassword", - "label":"确认密码", - "uitype":"password" - } - ] - }, - "binds":[ - { - "wid":"self", - "event":"submit", - "actiontype":"urlwidget", - "target":"self", - "options":{ - "url":"{{entire_url('./add_adminuser.dspy')}}" - } - } - ] -} + "widgettype": "ModalForm", + "options": { + "cwidth": 20, + "cheight": 30, + "title": "增加管理员", + "fields": [ + { + "name": "username", + "label": "用户名", + "uitype": "str" + }, + { + "name": "password", + "label": "密码", + "uitype": "password" + }, + { + "name": "chkpassword", + "label": "确认密码", + "uitype": "password" + } + ] + }, + "binds": [ + { + "wid": "self", + "event": "submit", + "actiontype": "urlwidget", + "target": "self", + "options": { + "url": "{{entire_url('./add_adminuser.dspy')}}" + } + } + ] +} \ No newline at end of file diff --git a/wwwroot/qr_scan.ui b/wwwroot/qr_scan.ui index 1e5e4de..7af4402 100644 --- a/wwwroot/qr_scan.ui +++ b/wwwroot/qr_scan.ui @@ -1,21 +1,22 @@ { - "widgettype": "QRCodeScan", - "options": {}, - "binds": [ - { - "wid": "self", - "event": "recognized", - "actiontype": "urlwidget", - "target": "root.page_center", - "options": { - "url": "${text}" - } - }, { - "wid": "self", - "event": "recognized", - "actiontype": "script", - "target": "-@PopupWindow", - "script": "this.dismiss()" - } - ] -} + "widgettype": "QRCodeScan", + "options": {}, + "binds": [ + { + "wid": "self", + "event": "recognized", + "actiontype": "urlwidget", + "target": "root.page_center", + "options": { + "url": "${text}" + } + }, + { + "wid": "self", + "event": "recognized", + "actiontype": "script", + "target": "-@PopupWindow", + "script": "this.dismiss()" + } + ] +} \ No newline at end of file diff --git a/wwwroot/user/login.ui b/wwwroot/user/login.ui index ab6e1b1..7283bac 100644 --- a/wwwroot/user/login.ui +++ b/wwwroot/user/login.ui @@ -1,112 +1,114 @@ { - "id":"login_window", - "widgettype":"PopupWindow", - "options":{ - "title": "登录/注册", - "auto_open":true, - "anthor":"cc", - "cwidth":22, - "cheight":19 - }, - "subwidgets":[ -{ - "widgettype":"TabPanel", - "options":{ - "tab_wide":"auto", - "height":"100%", - "width":"100%", - "tab_pos":"top", - "items":[ - { - "name":"userpasswd", - "label":"用户密码", - "content":{ - "widgettype":"Form", - "options":{ - "cols":1, - "fields":[ - { - "name":"username", - "label":"用户名", - "uitype":"str" - }, - { - "name":"password", - "label":"密码", - "uitype":"password" - } - ] - }, - "binds":[ - { - "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":"gen_code", - "label":"发送验证码" - } - ] - }, - "description":"限中国国内手机", - "fields":[ - { - "name":"cell_no", - "label":"手机号", - "uitype":"str" - },{ - "name":"codeid", - "uitype":"hide", - "value":"{{uuid()}}" - },{ - "name":"check_code", - "uitype":"str" - } - ] - }, - "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":"submit", - "actiontype":"urlwidget", - "target":"self", - "options":{ - "url":"{{entire_url('code_login.dspy')}}" - } - } - ] - } - } - ] - } -} - ] -} + "id": "login_window", + "widgettype": "PopupWindow", + "options": { + "title": "登录/注册", + "auto_open": true, + "anthor": "cc", + "cwidth": 22, + "cheight": 19 + }, + "subwidgets": [ + { + "widgettype": "TabPanel", + "options": { + "tab_wide": "auto", + "height": "100%", + "width": "100%", + "tab_pos": "top", + "items": [ + { + "name": "userpasswd", + "label": "用户密码", + "content": { + "widgettype": "Form", + "options": { + "cols": 1, + "fields": [ + { + "name": "username", + "label": "用户名", + "uitype": "str" + }, + { + "name": "password", + "label": "密码", + "uitype": "password" + } + ] + }, + "binds": [ + { + "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": "gen_code", + "label": "发送验证码" + } + ] + }, + "description": "限中国国内手机", + "fields": [ + { + "name": "cell_no", + "label": "手机号", + "uitype": "str" + }, + { + "name": "codeid", + "uitype": "hide", + "value": "{{uuid()}}" + }, + { + "name": "check_code", + "uitype": "str" + } + ] + }, + "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": "submit", + "actiontype": "urlwidget", + "target": "self", + "options": { + "url": "{{entire_url('code_login.dspy')}}" + } + } + ] + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/wwwroot/user/reset_password/index.ui b/wwwroot/user/reset_password/index.ui index 8cec34a..cb9f14d 100644 --- a/wwwroot/user/reset_password/index.ui +++ b/wwwroot/user/reset_password/index.ui @@ -1,49 +1,49 @@ { - "widgettype":"PopupWindow", - "options":{ - "cwidth":22, - "height":"75%", - "archor":"cc", - "auto_open":true - }, - "subwidgets":[ - { - "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" - }, - { - "name": "cfm_password", - "type": "str", - "length": 255, - "uitype": "password", - "datatype": "str", - "required":true, - "label": "\u5bc6\u7801" - } - ] - }, - "binds":[ - { - "wid":"self", - "event":"submit", - "actiontype":"urlwidget", - "target":"self", - "options":{ - "url":"{{entire_url('reset_password.dspy')}}" - } - } - ] - } - ] -} + "widgettype": "PopupWindow", + "options": { + "cwidth": 22, + "height": "75%", + "archor": "cc", + "auto_open": true + }, + "subwidgets": [ + { + "widgettype": "Form", + "options": { + "title": "Reset Password", + "description": "reset yourself password", + "fields": [ + { + "name": "password", + "type": "str", + "length": 255, + "uitype": "password", + "datatype": "str", + "required": true, + "label": "密码" + }, + { + "name": "cfm_password", + "type": "str", + "length": 255, + "uitype": "password", + "datatype": "str", + "required": true, + "label": "密码" + } + ] + }, + "binds": [ + { + "wid": "self", + "event": "submit", + "actiontype": "urlwidget", + "target": "self", + "options": { + "url": "{{entire_url('reset_password.dspy')}}" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/wwwroot/user/user.ui b/wwwroot/user/user.ui index 411f2bc..4cea67e 100644 --- a/wwwroot/user/user.ui +++ b/wwwroot/user/user.ui @@ -1,15 +1,15 @@ { - "id":"user_container", - "widgettype":"VBox", - "options":{ - "cwidth":6 - }, - "subwidgets":[ - { - "widgettype":"urlwidget", - "options":{ - "url":"{{entire_url('userinfo.ui')}}" - } - } - ] -} + "id": "user_container", + "widgettype": "VBox", + "options": { + "cwidth": 6 + }, + "subwidgets": [ + { + "widgettype": "urlwidget", + "options": { + "url": "{{entire_url('userinfo.ui')}}" + } + } + ] +} \ No newline at end of file diff --git a/wwwroot/user/user_panel.ui b/wwwroot/user/user_panel.ui index e80acaa..833201c 100644 --- a/wwwroot/user/user_panel.ui +++ b/wwwroot/user/user_panel.ui @@ -1,15 +1,15 @@ { - "id":"user_panel", - "widgettype":"VBox", - "options":{ - "width":"auto" - }, - "subwidgets":[ - { - "widgettype":"urlwidget", - "options":{ - "url":"{{entire_url('user.ui')}}" - } - } - ] -} + "id": "user_panel", + "widgettype": "VBox", + "options": { + "width": "auto" + }, + "subwidgets": [ + { + "widgettype": "urlwidget", + "options": { + "url": "{{entire_url('user.ui')}}" + } + } + ] +} \ No newline at end of file diff --git a/wwwroot/user/wechat_login.ui b/wwwroot/user/wechat_login.ui index 9f65d1d..f6bf431 100644 --- a/wwwroot/user/wechat_login.ui +++ b/wwwroot/user/wechat_login.ui @@ -1,5 +1,4 @@ { - "widgettype":"VBox", - "options":{ - } -} + "widgettype": "VBox", + "options": {} +} \ No newline at end of file diff --git a/wwwroot/userpassword_login.ui b/wwwroot/userpassword_login.ui index e8933ad..2d3a837 100644 --- a/wwwroot/userpassword_login.ui +++ b/wwwroot/userpassword_login.ui @@ -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":[ - { - "widgettype":"Form", - "id":"userpasswd", - "options":{ - "cols":1, - "fields":[ - { - "name":"username", - "label":"用户名", - "uitype":"str" - }, - { - "name":"passwd", - "label":"密码", - "uitype":"password" - } - ] - } - } - ], - "binds":[ - { - "wid":"userpasswd", - "event":"submit", - "actiontype":"urlwidget", - "target":"self", - "options":{ - "url":"{{entire_url('userpassword_login.dspy')}}" - } - } - ] -} - + "subwidgets": [ + { + "widgettype": "Form", + "id": "userpasswd", + "options": { + "cols": 1, + "fields": [ + { + "name": "username", + "label": "用户名", + "uitype": "str" + }, + { + "name": "passwd", + "label": "密码", + "uitype": "password" + } + ] + } + } + ], + "binds": [ + { + "wid": "userpasswd", + "event": "submit", + "actiontype": "urlwidget", + "target": "self", + "options": { + "url": "{{entire_url('userpassword_login.dspy')}}" + } + } + ] +} \ No newline at end of file