12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
- <title>支付失败</title>
- <link href="__STATIC__/h5sdk/css/index.css?v={:config('js_version')}" rel="stylesheet">
- </head>
- <body>
- <div id="payFailPop" class="pop">
- <div class="pop_body">
- <div class="payment">
- <div class="payment_head">
- <span class="payment_title">支付</span>
- <a href="javascript:;" class="payment_close icon_close"></a>
- </div>
- <div class="payment_body">
- <div class="payment_status__msg text-danger">
- <i class="payment_status__failed icon_fail"></i> {$msg}
- </div>
- <div class="payment_status__btn">
- <button type="button" class="payment_button">确认</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="__STATIC__/h5sdk/js/huosdk.js?v={:config('js_version')}"></script>
- <script>
- var return_url = '{$return_url}'
- $('.payment_button').click(function () {
- // 在 ios 网页 sdk 内
- if (window.huo && window.huo.closecontentview) {
- window.huo.closecontentview()
- }
- // 存在回调地址
- if (return_url != '') {
- window.location.href = return_url
- }
- window.parent.postMessage({
- type: 'pay.retry'
- }, '*')
- window.parent.postMessage({
- type: 'frame.close'
- }, '*')
- })
- $('.payment_close').click(function () {
- // 在 ios 网页 sdk 内
- if (window.huo && window.huo.closecontentview) {
- window.huo.closecontentview()
- }
- // 存在回调地址
- if (return_url != '') {
- window.location.href = return_url
- }
- window.parent.postMessage({
- type: 'frame.close'
- }, '*')
- })
- </script>
- </body>
- </html>
|