|
@@ -1,11 +1,14 @@
|
|
|
<!-- /packageA/market/detail?id={{item.sa_itemgroupid}}&itemno={{item.itemno}}&istool=1 -->
|
|
|
<view class="product" wx:for="{{list}}" wx:key="index">
|
|
|
<view class="image-box">
|
|
|
- <van-image width="100%" wx:if="{{item.attinfos[0]}}" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url}}" use-loading-slot use-error-slot lazy-load>
|
|
|
+ <van-image width="100%" wx:if="{{item.attinfos[0]||item.cover}}" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url||item.attinfos[0].url}}" use-loading-slot use-error-slot lazy-load>
|
|
|
+ <van-loading slot="loading" type="spinner" size="20" vertical />
|
|
|
+ <text slot="error">加载失败</text>
|
|
|
+ </van-image>
|
|
|
+ <van-image wx:else width="100%" height="100%" fit="cover" src="https://nb32663.obs.cn-east-2.myhuaweicloud.com:443/202302271677472008916B382a8d8b.jpg" use-loading-slot use-error-slot lazy-load>
|
|
|
<van-loading slot="loading" type="spinner" size="20" vertical />
|
|
|
<text slot="error">加载失败</text>
|
|
|
</van-image>
|
|
|
- <text class="text" wx:else>暂无图片</text>
|
|
|
</view>
|
|
|
<view class="right-box">
|
|
|
<view class="title line-1">{{item.itemname||'--'}}</view>
|