子组件
<view
v-for="(item, index) in dataList"
:key="index"
:style="{ 'border-radius': '8rpx', padding: `${padding}rpx` }"
@tap="() => $emit('tapHandle', item[fieldName.detailsId], item)"
>
<view class=" image">
<u-image :width="imgWidth" :height="imgHeight" :src="item[fieldName.image]" :fade="true" mode="scaleToFill" :borderRadius="imgBorderRadius">
<!-- 加载图片 -->
<template #loading>
<u-loading-icon mode="flower" />
</template>
<!-- 加载图片失败 -->
<template #error>
<view style="font-size: 32rpx">加载失败</view>
</template>
</u-image>
</view>
<slot name="content" :row="item">
<view class="content">
<view class="left">
<view class="title">{{ item[fieldName.title] || '' }}</view>
<view class="subTitle">{{ item[fieldName.subTitle] || '' }}</view>
</view>
<view class="right">
<text class="topPrice">{{ `${item[fieldName.initialPrice] || 0}` }}</text>
<view class="bottomPrice">
<text>{{ `${item[fieldName.currentPrice] || 0}` }}</text>
</view>
</view>
</view>
</slot>
</view>
2***@qq.com (作者)
尝试把微信工具升级到Stable 1.06.2306020 就解决了
2023-06-20 11:39
爱豆豆
回复 2***@qq.com: 可以
2023-06-20 11:52