12345678910111213141516171819202122 |
- <!--components/paging/index.wxml-->
- <view class="layer">
- <image bindtap="prev" src="{{g_cdn}}/images/left@2x.png" mode="aspectFit"/>
- <block wx:if="{{currMin > min}}">
- <text bindtap="onTap" data-idx="{{min}}">{{min}}</text>
- <text wx:if="{{currMin - 1 > min}}">…</text>
- </block>
- <text bindtap="onTap" data-idx="{{item}}"
- class="{{paging.current == item ? 'active' : ''}}"
- wx:for="{{numbers}}" wx:key="index">{{item}}</text>
-
- <block wx:if="{{currMax < max}}">
- <text wx:if="{{currMax + 1 < max}}">…</text>
- <text bindtap="onTap" data-idx="{{max}}">{{max}}</text>
- </block>
- <image class="next" bindtap="next" src="{{g_cdn}}/images/right@2x.png" mode="aspectFit"/>
- </view>
-
|