소스 검색

二维码调整

laiguoran 3 년 전
부모
커밋
a634e163b8
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 11 3
      app/view/dashboard/index.ejs

+ 11 - 3
app/view/dashboard/index.ejs

@@ -430,13 +430,19 @@
                                         <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="手机号码"><i class="fa fa-tablet"></i> <%=salesmanData.telephone%></li>
                                         <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="固定电话"><i class="fa fa-phone"></i> <%=salesmanData.fixedphone%></li>
                                         <% if (projectData.qrcode_json) { %>
-                                            <li class="list-group-item container-fluid">
-                                                <div class="row">
+                                            <li class="list-group-item container-fluid qrcode-height">
+                                                <div class="row qrcode-height">
                                                     <% for (const qr of JSON.parse(projectData.qrcode_json)) { %>
-                                                        <div class="col-sm text-center"><img src="/<%= qr.path %>" width="90"><div class="text-center"><%= qr.name %></div></div>
+                                                        <div class="col-sm text-center"><img src="/<%= qr.path %>" width="100%" style="max-width: 180px"><div class="text-center"><%= qr.name %></div></div>
                                                     <% } %>
                                                 </div>
                                             </li>
+                                        <% } else { %>
+                                            <li class="list-group-item container-fluid">
+                                                <div class="row qrcode-height">
+                                                    <div class="col-sm text-center"><img src="/public/images/erweima.jpg" width="100%" style="max-width: 180px"><div class="text-center">虾米造价</div></div>
+                                                </div>
+                                            </li>
                                         <% } %>
                                     </ul>
                                 </div>
@@ -474,6 +480,8 @@
             $('.contant-height-one').height($('.agency-partheight').height() - 52 - 20);
             $('.contant-height-two').height($('.agency-partheight').height() - 52 - getObjHeight($(".echart-height")) - 20);
             $('.contant-height-three').height($('.agency-partheight').height() - 52 - getObjHeight($(".addmsg-height")) - 20);
+            $('.qrcode-height').height($('.contant-height-one').height() - 43 - 44 - 44 - 25);
+            $('.qrcode-height .col-sm').css('padding-top', ($('.qrcode-height').height()/2 - ($('.qrcode-height img').height()+18)/2) + 'px');
             // resizeChart();
         }
         setDashboardHeight();