bugfix
This commit is contained in:
parent
c0ea3baef1
commit
0ac6c83ead
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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()"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,5 +1,4 @@
|
||||
{
|
||||
"widgettype":"VBox",
|
||||
"options":{
|
||||
}
|
||||
}
|
||||
"widgettype": "VBox",
|
||||
"options": {}
|
||||
}
|
||||
@ -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')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user