crmPush.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!--
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2019/9/3
  6. * Time: 14:55
  7. */
  8. -->
  9. <!--
  10. * @Author: ZhengXiaowei
  11. * @Date: 2019-08-15 16:39:23
  12. * @LastEditors: ZhengXiaowei
  13. * @LastEditTime: 2019-09-03 14:15:51
  14. * @Description: 弹窗页
  15. -->
  16. <!DOCTYPE html>
  17. <html lang="en">
  18. <head>
  19. <meta charset="UTF-8" />
  20. <meta
  21. name="viewport"
  22. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
  23. />
  24. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  25. <title>阅读小管家</title>
  26. <style>
  27. body,
  28. html,
  29. p {
  30. margin: 0;
  31. padding: 0;
  32. }
  33. .dialog-wrap {
  34. position: fixed;
  35. top: 0;
  36. bottom: 0;
  37. left: 0;
  38. right: 0;
  39. background: rgba(0, 0, 0, 0.4);
  40. display: -webkit-box;
  41. display: -ms-flexbox;
  42. display: flex;
  43. }
  44. .dialog-wrap .dialog-content {
  45. position: relative;
  46. margin: auto;
  47. width: 85%;
  48. font-size: 0;
  49. }
  50. .dialog-wrap .dialog-content img {
  51. width: 100%;
  52. }
  53. .dialog-wrap .dialog-content .dialog-text {
  54. font-size: 18px;
  55. font-weight: bold;
  56. color: #fff;
  57. text-align: center;
  58. position: absolute;
  59. width: 100%;
  60. bottom: 6%;
  61. left: 50%;
  62. -webkit-transform: translate(-50%, 0);
  63. transform: translate(-50%, 0);
  64. }
  65. .dialog-content p a{
  66. text-decoration: none;
  67. color: #fdfffe;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <main>
  73. <div class="dialog-wrap">
  74. <div class="dialog-content">
  75. <!-- 名额用完 -->
  76. <!-- <img src="./imgs/over.png" alt="" /> -->
  77. <!-- 未指定客服 -->
  78. <!-- <img src="./imgs/no-server.png" alt="" /> -->
  79. <!-- 指定客服 -->
  80. @if($code == -1)
  81. <img src="https://cdn-novel.iycdm.com/crm/push/over.png" alt="" />
  82. <p class="dialog-text text-done"><a href="{{$read_url}}">前去签到>></a></p>
  83. @elseif($code == -2)
  84. <img src="https://cdn-novel.iycdm.com/crm/push/done.png" alt="" />
  85. <p class="dialog-text text-done"><a href="javascript:void(0)">您管家微信名叫【{{$name}}】</a></p>
  86. @elseif($code == -3)
  87. <img src="https://cdn-novel.iycdm.com/crm/push/no-server.png" alt="" />
  88. <p class="dialog-text text-done"><a href="{{$read_url}}">前去签到</a></p>
  89. @else
  90. <img src="https://cdn-novel.iycdm.com/crm/push/no-server.png" alt="" />
  91. <p class="dialog-text text-done"><a href="{{$read_url}}">联系在线客服查看管家名称</a></p>
  92. @endif
  93. <!-- 名额用完显示文本 -->
  94. <!-- <p class="dialog-text text-over">前去看书&gt;&gt;</p> -->
  95. <!-- 未指定客服显示文本 -->
  96. <!-- <p class="dialog-text text-no-server">联系在线客服查看管家名称&gt;&gt;</p> -->
  97. <!-- 指定客服显示文本 -->
  98. </div>
  99. </div>
  100. </main>
  101. </body>
  102. <script>
  103. var doc = document;
  104. var wrap = doc.querySelector(".dialog-wrap");
  105. var content = doc.querySelector(".dialog-content");
  106. wrap.addEventListener(
  107. "click",
  108. function(e) {
  109. // 关闭弹窗
  110. e.preventDefault();
  111. //this.style.display = "none";
  112. },
  113. false
  114. );
  115. content.addEventListener(
  116. "click",
  117. function(e) {
  118. e.stopPropagation();
  119. },
  120. false
  121. );
  122. </script>
  123. </html>