pic.vue 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template name="pic">
  2. <view class="cover cover-height">
  3. <image @click="Dever.viewPic([item.pic], item.pic)" :src="item.pic" mode="widthFix" :class="['default', 'slide-image-'+item.type]"></image>
  4. <position :item="item.text" :down="item.pic" :button="item.is_button"></position>
  5. </view>
  6. </template>
  7. <script>
  8. import position from "@/lib/dever/components/position.vue";
  9. export default {
  10. name: "pic",
  11. props: {
  12. control : {
  13. type : Object,
  14. value : null
  15. },
  16. item : {
  17. type : Object,
  18. value : null
  19. },
  20. },
  21. methods:{
  22. },
  23. components:{
  24. position
  25. }
  26. }
  27. </script>
  28. <style>
  29. .cover{
  30. position: relative;
  31. overflow: hidden;
  32. width: 100%;
  33. height: 100%;
  34. }
  35. .cover-height{
  36. overflow: auto;
  37. position: absolute;
  38. top:0;
  39. left:0;
  40. width:100%;
  41. height:100%;
  42. }
  43. .slide-image-1 {
  44. width: 750rpx;
  45. height: 1386rpx;
  46. display: block;
  47. }
  48. .slide-image-2 {
  49. width: 2000rpx;
  50. height: 100%;
  51. display: block;
  52. }
  53. .long-wrapper {
  54. position: relative;
  55. }
  56. </style>