photo_show.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>照片查看</title>
  6. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  7. <link rel="stylesheet" type="text/css" href="../../../css/cross.css"/>
  8. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  9. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  10. <style>
  11. .img_list { position: fixed; bottom: 0; wdith: 100%; height: 40px;}
  12. .img_list img {opacity: 0.4;}
  13. .img_list img.active, .img_list img:hover {opacity: 1;}
  14. .w-20 {width: 20%;}
  15. .h100 {height: 100px;}
  16. .w-100 {width: 100%;}
  17. .h-100 {height: 100%;}
  18. .h-100-100 {height: calc(100% - 100px); }
  19. .left-arrow, .right-arrow {
  20. top: 50%;
  21. width: 34px;
  22. height: 50px;
  23. background: url(../../../images/left02_btn.png) no-repeat no-repeat center center;
  24. z-index: 99;
  25. }
  26. .left-arrow {
  27. left: 10px;
  28. }
  29. .right-arrow {
  30. right: 10px;
  31. background: url(../../../images/right02_btn.png) no-repeat no-repeat center center;
  32. }
  33. .left-arrow:hover {
  34. background: url(../../../images/left02_pre.png) no-repeat no-repeat center center;
  35. }
  36. .right-arrow:hover {
  37. background: url(../../../images/right02_pre.png) no-repeat no-repeat center center;
  38. }
  39. .bgc-999 {background-color: #d7dce6;}
  40. .lh80 {line-height: 80px;}
  41. </style>
  42. </head>
  43. <body>
  44. <div id="app" class="c-position-r h-100 bgc-999">
  45. <div v-if="photoList.length > 0" class="h-100">
  46. <div class="h-100-100 c-t-center c-position-r">
  47. <span v-if="curryIndex != 0" class="c-position-a left-arrow" @click="changeCurryIndex(curryIndex - 1)"></span>
  48. <img class="h-100" :src="setImg(photoList[curryIndex].certificatePath)" alt="图片">
  49. <span v-if="curryIndex != (photoList.length - 1)" class="c-position-a right-arrow" @click="changeCurryIndex(curryIndex + 1)"></span>
  50. </div>
  51. <div class="h100 c-t-center m0 p0 img_list clearfix">
  52. <img class="w-20 h100" :class="curryIndex == index ? 'active' : ''" v-for="(img, index) in photoList" :key="index" :src="setImg(img.certificatePath)" alt="图片" @click="changeCurryIndex(index)">
  53. </div>
  54. </div>
  55. <div v-if="!photoList || photoList.length == 0" class="h-100">
  56. <h2 class="ptb30 c-t-center lh80 c-f18">该居民没有上传凭证</h2>
  57. </div>
  58. </div>
  59. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  60. <script src="../../../js/jquery-2.2.4.js"></script>
  61. <script src="../../../plugins/layer/layer.min.js"></script>
  62. <script src="../../../js/bootstrap.min.js"></script>
  63. <script src="../../../plugins/toastr/toastr.min.js"></script>
  64. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  65. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  66. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  67. <script src="../../../api/http-request.js" type="text/javascript"></script>
  68. <script src="../../../api/sign_api.js" type="text/javascript"></script>
  69. <script src="../js/photo_show.js" type="text/javascript"></script>
  70. </body>
  71. </html>