kf.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. $puid = $_GET['puid'];
  3. include_once("../untils/conn.php");
  4. $sql = "SELECT * FROM shopsy WHERE puid = '$puid'";
  5. $result = mysqli_query($con, $sql);
  6. if ($result->num_rows > 0) {
  7. // 输出数据
  8. while($row = $result->fetch_assoc()) {
  9. // 获取每个字段的值
  10. $kefuurl = $row["kefuurl"];
  11. $kefutime = $row['kefutime'];
  12. }
  13. } else {
  14. // echo "未找到匹配的记录";
  15. }
  16. ?>
  17. <html>
  18. <head>
  19. <meta name="wechat-enable-text-zoom-em" content="true">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  21. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  22. <meta name="color-scheme" content="light dark">
  23. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
  24. <meta name="apple-mobile-web-app-capable" content="yes">
  25. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  26. <meta name="format-detection" content="telephone=no">
  27. <link rel="shortcut icon" href="https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico">
  28. <!--样式文件-->
  29. <link rel="stylesheet" href="../other/common.css">
  30. <link rel="stylesheet" href="../other/bootstrap.min.css">
  31. </head>
  32. <title>号卡服务客服</title>
  33. <body>
  34. <div class="top" style="width:100%;height:280px;">
  35. <img style="width:100%;height:280px;" src="../img/tp.png">
  36. </div>
  37. <div id="kf_beizhu">
  38. <p style="color:#000;text-align:center;"><?php echo $kefutime ?>
  39. </div>
  40. <div id="kfzm_qrcode"><img src="../merchant/<?php echo $kefuurl ?>" /></div>
  41. <div id="kf_online_true"><a href="#" class="btnEl" style="color:white;">在线联系</a> </div>
  42. </body>
  43. <script>
  44. const copyEl = document.querySelector('.message')
  45. const btnEl = document.querySelector('.btnEl')
  46. btnEl.addEventListener('click', () => {
  47. window.getSelection().selectAllChildren(copyEl)
  48. document.execCommand('Copy')
  49. alert('客服微信已复制,快去联系吧!')
  50. })
  51. </script>
  52. </html>