original.vue 475 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="container">
  3. <image class="container_img" :src="URL+imagePath" mode="widthFix"></image>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. imagePath: "",
  11. URL: getApp().globalData.URL,
  12. }
  13. },
  14. onLoad(e) {
  15. this.imagePath = e.imagePath;
  16. }
  17. }
  18. </script>
  19. <style>
  20. page {
  21. width: 100%;
  22. height: 100%;
  23. }
  24. .container {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. .container_img {
  29. width: 100%;
  30. height: 100%;
  31. }
  32. </style>