12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <nav type="back" background-color="#ffffff" title="浏览记录" />
- <view class="browsing">
- <block wx:for="{{logs}}" wx:key="index">
- <block wx:if="{{item.targetClassName == '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="browsing_info">
- <view class="left_info">
- <image class="image" src="{{item.targetObject[0].image}}" mode="aspectFill" lazy-load="false" />
- </view>
- <view class="right_info">
- <view class="title">{{item.targetObject[0].name}}</view>
- <view class="desc">{{item.targetObject[0].desc}}</view>
- <view class="down_info">
- <view class="price">¥{{item.targetObject[0].price ? item.targetObject[0].price : '暂无'}}</view>
- </view>
- </view>
- </view>
- <view slot="right" class="delete">删除</view>
- </van-swipe-cell>
- </block>
- <block wx:if="{{item.targetClassName == 'Activity'}}">
- <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="browsing_info">
- <view class="left_info">
- <image class="image" src="{{item.targetObject[0].cover}}" mode="aspectFill" lazy-load="false" />
- </view>
- <view class="right_info">
- <view class="title">{{item.targetObject[0].title}}</view>
- <view class="desc">{{item.targetObject[0].desc}}</view>
- <view class="down_info">
- <view class="price">¥{{item.targetObject[0].price ? item.targetObject[0].price : '暂无'}}</view>
- </view>
- </view>
- </view>
- <view slot="right" class="delete">删除</view>
- </van-swipe-cell>
- </block>
- </block>
-
-
- </view>
-
|