<wxs src="../../utils/filter.wxs" module="filters" />

<view class="authority">
  <view class="module" wx:for="{{worksList}}" wx:key="index">
    <view class="topic">{{item.title}}</view>
    <view class="explain">{{item.intro}}</view>
    <view class="works">
      <view class="work" wx:for="{{item.userReadList}}" wx:for-item='work' wx:key="index" bindtap="jumpReading"
        data-id='{{work.userRead.id}}'>
        <view class="content">
          <image src="{{work.userRead.coverImg}}" class="cover" lazy-load
            wx:if="{{work.userReadExtend.resourcesType==0}}" />
          <view class="audioBox" wx:else>
            <image src="{{work.userReadExtend.backgroundVirtualImg}}" lazy-load class="cover" />
            <view class="audioPlay">
              <image src="/static/audioBg.png" class="audioPlayBg" />
              <image src="/static/zhen.png" class="audioPlayZhen" />
              <image src="{{work.userRead.coverImg}}" lazy-load class="cover" />
            </view>
          </view>
          <view class="mask">
            <image src="/static/fb.png" class="fb" />
            <view class="fb-num">{{filters.numFilter(work.userRead.playAmount)}}</view>
          </view>
        </view>
        <view class="textOver title">{{work.userRead.title}}</view>
      </view>
    </view>
  </view>
</view>