This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/components/diy/article/article.wxml

31 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2020-04-25 22:59:04 +08:00
<!-- 文章组 -->
<view class="diy-article">
<view class="article-item show-type__{{ item.show_type }}" wx:for="{{ dataList }}" wx:key="this" catchtap="onTargetDetail" data-id="{{ item.article_id }}">
<!-- 小图模式 -->
<block wx:if="{{ item.show_type == 10 }}">
<view class="article-item__left flex-box">
<view class="article-item__title twolist-hidden">
<text class="f-30 col-3">{{ item.article_title }}</text>
</view>
<view class="article-item__footer m-top10">
<text class="article-views f-24 col-8">{{ item.show_views }}次浏览</text>
</view>
</view>
<view class="article-item__image">
<image class="image" mode="widthFix" src="{{ item.image.file_path }}"></image>
</view>
</block>
<!-- 大图模式 -->
<block wx:if="{{ item.show_type == 20 }}">
<view class="article-item__title">
<text class="f-30 col-3">{{ item.article_title }}</text>
</view>
<view class="article-item__image m-top20">
<image class="image" mode="widthFix" src="{{ item.image.file_path }}"></image>
</view>
<view class="article-item__footer m-top10">
<text class="article-views f-24 col-8">{{ item.show_views }}次浏览</text>
</view>
</block>
</view>
</view>