zhaoxiaohai 3 年 前
コミット
ddda35973e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      pages/promotional/modules/productList.wxml

+ 1 - 1
pages/promotional/modules/productList.wxml

@@ -2,7 +2,7 @@
 <My_card custom-class='product-list'>
     <view class="item" wx:for="{{list}}">
         <navigator url="#" data-item="{{item}}" bindtap="toDetail">
-            <van-image width="336rpx" height="240rpx" fit='cover' src="{{item.cover}}" lazy-load />
+            <van-image width="336rpx" height="240rpx" fit='cover' src="{{item.cover||'/static/image/video-cover.png'}}" lazy-load />
             <view class="details">
                 <view class="title line-1">
                     {{item.title}}