artInfo.wxml 1.7 KB

12345678910111213141516171819202122232425262728
  1. <gracePage headerBG="#FFFFFF" customHeader="{{false}}">
  2. <view slot="gBody" class="grace-body">
  3. <!-- 标题 -->
  4. <text class="grace-art-margin grace-art-title {{graceSkeleton ? 'grace-skeletons' : ''}}">{{article.title}}</text>
  5. <!-- 作者信息 -->
  6. <view class="grace-art-margin grace-nowrap grace-flex-vcenter">
  7. <view class="grace-art-author grace-nowrap grace-flex-vcenter {{graceSkeleton ? 'grace-skeletons' : ''}}">
  8. <image class="grace-art-author-face" src="{{article.authorFace}}" mode="widthFix"></image>
  9. <text wx:if="{{article.authorName}}" class="grace-art-author-name">{{article.authorName}}</text>
  10. </view>
  11. <text class="grace-art-btn grace-bg-green">+ 关注</text>
  12. </view>
  13. <!-- 其他基本信息 -->
  14. <view class="grace-art-info-line grace-art-margin grace-space-between {{graceSkeleton ? 'grace-skeletons' : ''}}">
  15. <text class="grace-art-info-line-text grace-icons icon-eye" wx:if="{{article.viewNumber}}"> {{article.viewNumber}}</text>
  16. <text class="grace-art-info-line-text" wx:if="{{article.date}}">发布于 : {{article.date}}</text>
  17. </view>
  18. <!-- 文章内容 -->
  19. <view class="grace-art-contents">
  20. <block wx:for="{{article.contents}}" wx:key="index">
  21. <view class="{{graceSkeleton ? 'grace-skeletons-img' : 'grace-img-in'}}" wx:if="{{item.type == 'img'}}">
  22. <image src="{{item.content}}" class="grace-art-img" mode="widthFix" data-imgurl="{{item.content}}" bindtap="prevImg"></image>
  23. </view>
  24. <view class="{{graceSkeleton ? 'grace-skeletons' : 'grace-art-content'}}" wx:if="{{item.type == 'text'}}">{{item.content}}</view>
  25. </block>
  26. </view>
  27. </view>
  28. </gracePage>