<nav type="back" background-color="#ffffff" frontColor="{{titleColor ? titleColor : '#ffffff'}}" backgroundColor="{{activeColor ? activeColor : '#279a9e'}}" title="我的足迹"></nav>
<block wx:for="{{list}}" wx:key="index">
    <block wx:if="{{item.targetClassName=='ShopGoods'}}">
        <view class="box" bindtap="goods" data-item="{{item}}">
            <image class="image" src="{{item.targetObject[0].image}}" />
            <view class="right">
                <view class="title">{{item.targetObject[0].name}}</view>
                <view class="price">￥{{item.targetObject[0].price}}</view>
                <view class="time">{{item.joinTime}}</view>
                <view class="collection" catchtap="collection" data-item="{{item}}">收藏</view>
            </view>
        </view>
    </block>
    <block wx:if="{{item.targetClassName=='Lesson'}}">
        <view class="box" bindtap="lesson" data-item="{{item}}">
            <image class="image" src="{{item.targetObject[0].image}}" />
            <view class="right">
                <view class="title">{{item.targetObject[0].title}}</view>
                <view class="lecturer">{{item.targetObject[0].teacher}}</view>
                <view class="time">{{item.joinTime}}</view>
                <view class="collection" catchtap="collection" data-item="{{item}}">收藏</view>
            </view>
        </view>
    </block>
</block>