desc.wxml
806 Bytes
<!--page/subPackage/pages/zeroSell/components/desc.wxml-->
<view class="desc">
<view style="width: 100%;text-align: center;">
<view class="title">商品详情</view>
</view>
<view class="desc-content">
<view class="banner" bindtap="_jumpBanner" wx:if="{{bannerSrc != null}}">
<image class="banner-img" src="{{bannerSrc}}"></image>
</view>
<block wx:for="{{list}}" wx:key="">
<block wx:if="{{item.floor_type === 1}}">
<view >{{item.content}}</view>
</block>
<block wx:elif="{{item.floor_type === 2}}">
<image class="desc-image" mode="widthFix" src="{{item.content}}"></image>
</block>
<block wx:elif="{{item.floor_type === 3}}">
<video class="desc-video" src="{{item.content}}"></video>
</block>
</block>
</view>
</view>