myworks.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <scroll-view class='user-works'>
  3. <view class='follow-details'>
  4. <view class='follow-info'>
  5. <view class='set-msg'>
  6. <image class='avatar-image' src='{{ wareCards.user.avatar }}'></image>
  7. <text class="avatar-nickname">{{ wareCards.user.nickName }}</text>
  8. </view>
  9. <view class="follow" wx:if="{{!isMyself}}" bindtap="follow">
  10. <!-- <image src="{{isFans? '../../static/index/followed.png' : '../../static/index/follow.png'}}" /> -->
  11. <!-- <text class="followBtn">{{isFans ? '已' : ''}}关注</text> -->
  12. <image src="{{isFans? '../../static/index/followed_btn.png' : '../../static/index/follow_btn.png'}}" />
  13. </view>
  14. </view>
  15. <view class='mine-category'>
  16. <view class='play-count'>
  17. <text>作品</text>
  18. {{ filters.numFilter(wareCards.readAmount) || 0 }}
  19. </view>
  20. <view class='play-count'>
  21. <text>播放量</text>
  22. {{filters.numFilter( wareCards.playAmount) || 0 }}
  23. </view>
  24. <view class='follow-count'>
  25. <text>粉丝</text>
  26. {{ filters.numFilter(wareCards.fansAmount) || 0 }}
  27. </view>
  28. </view>
  29. </view>
  30. <VideoSwiper wx:if="{{videoList.length > 0}}" class="video-swiper" video-list="{{videoList}}" nextMargin="{{nextMargin}}" isSwiper="{{false}}" bindopenComment="openComment" bindheadTap="headTapHandler" bindcollectTap="collectTap" bindlikeTap="likeTap" bindopenShare="openShare" bindgoToReading="goToReading" bindaddShareAmount="addShareAmount" bindplay="onPlay"></VideoSwiper>
  31. </scroll-view>
  32. <view class="comment_section" catchtouchmove="touchMove" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  33. <Comment data-type="list" commentId="{{commentId}}" />
  34. </view>
  35. <canvas canvas-id="myCanvas" style="width:300px; height: 525px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  36. <canvas id='share' type="2d"> </canvas>