recruit.vue 630 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="full-page">
  3. <image
  4. v-if="globalImages"
  5. :src="globalImages + 'images/my/publicize.jpg'"
  6. mode="aspectFill"
  7. class="full-image"
  8. />
  9. </view>
  10. </template>
  11. <script>
  12. import { waitForGlobalImages } from '@/utils/globalImageLoader'
  13. export default {
  14. data() {
  15. return {
  16. globalImages: ''
  17. }
  18. },
  19. onLoad() {
  20. waitForGlobalImages().then((path) => {
  21. console.log('✅ 全局图片路径:', path)
  22. this.globalImages = path
  23. })
  24. }
  25. }
  26. </script>
  27. <style scoped>
  28. .full-page {
  29. width: 100vw;
  30. height: 100vh;
  31. overflow: hidden;
  32. }
  33. .full-image {
  34. width: 100vw;
  35. height: 100vh;
  36. }
  37. </style>