bugfix
This commit is contained in:
parent
c0ea3baef1
commit
0ac6c83ead
@ -1,35 +1,35 @@
|
|||||||
{
|
{
|
||||||
"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')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -10,7 +10,8 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"url": "${text}"
|
"url": "${text}"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "recognized",
|
"event": "recognized",
|
||||||
"actiontype": "script",
|
"actiontype": "script",
|
||||||
|
|||||||
@ -1,105 +1,107 @@
|
|||||||
{
|
{
|
||||||
"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",
|
|
||||||
"options":{
|
|
||||||
"tab_wide":"auto",
|
|
||||||
"height":"100%",
|
|
||||||
"width":"100%",
|
|
||||||
"tab_pos":"top",
|
|
||||||
"items":[
|
|
||||||
{
|
{
|
||||||
"name":"userpasswd",
|
"widgettype": "TabPanel",
|
||||||
"label":"用户密码",
|
"options": {
|
||||||
"content":{
|
"tab_wide": "auto",
|
||||||
"widgettype":"Form",
|
"height": "100%",
|
||||||
"options":{
|
"width": "100%",
|
||||||
"cols":1,
|
"tab_pos": "top",
|
||||||
"fields":[
|
"items": [
|
||||||
{
|
{
|
||||||
"name":"username",
|
"name": "userpasswd",
|
||||||
"label":"用户名",
|
"label": "用户密码",
|
||||||
"uitype":"str"
|
"content": {
|
||||||
|
"widgettype": "Form",
|
||||||
|
"options": {
|
||||||
|
"cols": 1,
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "username",
|
||||||
|
"label": "用户名",
|
||||||
|
"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":[
|
"binds": [
|
||||||
{
|
{
|
||||||
"wid":"self",
|
"wid": "self",
|
||||||
"event":"gen_code",
|
"event": "gen_code",
|
||||||
"actiontype":"urlwidget",
|
"actiontype": "urlwidget",
|
||||||
"datawidget":"self",
|
"datawidget": "self",
|
||||||
"datamethod":"getValue",
|
"datamethod": "getValue",
|
||||||
"target":"self",
|
"target": "self",
|
||||||
"options":{
|
"options": {
|
||||||
"url":"{{entire_url('../gen_sms_code.dspy')}}"
|
"url": "{{entire_url('../gen_sms_code.dspy')}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"wid":"self",
|
"wid": "self",
|
||||||
"event":"submit",
|
"event": "submit",
|
||||||
"actiontype":"urlwidget",
|
"actiontype": "urlwidget",
|
||||||
"target":"self",
|
"target": "self",
|
||||||
"options":{
|
"options": {
|
||||||
"url":"{{entire_url('code_login.dspy')}}"
|
"url": "{{entire_url('code_login.dspy')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -107,6 +109,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"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",
|
||||||
@ -28,19 +28,19 @@
|
|||||||
"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')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"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')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"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')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"widgettype":"VBox",
|
"widgettype": "VBox",
|
||||||
"options":{
|
"options": {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -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')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user