fix(storefront): purchase_confirm 支付fetch改绝对路径——.dspy非Jinja2渲染,{{entire_url()}}原样进浏览器导致支付按钮无响应
This commit is contained in:
parent
9e411bc9cd
commit
c32fa00c62
@ -106,7 +106,7 @@ else:
|
||||
)
|
||||
pay_script += (
|
||||
"var btn=this; btn.disabled=true;"
|
||||
"fetch('{{entire_url(\"./api/purchase_realtime.dspy\")}}',"
|
||||
"fetch('/product_management/storefront/api/purchase_realtime.dspy',"
|
||||
"{method:'POST',body:params}).then(function(r){return r.json()})"
|
||||
".then(function(msg){btn.disabled=false;"
|
||||
"if(msg.widgettype){bricks.widgetBuild(msg).then(function(w){if(w)w.open()})}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user