No Description

gw_support.html 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title></title>
  8. <style>
  9. *{
  10. padding: 0;
  11. margin: 0;
  12. }
  13. img{
  14. width: 100%;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <img class="conImg" src=""/>
  20. </body>
  21. </html>
  22. <script>
  23. var qs = parseQueryString(window.location.href);
  24. window.onload = function(){
  25. if(qs.appName){
  26. document.title = qs.appName;
  27. }
  28. if(qs.url){
  29. document.getElementsByClassName('conImg')[0].setAttribute('src', 'https://kx-gw.oss-cn-beijing.aliyuncs.com/' + qs.url)
  30. // $(".conImg").attr('src',)
  31. }
  32. };
  33. //获取地址栏参数
  34. function parseQueryString(url) {
  35. var urlObj = {};
  36. var reg = /([^?=&]+)=([^?=&]+)/g;
  37. url.replace(reg, function($0, $1, $2) {
  38. urlObj[$1] = decodeURIComponent($2);
  39. })
  40. return urlObj;
  41. }
  42. </script>