| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>pay</title>
- </head>
- <body>
- <div class="loading"></div>
- </body>
- <script type="text/javascript" src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
- <script>
- function getQueryString(name, url) {
- let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- let r = url.substr(1).match(reg);
- if (r != null) {
- return unescape(r[2]);
- }
- return null;
- }
- // let mweb_url = getQueryString('mweb_url', window.location.search);
- let url = window.location.search
- let mweb_url = url.substring(10)
- console.log(mweb_url)
- $(function() {
- // test
- // let redirect_url = 'https://nc-fele-mips.elken.com:8015/return.html';
- // prod
- let redirect_url = 'https://fele.ncshop.elken.com/return.html';
- console.log(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
- window.location.replace(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
- });
- </script>
- <style>
- html{
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- body{
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .payment {
- width: 100%;
- height: 100%;
- }
- .loading {
- position: relative;
- width: 100%;
- height: 100%;
- }
- .loading::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 50px;
- height: 50px;
- border-radius: 50%;
- border: 3px solid rgba(0, 0, 0, .2);
- border-top-color: #000;
- animation: rotate 1s infinite linear;
- }
- @keyframes rotate {
- to {
- transform: translate(-50%, -50%) rotate(360deg);
- }
- }
- </style>
- </html>
|