Showing
3 changed files
with
33 additions
and
2 deletions
@@ -74,6 +74,12 @@ | @@ -74,6 +74,12 @@ | ||
74 | </div> | 74 | </div> |
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | + <div id="print_wrap" style='display:none'> | ||
78 | + <div class='print_qrcode'> | ||
79 | + <img src='http://localhost:5002/img/home/qrcode.png'/> | ||
80 | + <div class='print_content'> | ||
81 | + </div> | ||
82 | + </div> | ||
83 | + </div> | ||
77 | </div> | 84 | </div> |
78 | - | ||
79 | </div> | 85 | </div> |
@@ -39,7 +39,8 @@ $('.next', '.qrcmain-switch').click(function() { | @@ -39,7 +39,8 @@ $('.next', '.qrcmain-switch').click(function() { | ||
39 | slide.next(); | 39 | slide.next(); |
40 | }); | 40 | }); |
41 | $('.btn-qcode').click(function(){ | 41 | $('.btn-qcode').click(function(){ |
42 | - document.body.innerHTML=$("ul li",".qrctxt").eq(slide.options.index).html(); | 42 | + $(".print_content").html($(".qrctxt").html()); |
43 | + document.body.innerHTML=$("#print_wrap").show().html(); | ||
43 | window.print(); | 44 | window.print(); |
44 | return false; | 45 | return false; |
45 | }); | 46 | }); |
@@ -132,4 +132,28 @@ | @@ -132,4 +132,28 @@ | ||
132 | opacity: 0.55; | 132 | opacity: 0.55; |
133 | } | 133 | } |
134 | } | 134 | } |
135 | + | ||
136 | +} | ||
137 | +.print_qrcode{ | ||
138 | + width:613px; | ||
139 | + height:860px; | ||
140 | + margin: 0 auto; | ||
141 | + position:relative; | ||
142 | + .print_content{ | ||
143 | + width:109px; | ||
144 | + position:absolute; | ||
145 | + top:54px; | ||
146 | + left:360px; | ||
147 | + li{ | ||
148 | + margin-bottom:2px; | ||
149 | + img{ | ||
150 | + width:109px; | ||
151 | + height:109px; | ||
152 | + } | ||
153 | + p{ | ||
154 | + font-size:12px; | ||
155 | + line-height: 16px; | ||
156 | + } | ||
157 | + } | ||
158 | + } | ||
135 | } | 159 | } |
-
Please register or login to post a comment