|
@@ -41,7 +41,6 @@
|
|
|
<div class="item">
|
|
|
<div class="avatar">
|
|
|
<img src="{{$val['avatar']}}" width="170" />
|
|
|
- {{-- <img src="/storage/2020-11-16-09-12-57.jpg" width="180" />--}}
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
{{$val['seat']}} {{$val['realname']}}
|
|
@@ -56,6 +55,32 @@
|
|
|
@endforeach
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="print" style="margin: 10px 0;text-align: center">
|
|
|
+ <button class="print_page btn btn-sm btn-info" style="width: 200px;height: 60px;font-size: 30px;line-height: 40px">打印此页</button>
|
|
|
+ </div>
|
|
|
@endforeach
|
|
|
+ <div id="print_body" ></div>
|
|
|
+ <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/polyfill.min.js') }}"></script>
|
|
|
+ <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/hiprint.bundle.js') }}"></script>
|
|
|
+ <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/plugins/JsBarcode.all.min.js') }}"></script>
|
|
|
+ <script type="text/javascript" src="{{ theme_asset('app/js/hiprint/plugins/qrcode.js') }}"></script>
|
|
|
+ <script type="text/javascript" src="{{ theme_asset('app/js/jQuery.print.js') }}"></script>
|
|
|
+ <script>
|
|
|
+ $(".print_page").on('mouseover',function(){
|
|
|
+ var dom = $(this).parent().prev();
|
|
|
+ $(dom).addClass('selected')
|
|
|
+ });
|
|
|
+ $(".print_page").on('mouseout',function(){
|
|
|
+ var dom = $(this).parent().prev();
|
|
|
+ $(dom).removeClass('selected')
|
|
|
+ });
|
|
|
+ $(".print_page").on('click',function(){
|
|
|
+ var dom = $(this).parent().prev();
|
|
|
+ console.log(dom)
|
|
|
+ $(dom).print()
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ </script>
|
|
|
</body>
|
|
|
</html>
|