shopCart.wxml
2.29 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
<view tt:if="{{curShoppingCartData.has_product_in_shop_cart}}" class="container">
<view tt:if="{{curShoppingCartData.shipping_cost_prompt.shipping_cost_tips != '' || curShoppingCartData.price_down_prompt.price_down_tips != ''}}" class="floatHeaderContainer">
<view tt:if="{{curShoppingCartData.price_down_prompt.price_down_tips && !has_close_price_down_tip}}" class="priceDownTipsContainer">
<text class="shippingCostTip priceDownTitle">{{curShoppingCartData.price_down_prompt.price_down_tips}}</text>
<image class="priceDownTipsClose" bindtap='tapPriceDownTipsAction' src="../../images/close_icon@2x.png"></image>
</view>
<view tt:else class="shippingCostTip">{{curShoppingCartData.shipping_cost_prompt.shipping_cost_tips}}</view>
<view class="editBtn" bindtap="editBtnSelected" tt:if="{{!isEditing}}">编辑商品</view>
<view class="editBtn" bindtap="editCompletedAction" tt:if="{{isEditing}}">完成</view>
</view>
<scroll-view scroll-y="{{enableScroll}}" class="contentContainer" style="position: absolute;top:{{scrollerViewTop}}px;height:{{scrollerViewHeight}}px" enable-back-to-top="true">
<!--商品池 -->
<view tt:if="{{curShoppingCartData.goods_pool_list.length}}" class="goodsPoolListContainer">
<!--
<template is="shoppingCartProductCell" tt:for="{{curShoppingCartData.goods_pool_list}}" tt:key="goodsPoolItem" data="{{index,item,isEditing,deleteAnimation,tempSku}}"></template>
-->
<block wx:for="{{curShoppingCartData.goods_pool_list}}" tt:key="goodsPoolItem" tt:for-item="item">
<shoppingCartProductCell data="{{item, index,isEditing,deleteAnimation,tempSku}}"></shoppingCartProductCell>
</block>
</view>
</scroll-view>
<!-- footer -->
<!--
<template is="shoppingCartFooterView" data="{{item:curShoppingCartData.shopping_cart_data,isSelectAll:curShoppingCartData.isValidGoodsSelectAll,isEditing}}"></template>
<template is="Picker" data="{{pickerData}}"/>
-->
</view>
<view tt:else>
<view class='empty-view'>
<image src='../../images/shoppingcart_empty@2x.png' class='shoppingcart-empty-icon'></image>
<text class='shoppingcart-empty-title'>购物车空空如也\n去挑选中意的商品</text>
<view class='shoppingcart-empty-btn' bindtap='navToNewArriaval'>去逛逛</view>
</view>
</view>