12345678910111213141516171819202122232425262728293031323334353637 |
- <nav type="back" background-color="{{activeColor ? activeColor : '#ffffff'}}" title="我的收藏" frontColor="{{titleColor ? titleColor : '#000000'}}" />
- <view class="collect" wx:if="{{collectList && collectList.length > 0}}">
- <block wx:for="{{collectList}}" wx:key="index">
- <block wx:if="{{item.schemaName=='ShopGoods'}}">
- <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-id="{{item.objectId}}" async-close bind:close="onClose">
- <view bindtap="toDetail" data-item="{{item}}" class="collect_info">
- <view class="left_info">
- <image class="image" src="{{item.image}}" mode="aspectFill" lazy-load="false" />
- </view>
- <view class="right_info">
- <view class="title">{{item.name}}</view>
- <view class="desc">{{item.collectTarget[0].desc}}</view>
- <view class="down_info">
- <view class="price">¥{{item.collectTarget[0].price}}</view>
- </view>
- </view>
- </view>
- <view slot="right" class="delete">删除</view>
- </van-swipe-cell>
- </block>
- <block wx:if="{{item.schemaName=='Lesson'}}">
-
- <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" data-id="{{item.objectId}}" async-close bind:close="onClose">
- <view bindtap="lesson" data-item="{{item}}" class="box">
- <image class="image" src="{{item.image}}" mode="aspectFill" lazy-load="false" />
- <view class="right">
- <view class="title">{{item.name}}</view>
- <view class="time">{{item.collectTarget[0].desc}}</view>
- <view class="lecturer">{{item.collectTarget[0].teacher}}</view>
- </view>
- </view>
- <view slot="right" class="delete">删除</view>
- </van-swipe-cell>
- </block>
- </block>
- </view>
- <van-empty image="https://file-cloud.fmode.cn/null_order.png" description="暂无收藏" wx:else />
|