customer-service.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>在线客服</title>
  5. <meta charset="utf-8"/>
  6. </head>
  7. <body>
  8. <script>
  9. var prm = GetRequest()
  10. function GetRequest() {
  11. var url = location.search; // 获取url中"?"符后的字串
  12. var obj = new Object();
  13. if (url.indexOf('?') != -1) {
  14. var str = url.substr(1);
  15. strs = str.split('&');
  16. for (var i = 0; i < strs.length; i++) {
  17. obj[strs[i].split('=')[0]] = strs[i].split('=')[1];
  18. }
  19. }
  20. return obj;
  21. }
  22. (function (w, d, n, a, j) {
  23. w[n] = w[n] || function () {
  24. (w[n].a = w[n].a || []).push(arguments);
  25. };
  26. j = d.createElement('script');
  27. j.async = true;
  28. j.src ='https://qiyukf.com/script/98112bcf552907c28ee450c6a58269c3.js';
  29. d.body.appendChild(j);
  30. })(window, document, 'ysf');
  31. ysf('config', {
  32. success: function () {
  33. location.href = ysf('url')
  34. // window.open(ysf('url'))
  35. },
  36. error: function () {
  37. // 错误回调
  38. // handle error
  39. },
  40. });
  41. </script>
  42. </body>
  43. </html>