footprint.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class="footprint-container">
  2. <van-empty wx:if="{{ !footprintList.length }}" image="/static/images/empty_goods.png" description="您最近还没有足迹哦" />
  3. <view wx:else class="content">
  4. <view class="title jhx_bg0 acea-row row-middle row-right">
  5. <view wx:if="{{ !isEdit }}" bindtap="toggleEdit">编辑</view>
  6. <block wx:else>
  7. <view class="del-btn" bindtap="deleteFootprint">删除</view>
  8. <view bindtap="toggleEdit">取消</view>
  9. </block>
  10. </view>
  11. <scroll-view class="footprint-scroll" scroll-y refresher-enabled refresher-triggered="{{ loading }}" bindrefresherrefresh="pullDownRefresh">
  12. <van-checkbox-group wx:for="{{ footprintList }}" wx:for-item="footprint" wx:key="index" value="{{ selectList }}" bind:change="selectFootprint">
  13. <view class="date">{{ footprint.date }}</view>
  14. <van-checkbox custom-class="item jhx_bg0 {{ !isEdit ? 'no-radio' : '' }}" wx:for="{{ footprint.list }}" wx:key="{{ item.footPrintId }}" name="{{ item.footPrintId }}" icon-size="16" checked-color="#D32D2F" data-id="{{ item.id }}" bindtap="toDetail">
  15. <view class="acea-row row-between-wrapper">
  16. <image class="pic" src="{{ item.picUrl[0] }}" />
  17. <view class="right acea-row row-column row-between">
  18. <view class="name line1 line2">{{ item.name }}</view>
  19. <view class="acea-row row-between row-bottom">
  20. <view class="price"><text>¥</text>{{ item.retailPrice }}</view>
  21. <van-icon name="./meizhuang.png" size="24" />
  22. </view>
  23. </view>
  24. </view>
  25. </van-checkbox>
  26. </van-checkbox-group>
  27. <view class="no-more">- 到底啦,仅显示近7天的记录哦 —</view>
  28. </scroll-view>
  29. </view>
  30. </view>