index.wxml 2.2 KB

1
  1. <view><view class="{{['cartList',(cartData.iScart)?'on':'',(!isFooter)?'ons':'']}}"><view class="title acea-row row-between-wrapper"><view class="name">已选商品</view><view data-event-opts="{{[['tap',[['subDel',['$event']]]]]}}" class="del acea-row row-middle" bindtap="__e"><view class="iconfont icon-shanchu1"></view>清空</view></view><view class="list"><block wx:for="{{cartData.cartList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item acea-row row-between-wrapper"><view class="pictrue"><block wx:if="{{item.productInfo.attrInfo}}"><image src="{{item.productInfo.attrInfo.image}}"></image></block><block wx:else><image src="{{item.productInfo.image}}"></image></block><block wx:if="{{!item.status||!item.attrStatus}}"><view class="mantle"></view></block></view><view class="txtPic"><view class="{{['name','line2',item.attrStatus&&item.status?'':'on']}}">{{item.productInfo.store_name}}</view><block wx:if="{{item.attrStatus&&item.status}}"><view><block wx:if="{{item.productInfo.attrInfo}}"><view class="info">{{item.productInfo.attrInfo.suk}}</view></block><slot name="center{{index}}"></slot><view class="bottom acea-row row-between-wrapper"><view class="money">¥<text class="num">{{item.truePrice}}</text></view><view class="cartNum acea-row row-middle"><view data-event-opts="{{[['tap',[['leaveCart',[index]]]]]}}" class="reduce iconfont icon-jianhao1" bindtap="__e"></view><view class="num">{{item.cart_num}}</view><view data-event-opts="{{[['tap',[['joinCart',[index]]]]]}}" class="plus iconfont icon-jiahao1" bindtap="__e"></view></view></view></view></block><block wx:else><block wx:if="{{!item.attrStatus}}"><view class="noBnt">已售罄</view></block><block wx:else><block wx:if="{{!item.status}}"><view class="noBnt">已下架</view></block></block></block><block wx:if="{{!item.status||!item.attrStatus}}"><view class="delTxt acea-row row-right"><text data-event-opts="{{[['tap',[['oneDel',['$0',index],[[['cartData.cartList','',index,'id']]]]]]]}}" bindtap="__e">删除</text></view></block></view></view></block></view></view><block wx:if="{{cartData.iScart}}"><view data-event-opts="{{[['tap',[['closeList',['$event']]]],['touchmove',[['moveHandle',['$event']]]]]}}" class="mask" bindtap="__e" catchtouchmove="__e"></view></block></view>