qrcode1.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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>Typewriter Effect</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. </style>
  120. </head>
  121. <body>
  122. <div class="page">
  123. <img th:src="${data.imageSrc} + 'code.png'" mode="" style="width: 100%;height: 430px;position: absolute;top: 0;left: 0;"></img>
  124. <div class="dis j-c a-c header">
  125. <img th:src="${data.logo}" mode="" style="width: 30px;height: 30px;margin-right: 6px;">
  126. <span class="font-weight" th:text="${data.inscompany}" ></span>
  127. </div>
  128. <div class="content mt-2">
  129. <div class="qrcode dis f-c a-c">
  130. <div class="dis a-c j-c mb-2"
  131. style="width: 150px;height: 150px;border: 1px solid #0052FF;border-radius: 4px;">
  132. <div class="fuzzyLayer">
  133. <img th:src="${data.imageSrc} + 'code1.jpg'" mode="" style="width: 100%;height: 100%;">
  134. </img>
  135. </div>
  136. <div class="code">
  137. <!-- 二维码 -->
  138. <input id="text" type="hidden" th:value="${data.qrCodeUrl}" />
  139. <img th:src="${data.qrCodeUrl}" mode="" style="width: 100%;height: 100%;"></img>
  140. </div>
  141. </div>
  142. <span>为保证付款的有效性 请扫描保险公司二维码</span>
  143. </div>
  144. <div class="configData dis f-c">
  145. <div class="dis j-s a-c view">
  146. <span class="font-weight" style="font-size: 16px;color: #232832;" th:text="${data.cPlateNo}" ></span>
  147. <span class="font-weight" >
  148. <span style="font-size: 12px;color:#FF5600;">¥</span >
  149. <span style="font-size: 16px;color: #FF5600;" th:text="${data.sumpremium}"></span>
  150. </span>
  151. </div>
  152. <div class=" dis j-s a-c user">
  153. <div class="dis f-c a-start">
  154. <span th:text="${data.cOwnerNme}"></span>
  155. <span>车主</span>
  156. </div>
  157. <div class="dis f-c a-start">
  158. <span th:text="${data.cApplyNme}"></span>
  159. <span>投保人</span>
  160. </div>
  161. <div class="dis f-c a-start">
  162. <span th:text="${data.cInsuredNme}"></span>
  163. <span>被保人</span>
  164. </div>
  165. </div>
  166. <div class="view dis j-s a-c border-btn">
  167. <span>交强险起保时间:</span>
  168. <span th:text="${data.jqStartDate}"></span>
  169. </div>
  170. <div class="view dis j-s a-c border-btn">
  171. <span>交强险:</span>
  172. <span th:text="${data.jqpremium}"></span>
  173. </div>
  174. <div class="view dis j-s a-c border-btn">
  175. <span>商业险起保时间:</span>
  176. <span th:text="${data.syStartDate}"></span>
  177. </div>
  178. <div class="view dis j-s a-c border-btn">
  179. <span>商业险:</span>
  180. <span th:text="${data.sypremium}" ></span>
  181. </div>
  182. <div class="view dis j-s a-c border-btn">
  183. <span>车船税:</span>
  184. <span th:text="${data.taxamount}"></span>
  185. </div>
  186. <div class="view dis j-s a-c border-btn">
  187. <span>驾意险:</span>
  188. <span th:text="${data.jypremium}" ></span>
  189. </div>
  190. <div class="view dis j-s a-c ">
  191. <span>保费合计:</span>
  192. <span th:text="${data.sumpremium}"></span>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </body>
  198. </html>