proxypic.vue 557 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <view class="img-box" v-for="(item,index) in pic" :key="index">
  4. <image :src="item" mode="aspectFill"></image>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. pic:[]
  13. }
  14. },
  15. onLoad(o) {
  16. if(o.pic){
  17. this.pic=JSON.parse(o.pic)
  18. }
  19. },
  20. methods: {
  21. }
  22. }
  23. </script>
  24. <style lang="scss">
  25. .img-box{
  26. margin: 0 auto;
  27. margin-top: 20rpx;
  28. width: 690rpx;
  29. height: 360rpx;
  30. border-radius: 20rpx;
  31. overflow: hidden;
  32. image{
  33. width: 100%;
  34. height: 100%;
  35. }
  36. }
  37. </style>