my-collect.wxml 1.6 KB
<!--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>