<view class="container" v-cloak>
<scroll-view style="width:{
{windowWidth}}px;height:{
{windowHeight}}px" scroll-y="true" bindscrolltolower="pullUpLoad">
<view style="display:none">
<image wx:for="{
{list}}" wx:key="id" data-index="{
{index}}" src="{
{item.path}}" bindload="onImageLoad"></image>
</view>
<view class='list'>
<view class='item'>
<view class='list_content' wx:for="{
{col1}}">
<view class='list_path' bindtap='godetail' data-id="{
{item.id}}">
<image src="{
{item.path}}" mode='widthFix' class='pathimg' binderror="binderrorimg" data-id="{
{item.id}}" data-type="col1"></image>
</view>
<view class='list_text'>
<text>{
{item.title}}</text>
<view class='list_info'>
<view>
<image src='{
{item.head}}' class='head' bindtap="personerrorimg" data-id="{
{item.id}}" data-type="col1"></image>
<text>{
{item.smallname}}</text>
</view>
<view data-type="{
{item.islike}}" data-index="{
{index}}" data-id="{
{item.id}}" data-father="col1">
<image src='{
{imageurl}}heart.png' class='heart' wx:if="{
{item.islike==true}}"></image>
<image src='{
{imageurl}}cancel.png' class='heart'
微信小程序图片懒加载,图片高度自适应
最新推荐文章于 2024-07-07 11:24:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)