photo_show.html 3.0 KB

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