index.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <nav type="back" background-color="{{activeColor ? activeColor : '#ffffff'}}" title="我的收藏" frontColor="{{titleColor ? titleColor : '#000000'}}" />
  2. <view class="collect" wx:if="{{collectList && collectList.length > 0}}">
  3. <block wx:for="{{collectList}}" wx:key="index">
  4. <block wx:if="{{item.schemaName=='ShopGoods'}}">
  5. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-id="{{item.objectId}}" async-close bind:close="onClose">
  6. <view bindtap="toDetail" data-item="{{item}}" class="collect_info">
  7. <view class="left_info">
  8. <image class="image" src="{{item.image}}" mode="aspectFill" lazy-load="false" />
  9. </view>
  10. <view class="right_info">
  11. <view class="title">{{item.name}}</view>
  12. <view class="desc">{{item.collectTarget[0].desc}}</view>
  13. <view class="down_info">
  14. <view class="price">¥{{item.collectTarget[0].price}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view slot="right" class="delete">删除</view>
  19. </van-swipe-cell>
  20. </block>
  21. <block wx:if="{{item.schemaName=='Lesson'}}">
  22. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-id="{{item.objectId}}" async-close bind:close="onClose">
  23. <view bindtap="lesson" data-item="{{item}}" class="box">
  24. <image class="image" src="{{item.image}}" mode="aspectFill" lazy-load="false" />
  25. <view class="right">
  26. <view class="title">{{item.name}}</view>
  27. <view class="time">{{item.collectTarget[0].desc}}</view>
  28. <view class="lecturer">{{item.collectTarget[0].teacher}}</view>
  29. </view>
  30. </view>
  31. <view slot="right" class="delete">删除</view>
  32. </van-swipe-cell>
  33. </block>
  34. </block>
  35. </view>
  36. <van-empty image="https://file-cloud.fmode.cn/null_order.png" description="暂无收藏" wx:else />