kf.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <html>
  2. <head>
  3. <meta name="wechat-enable-text-zoom-em" content="true">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="color-scheme" content="light dark">
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="format-detection" content="telephone=no">
  11. <link rel="shortcut icon" href="favicon.ico">
  12. <!--样式文件-->
  13. <link rel="stylesheet" href="other/common.css">
  14. <link rel="stylesheet" href="other/bootstrap.min.css">
  15. </head>
  16. <title>号卡服务客服</title>
  17. <body>
  18. <?php
  19. include_once("untils/conn.php");
  20. $sql = "select * from kefu where kefu='kefu'";
  21. $data = mysqli_query($con, $sql);
  22. $result = mysqli_fetch_row($data);
  23. ?>
  24. <div class="top" style="width:100%;height:260px;">
  25. <img style="width:100%;height:260px;" src="./img/tp.png">
  26. </div>
  27. <div id="kf_beizhu">
  28. <p style="color:#000;text-align:center;">在线客服工作时间<?php echo $result[3] ?>
  29. </div>
  30. <div id="kfzm_qrcode"><img src="<?php echo $result[1] ?>" /></div>
  31. <div id="kf_online_true"><a href="#" class="btnEl" style="color:white;">在线联系</a> </div>
  32. </body>
  33. <script>
  34. const copyEl = document.querySelector('.message')
  35. const btnEl = document.querySelector('.btnEl')
  36. btnEl.addEventListener('click', () => {
  37. window.getSelection().selectAllChildren(copyEl)
  38. document.execCommand('Copy')
  39. alert('客服微信已复制,快去联系吧!')
  40. })
  41. </script>
  42. </html>