qrcode.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!DOCTYPE html>
  2. <!--配置thymeleaf模版-->
  3. <html xmlns:th="http://www.thymeleaf.org">
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>二维码</title>
  9. <style>
  10. .dis {
  11. display: flex;
  12. }
  13. .j-s {
  14. justify-content: space-between;
  15. }
  16. .j-c {
  17. justify-content: center;
  18. }
  19. .j-start {
  20. justify-content: flex-start;
  21. }
  22. .j-end {
  23. justify-content: flex-end;
  24. }
  25. .a-c {
  26. align-items: center;
  27. }
  28. .a-start {
  29. align-items: flex-start;
  30. }
  31. .a-end {
  32. align-items: flex-end;
  33. }
  34. .f-c {
  35. flex-direction: column;
  36. }
  37. .f-wrap {
  38. flex-wrap: wrap;
  39. }
  40. .font-weight {
  41. font-weight: bold;
  42. }
  43. .page {
  44. height: 100%;
  45. padding: 12px;
  46. box-sizing: border-box;
  47. }
  48. .header {
  49. padding: 8px;
  50. }
  51. .header .span {
  52. font-size: 40rpx;
  53. color: #333;
  54. }
  55. .mt-2 {
  56. margin-top: 20px;
  57. }
  58. .mb-2 {
  59. margin-bottom: 20px;
  60. }
  61. .content {
  62. height: auto;
  63. background: #FFFFFF;
  64. box-shadow: 0px 4px 10px 0px #DAE3F4;
  65. border-radius: 6px;
  66. border: 1px solid #FFFFFF;
  67. position: relative;
  68. padding: 16px 14px 0 14px;
  69. }
  70. .content .configData .user {
  71. padding: 8px;
  72. border: 1px solid #0052FF;
  73. background: #F8FAFF;
  74. border-radius: 3px;
  75. }
  76. .content .configData .user>div>span:nth-child(1) {
  77. color: #333;
  78. font-size: 13px;
  79. font-weight: bold;
  80. }
  81. .content .configData .user>div>span:nth-child(2) {
  82. color: #666666;
  83. font-size: 12px;
  84. }
  85. .content .configData .view {
  86. padding: 10px 0;
  87. }
  88. .content .configData .view span:nth-child(1) {
  89. color: #666666;
  90. font-size: 14px;
  91. }
  92. .content .configData .view span:nth-child(2) {
  93. color: #333;
  94. font-size: 14px;
  95. }
  96. .content .qrcode {
  97. padding: 14px;
  98. border-bottom: 1px dashed #D4D4D4;
  99. }
  100. .content .qrcode>span {
  101. font-size: 12px;
  102. color: #666666;
  103. }
  104. .content .qrcode .fuzzyLayer {
  105. width: 134px;
  106. height: 134px;
  107. background: rgba(0, 0, 0, 0.6);
  108. filter: blur(4px);
  109. position: absolute;
  110. }
  111. .content .qrcode .code {
  112. width: 120px;
  113. height: 120px;
  114. background: #FFFFFF;
  115. border-radius: 4px;
  116. position: relative;
  117. padding: 8px;
  118. }
  119. canvas{
  120. width: 120px !important;
  121. height: 120px !important;
  122. }
  123. </style>
  124. <script th:src="${data.imageSrc} + 'js/jquery-2.1.4.min.js'"></script>
  125. <script type="text/javascript" th:src="${data.imageSrc} + 'js/jquery.qrcode.min.js'"></script>
  126. </head>
  127. <body>
  128. <div class="page">
  129. <img th:src="${data.imageSrc} + 'image/code.png'" mode="" style="width: 100%;height: 430px;position: absolute;top: 0;left: 0;"></img>
  130. <div class="dis j-c a-c header">
  131. <img th:src="${data.logo}" mode="" style="width: 30px;height: 30px;margin-right: 6px;">
  132. <span class="font-weight" th:text="${data.inscompany}" ></span>
  133. </div>
  134. <div class="content mt-2">
  135. <div class="qrcode dis f-c a-c">
  136. <div class="dis a-c j-c mb-2"
  137. style="width: 150px;height: 150px;border: 1px solid #0052FF;border-radius: 4px;">
  138. <div class="fuzzyLayer">
  139. <img th:src="${data.imageSrc} + 'image/code1.jpg'" mode="" style="width: 100%;height: 100%;">
  140. </img>
  141. </div>
  142. <div class="code">
  143. <!-- 二维码 -->
  144. <input id="codeUrl" type="hidden" th:value="${data.qrCodeUrl}" />
  145. <!-- <img id = "code" mode="" style="width: 100%;height: 100%;"></img>-->
  146. <div id = "code" ></div>
  147. </div>
  148. </div>
  149. <span>为保证付款的有效性 请扫描保险公司二维码</span>
  150. </div>
  151. <div class="configData dis f-c">
  152. <div class="dis j-s a-c view">
  153. <span class="font-weight" style="font-size: 16px;color: #232832;" th:text="${data.cPlateNo}" ></span>
  154. <span class="font-weight" >
  155. <span style="font-size: 12px;color:#FF5600;">¥</span >
  156. <span style="font-size: 16px;color: #FF5600;" th:text="${data.sumpremium}"></span>
  157. </span>
  158. </div>
  159. <div class=" dis j-s a-c user">
  160. <div class="dis f-c a-start">
  161. <span th:text="${data.cOwnerNme}"></span>
  162. <span>车主</span>
  163. </div>
  164. <div class="dis f-c a-start">
  165. <span th:text="${data.cApplyNme}"></span>
  166. <span>投保人</span>
  167. </div>
  168. <div class="dis f-c a-start">
  169. <span th:text="${data.cInsuredNme}"></span>
  170. <span>被保人</span>
  171. </div>
  172. </div>
  173. <div class="view dis j-s a-c border-btn">
  174. <span>交强险起保时间:</span>
  175. <span th:text="${data.jqStartDate}"></span>
  176. </div>
  177. <div class="view dis j-s a-c border-btn">
  178. <span>交强险:</span>
  179. <span th:text="${data.jqpremium}"></span>
  180. </div>
  181. <div class="view dis j-s a-c border-btn">
  182. <span>商业险起保时间:</span>
  183. <span th:text="${data.syStartDate}"></span>
  184. </div>
  185. <div class="view dis j-s a-c border-btn">
  186. <span>商业险:</span>
  187. <span th:text="${data.sypremium}" ></span>
  188. </div>
  189. <div class="view dis j-s a-c border-btn">
  190. <span>车船税:</span>
  191. <span th:text="${data.taxamount}"></span>
  192. </div>
  193. <div class="view dis j-s a-c border-btn">
  194. <span>驾意险:</span>
  195. <span th:text="${data.jypremium}" ></span>
  196. </div>
  197. <div class="view dis j-s a-c ">
  198. <span>保费合计:</span>
  199. <span th:text="${data.sumpremium}"></span>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <script>
  205. $(function(){
  206. $('#code').qrcode($('#codeUrl').val());
  207. });
  208. </script>
  209. </body>
  210. </html>