| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <!DOCTYPE html>
- <!--配置thymeleaf模版-->
- <html xmlns:th="http://www.thymeleaf.org">
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>二维码</title>
- <style>
- .dis {
- display: flex;
- }
- .j-s {
- justify-content: space-between;
- }
- .j-c {
- justify-content: center;
- }
- .j-start {
- justify-content: flex-start;
- }
- .j-end {
- justify-content: flex-end;
- }
- .a-c {
- align-items: center;
- }
- .a-start {
- align-items: flex-start;
- }
- .a-end {
- align-items: flex-end;
- }
- .f-c {
- flex-direction: column;
- }
- .f-wrap {
- flex-wrap: wrap;
- }
- .font-weight {
- font-weight: bold;
- }
- .page {
- height: 100%;
- padding: 12px;
- box-sizing: border-box;
- }
- .header {
- padding: 8px;
- }
- .header .span {
- font-size: 40rpx;
- color: #333;
- }
- .mt-2 {
- margin-top: 20px;
- }
- .mb-2 {
- margin-bottom: 20px;
- }
- .content {
- height: auto;
- background: #FFFFFF;
- box-shadow: 0px 4px 10px 0px #DAE3F4;
- border-radius: 6px;
- border: 1px solid #FFFFFF;
- position: relative;
- padding: 16px 14px 0 14px;
- }
- .content .configData .user {
- padding: 8px;
- border: 1px solid #0052FF;
- background: #F8FAFF;
- border-radius: 3px;
- }
- .content .configData .user>div>span:nth-child(1) {
- color: #333;
- font-size: 13px;
- font-weight: bold;
- }
- .content .configData .user>div>span:nth-child(2) {
- color: #666666;
- font-size: 12px;
- }
- .content .configData .view {
- padding: 10px 0;
- }
- .content .configData .view span:nth-child(1) {
- color: #666666;
- font-size: 14px;
- }
- .content .configData .view span:nth-child(2) {
- color: #333;
- font-size: 14px;
- }
- .content .qrcode {
- padding: 14px;
- border-bottom: 1px dashed #D4D4D4;
- }
- .content .qrcode>span {
- font-size: 12px;
- color: #666666;
- }
- .content .qrcode .fuzzyLayer {
- width: 134px;
- height: 134px;
- background: rgba(0, 0, 0, 0.6);
- filter: blur(4px);
- position: absolute;
- }
- .content .qrcode .code {
- width: 120px;
- height: 120px;
- background: #FFFFFF;
- border-radius: 4px;
- position: relative;
- padding: 8px;
- }
- canvas{
- width: 120px !important;
- height: 120px !important;
- }
- </style>
- <script th:src="${data.imageSrc} + 'js/jquery-2.1.4.min.js'"></script>
- <script type="text/javascript" th:src="${data.imageSrc} + 'js/jquery.qrcode.min.js'"></script>
- </head>
- <body>
- <div class="page">
- <img th:src="${data.imageSrc} + 'image/code.png'" mode="" style="width: 100%;height: 430px;position: absolute;top: 0;left: 0;"></img>
- <div class="dis j-c a-c header">
- <img th:src="${data.logo}" mode="" style="width: 30px;height: 30px;margin-right: 6px;">
- <span class="font-weight" th:text="${data.inscompany}" ></span>
- </div>
- <div class="content mt-2">
- <div class="qrcode dis f-c a-c">
- <div class="dis a-c j-c mb-2"
- style="width: 150px;height: 150px;border: 1px solid #0052FF;border-radius: 4px;">
- <div class="fuzzyLayer">
- <img th:src="${data.imageSrc} + 'image/code1.jpg'" mode="" style="width: 100%;height: 100%;">
- </img>
- </div>
- <div class="code">
- <!-- 二维码 -->
- <input id="codeUrl" type="hidden" th:value="${data.qrCodeUrl}" />
- <!-- <img id = "code" mode="" style="width: 100%;height: 100%;"></img>-->
- <div id = "code" ></div>
- </div>
- </div>
- <span>为保证付款的有效性 请扫描保险公司二维码</span>
- </div>
- <div class="configData dis f-c">
- <div class="dis j-s a-c view">
- <span class="font-weight" style="font-size: 16px;color: #232832;" th:text="${data.cPlateNo}" ></span>
- <span class="font-weight" >
- <span style="font-size: 12px;color:#FF5600;">¥</span >
- <span style="font-size: 16px;color: #FF5600;" th:text="${data.sumpremium}"></span>
- </span>
- </div>
- <div class=" dis j-s a-c user">
- <div class="dis f-c a-start">
- <span th:text="${data.cOwnerNme}"></span>
- <span>车主</span>
- </div>
- <div class="dis f-c a-start">
- <span th:text="${data.cApplyNme}"></span>
- <span>投保人</span>
- </div>
- <div class="dis f-c a-start">
- <span th:text="${data.cInsuredNme}"></span>
- <span>被保人</span>
- </div>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>交强险起保时间:</span>
- <span th:text="${data.jqStartDate}"></span>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>交强险:</span>
- <span th:text="${data.jqpremium}"></span>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>商业险起保时间:</span>
- <span th:text="${data.syStartDate}"></span>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>商业险:</span>
- <span th:text="${data.sypremium}" ></span>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>车船税:</span>
- <span th:text="${data.taxamount}"></span>
- </div>
- <div class="view dis j-s a-c border-btn">
- <span>驾意险:</span>
- <span th:text="${data.jypremium}" ></span>
- </div>
- <div class="view dis j-s a-c ">
- <span>保费合计:</span>
- <span th:text="${data.sumpremium}"></span>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(function(){
- $('#code').qrcode($('#codeUrl').val());
- });
- </script>
- </body>
- </html>
|