fix: add POST method to register form submit binding

This commit is contained in:
yumoqing 2026-05-12 10:41:50 +08:00
parent 15079c356b
commit fb5a24c240

View File

@ -1,80 +1,80 @@
{
"widgettype":"PopupWindow",
"options":{
"cwidth":22,
"height":"75%",
"archor":"cc",
"auto_open":true
},
"subwidgets":[
{
"widgettype":"Form",
"options":{
"title":"user register",
"description":"base info we need is username, password and a cell phone number",
"fields":[
{
"name": "username",
"title": "\u7528\u6237\u540d",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required":true,
"label": "\u7528\u6237\u540d"
},
{
"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"
},
{
"name": "email",
"title": "\u90ae\u4ef6\u5730\u5740",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required":true,
"label": "\u90ae\u4ef6\u5730\u5740"
},
{
"name": "mobile",
"title": "\u624b\u673a",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required":true,
"label": "\u624b\u673a"
}
]
},
"binds":[
{
"wid":"self",
"event":"submit",
"actiontype":"urlwidget",
"target":"self",
"options":{
"url":"{{entire_url('register.dspy')}}"
}
}
]
}
]
}
"widgettype": "PopupWindow",
"options": {
"cwidth": 22,
"height": "75%",
"archor": "cc",
"auto_open": true
},
"subwidgets": [
{
"widgettype": "Form",
"options": {
"title": "user register",
"description": "base info we need is username, password and a cell phone number",
"fields": [
{
"name": "username",
"title": "用户名",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required": true,
"label": "用户名"
},
{
"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": "密码"
},
{
"name": "email",
"title": "邮件地址",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required": true,
"label": "邮件地址"
},
{
"name": "mobile",
"title": "手机",
"type": "str",
"length": 255,
"uitype": "str",
"datatype": "str",
"required": true,
"label": "手机"
}
]
},
"binds": [
{
"wid": "self",
"event": "submit",
"actiontype": "urlwidget",
"target": "self",
"options": {
"method": "POST",
"url": "{{entire_url('register.dspy')}}"
}
}
]
}
]
}