index.wxml 987 B

12345678910111213141516171819202122
  1. <n-spin spinning="{{loading}}">
  2. <view class="mainpage">
  3. <view class="atphoto-list" wx:if="{{ idx < 0 }}">
  4. <view class="atphoto-item cate delay-{{index}}" wx:for="{{cates}}" wx:key="index" data-idx="{{index}}" bind:tap="gocate">
  5. <t-image src="{{this.url2thumb(item.url)}}" mode="widthFix" lazy-load t-class="caseimage" />
  6. <view class="floatname">{{item.name}}</view>
  7. </view>
  8. </view>
  9. <block wx:else>
  10. <t-button icon="chevron-left" shape="circle" class="ml-1" bind:tap="goback" style="position: fixed; bottom: 100rpx; right: 50rpx; z-index: 9999;" theme="primary" />
  11. <view class="atphoto-list">
  12. <view class="atphoto-item delay-{{index % 20}}" wx:for="{{views}}" wx:key="index" data-idx="{{index}}" bind:tap="goview">
  13. <t-image src="{{this.url2thumb(item)}}" mode="widthFix" lazy-load t-class="caseimage" />
  14. </view>
  15. </view>
  16. </block>
  17. </view>
  18. </n-spin>
  19. <wxs src="../../utils/url.wxs" module="this" />