Нет описания

uploadqrcode.blade.php 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(count($errors) > 0)
  5. <div class="Huialert Huialert-info" id="error">
  6. @foreach($errors->all() as $error)
  7. <li>{{$error}}</li>
  8. @endforeach
  9. </div>
  10. @endif
  11. @if(session('info'))
  12. <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
  13. {{session('info')}}
  14. </div>
  15. @endif
  16. <div class="page-container">
  17. <form action="/admin/admin/uploadQrcode" method="post" class="form form-horizontal" enctype="multipart/form-data">
  18. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  19. <input type="hidden" name="id" value="{{$id}}" />
  20. <div class="row cl">
  21. <label class="form-label col-xs-4 col-sm-2">
  22. 微信二维码图片:</label>
  23. <div class="formControls col-xs-6 col-sm-6">
  24. <div>
  25. <img width="100" src="{{$qrcode?$qrcode:'/empty.png'}}"/>
  26. <span style="margin-left:10%;"></span>示意图:<img width="100" src="http://imgs.726p.com/tbk/upload/seafoodPic2019-10-21/172942/kx-5dad7a86880ad.jpg"/>(请上传带二维码的正方形图片)
  27. </div>
  28. <br>
  29. <span class="btn-upload">
  30. <input class="input-text upload-url radius" type="text" name="uploadfile-1" id="uploadfile-1" readonly><a href="javascript:void();" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe642;</i> 上传图片</a>
  31. <input type="file" multiple name="img" class="input-file">
  32. </span><br>
  33. 文件类型支持:jpg ,png ,ico ,文件大小不能超过1M
  34. </div>
  35. </div>
  36. <div class="row cl">
  37. <div class="col-9 col-offset-2">
  38. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>&nbsp;
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. <!--_footer 作为公共模版分离出去-->
  44. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  45. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  46. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  47. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  48. <!--/_footer 作为公共模版分离出去-->
  49. <!--请在下方写此页面业务相关的脚本-->
  50. <script type="text/javascript">
  51. $(function(){
  52. setTimeout("$('#error').hide()",3000);
  53. setTimeout("$('#info').hide()",2000);
  54. });
  55. /*返回*/
  56. function return_index(){
  57. location.href='/admin/admin/index';
  58. }
  59. //全局变量
  60. </script>
  61. </body>
  62. @endsection