这是小程序的页面回发一个请求获取图片,图片的地址是上个页面接收过来的,然后页面在完后都可以加载出来,获取上个页面传过来的数据只能在onlload码?
页面一开始就会发一个请求,显示undefind,可以解决码?
```html
<!-- 轮播图 -->
<view>
<swiper class="banners" indicator-color="rgba(0, 0, 0, .3)" indicator-active-color="#D43C33" autoplay circular>
<swiper-item>
<image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage1}}"></image>
</swiper-item>
<swiper-item>
<image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage2}}"></image>
</swiper-item>
<swiper-item>
<image src="{{'http://localhost/phpsaomaserver/uploads/' +merchant.swiperImage3}}"></image>
</swiper-item>
</swiper>
</view>
```