my-collect.wxml
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!--pages/my-collect/my-collect.wxml-->
<view class="container">
<view class="main">
<view class="main_item" wx:for="{{list}}" data-index="{{index}}" catchtap="goDetail"
data-goodid="{{item. goodsId}}">
<movable-area>
<movable-view damping="100" direction="horizontal" x="{{x}}" animation="false" bindchange="handleMovableChange"
capture-bind:touchstart="handleTouchestart" capture-bind:touchend="handleTouchend">
<view class="main_item_content ">
<!-- <van-card num="{{item.num}}" price="{{item.goodsPrice}}" desc="{{item.goodsAttributes}}" title="{{item.goodsName}}" thumb="{{item.goodsImg}}" /> -->
<view class="left">
<image src="{{item.goodsImg}}" mode="aspectFill"></image>
</view>
<view class="right">
<view class="name">{{item.goodsName}}</view>
<view class="desc">{{item.goodsAttributes}}</view>
<view class="price">¥{{item.goodsPrice}}</view>
</view>
</view>
</movable-view>
</movable-area>
<view class="delete_btn ">
<view class="delete_mask" data-delIndex="{{index}} " catchtap="del" data-id="{{item.id}}">删除</view>
<view class="delete_btn " data-delIndex="{{index}} " data-id="{{item.id}}">删除</view>
</view>
</view>
<view class="bottomHint" wx:if="{{bottomHint}}">
我是有底线的~
</view>
<view wx:if="{{list.length==0}}" class="noDataBox">
<view class="noDataPic">
<image src="/images/message@2x.png"></image>
</view>
<view class="noDataText">这里已经空空如也~</view>
</view>
</view>
</view>