index.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <nav type="back" background-color="#ffffff" title="浏览记录" />
  2. <view class="browsing">
  3. <block wx:for="{{logs}}" wx:key="index">
  4. <block wx:if="{{item.targetClassName == '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="browsing_info">
  7. <view class="left_info">
  8. <image class="image" src="{{item.targetObject[0].image}}" mode="aspectFill" lazy-load="false" />
  9. </view>
  10. <view class="right_info">
  11. <view class="title">{{item.targetObject[0].name}}</view>
  12. <view class="desc">{{item.targetObject[0].desc}}</view>
  13. <view class="down_info">
  14. <view class="price">¥{{item.targetObject[0].price ? item.targetObject[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.targetClassName == 'Activity'}}">
  22. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-id="{{item.objectId}}" async-close bind:close="onClose">
  23. <view bindtap = "toDetail" data-item="{{item}}" class="browsing_info">
  24. <view class="left_info">
  25. <image class="image" src="{{item.targetObject[0].cover}}" mode="aspectFill" lazy-load="false" />
  26. </view>
  27. <view class="right_info">
  28. <view class="title">{{item.targetObject[0].title}}</view>
  29. <view class="desc">{{item.targetObject[0].desc}}</view>
  30. <view class="down_info">
  31. <view class="price">¥{{item.targetObject[0].price ? item.targetObject[0].price : '暂无'}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view slot="right" class="delete">删除</view>
  36. </van-swipe-cell>
  37. </block>
  38. </block>
  39. </view>