debug: promote.dspy去binds排查500
This commit is contained in:
parent
a5c01d6bed
commit
fc73c7d2d6
@ -1,18 +1,14 @@
|
|||||||
# Customer promote page - scan QR code to claim discount
|
|
||||||
code = params_kw.get('code', '')
|
code = params_kw.get('code', '')
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
"widgettype": "Form",
|
"widgettype": "Form",
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%", "height": "100%",
|
||||||
"height": "100%",
|
|
||||||
"url": "/discount/generate_qr.dspy?code=" + code,
|
"url": "/discount/generate_qr.dspy?code=" + code,
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"fields": [
|
"fields": [
|
||||||
{"name": "valid_term", "label": "有效期", "uitype": "str", "tip": "格式:xY, xM, xD"},
|
{"name": "valid_term", "label": "有效期", "uitype": "str", "tip": "格式:xY, xM, xD"},
|
||||||
{"name": "expired_date", "label": "促销失效日期", "uitype": "date", "tip": "需在此日期前使用"},
|
{"name": "expired_date", "label": "促销失效日期", "uitype": "date"},
|
||||||
{"name": "discount", "label": "折扣", "uitype": "float", "tip": "0<折扣<1"}
|
{"name": "discount", "label": "折扣", "uitype": "float", "tip": "0<折扣<1"}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"binds": [{"wid": "self", "event": "submited", "actiontype": "script", "target": "self", "script": "await bricks.show_resp_message_or_error(event.params)"}]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user