pilibaba.twig (1725B)
1 {% if auto_submit %} 2 <!DOCTYPE html> 3 <html> 4 <head> 5 </head> 6 <body> 7 {% endif %} 8 <form action="{{ url }}" id="pilibaba-form" method="post"> 9 <input type="hidden" name="version" value="{{ version }}"> 10 <input type="hidden" name="merchantNo" value="{{ merchantNo }}"> 11 <input type="hidden" name="currencyType" value="{{ currencyType }}"> 12 <input type="hidden" name="orderNo" value="{{ orderNo }}"> 13 <input type="hidden" name="orderAmount" value="{{ orderAmount }}"> 14 <input type="hidden" name="orderTime" value="{{ orderTime }}"> 15 <input type="hidden" name="pageUrl" value="{{ pageUrl }}"> 16 <input type="hidden" name="serverUrl" value="{{ serverUrl }}"> 17 <input type="hidden" name="redirectUrl" value="{{ redirectUrl }}"> 18 <input type="hidden" name="notifyType" value="{{ notifyType }}"> 19 <input type="hidden" name="shipper" value="{{ shipper }}"> 20 <input type="hidden" name="tax" value="{{ tax }}"> 21 <input type="hidden" name="signType" value="{{ signType }}"> 22 <input type="hidden" name="signMsg" value="{{ signMsg }}"> 23 <input type="hidden" name="goodsList" value="{{ goodsList }}"> 24 </form> 25 {% if not auto_submit %} 26 <div class="buttons"> 27 <div class="pull-right"> 28 <input type="button" value="{{ button_confirm }}" id="button-confirm" data-loading-text="{{ text_loading }}" class="btn btn-primary" /> 29 </div> 30 </div> 31 <script type="text/javascript"><!-- 32 $('#button-confirm').bind('click', function() { 33 $('#button-confirm').button('loading'); 34 35 $('#pilibaba-form').submit(); 36 }); 37 //--></script> 38 {% endif %} 39 40 {% if auto_submit %} 41 {{ text_redirecting }} 42 <script> 43 document.getElementById('pilibaba-form').submit(); 44 </script> 45 </body> 46 </html> 47 {% endif %}