cloud_card.html 934 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>登录</title>
  8. <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  9. </head>
  10. <body>
  11. <div id="app">
  12. 登录中...
  13. </div>
  14. <script>
  15. function getQueryString(name, url) {
  16. let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i')
  17. let r = (url || window.location.search).substr(1).match(reg)
  18. if (r != null) {
  19. return decodeURIComponent(r[2])
  20. }
  21. return null
  22. }
  23. const redirectPath = getQueryString('redirectPath')
  24. if (redirectPath === '/pages/project/list') {
  25. wx.miniProgram.redirectTo({
  26. url: '/pages/project/list',
  27. })
  28. } else {
  29. wx.miniProgram.reLaunch({
  30. url: "/pages/home/index"
  31. });
  32. }
  33. </script>
  34. </body>
  35. </html>