evidenceList.vue 669B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view>
  3. <view style="text-align: center;" v-for="item in evidenceList">
  4. <image :src="item.annexPath"></image>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import config from '@/config'
  10. const baseUrl = config.baseUrl
  11. export default {
  12. data() {
  13. return {
  14. evidenceList: []
  15. }
  16. },
  17. onLoad(data) {
  18. console.log(data)
  19. let list = JSON.parse(decodeURIComponent(data.evidenceList))
  20. if(list) {
  21. list.forEach(item =>{
  22. item.annexPath = baseUrl + item.annexPath
  23. })
  24. }
  25. console.log(list)
  26. this.evidenceList = list
  27. }
  28. }
  29. </script>
  30. <style lang="scss">
  31. page {
  32. background-color: #ffffff;
  33. }
  34. </style>