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,28 +1,27 @@
{ {
"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":"user register", "title": "user register",
"description":"base info we need is username, password and a cell phone number", "description": "base info we need is username, password and a cell phone number",
"fields": [
"fields":[
{ {
"name": "username", "name": "username",
"title": "\u7528\u6237\u540d", "title": "用户名",
"type": "str", "type": "str",
"length": 255, "length": 255,
"uitype": "str", "uitype": "str",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u7528\u6237\u540d" "label": "用户名"
}, },
{ {
"name": "password", "name": "password",
@ -30,8 +29,8 @@
"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",
@ -39,39 +38,40 @@
"length": 255, "length": 255,
"uitype": "password", "uitype": "password",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u5bc6\u7801" "label": "密码"
}, },
{ {
"name": "email", "name": "email",
"title": "\u90ae\u4ef6\u5730\u5740", "title": "邮件地址",
"type": "str", "type": "str",
"length": 255, "length": 255,
"uitype": "str", "uitype": "str",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u90ae\u4ef6\u5730\u5740" "label": "邮件地址"
}, },
{ {
"name": "mobile", "name": "mobile",
"title": "\u624b\u673a", "title": "手机",
"type": "str", "type": "str",
"length": 255, "length": 255,
"uitype": "str", "uitype": "str",
"datatype": "str", "datatype": "str",
"required":true, "required": true,
"label": "\u624b\u673a" "label": "手机"
} }
] ]
}, },
"binds":[ "binds": [
{ {
"wid":"self", "wid": "self",
"event":"submit", "event": "submit",
"actiontype":"urlwidget", "actiontype": "urlwidget",
"target":"self", "target": "self",
"options":{ "options": {
"url":"{{entire_url('register.dspy')}}" "method": "POST",
"url": "{{entire_url('register.dspy')}}"
} }
} }
] ]