index.wxml 7.0 KB

1
  1. <block wx:if="{{hasLogin}}"><view class="container cart clearfix"><block wx:if="{{skeletonShow}}"><tui-skeleton vue-id="0ba743fb-1" backgroundColor="#fafafa" borderRadius="10rpx" isLoading="{{true}}" loadingType="{{5}}" bind:__l="__l"></tui-skeleton></block><view class="container-cart-main tui-skeleton" style="{{'padding-top:'+(isshowDelbtn?'0rpx':'80rpx')+';'}}"><block wx:if="{{!isshowDelbtn&&goodsList.length>0}}"><view class="foot-check-delbtn"><view class="foot-text">共<text>{{kindCount}}</text>件商品</view><view data-event-opts="{{[['tap',[['showDelManager',['$event']]]]]}}" class="delBtn" catchtap="__e">删除</view></view></block><block wx:if="{{!isEmpty}}"><view class="container-cart"><view class="cart-content" style="{{'padding-bottom:'+(isIphoneX?'130rpx':'100rpx')+';'}}"><view class="goods-list"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="goods-item clearfix"><view class="shoptitle"><view data-event-opts="{{[['tap',[['checkShop',['$0'],[[['goodsList','',index]]]]]]]}}" class="checkbox-box" catchtap="__e"><view class="{{['checkbox','iconfont',item.$orig.checked?'icon-xuanze':'icon-weixuanze']}}"></view></view><view class="text">{{item.$orig.name}}</view></view><view class="productlist"><block wx:for="{{item.l0}}" wx:for-item="pros" wx:for-index="idx" wx:key="idx"><view class="goods-pros"><view class="goods-pros-t"><view data-event-opts="{{[['tap',[['ischeck',['$0','$1'],[[['goodsList','',index]],[['goodsList','',index],['productList','',idx]]]]]]]}}" class="checkbox-box" catchtap="__e"><view class="{{['checkbox','iconfont',pros.$orig.productsChecked?'icon-xuanze':'icon-weixuanze']}}"></view></view><view data-event-opts="{{[['tap',[['navToListPage',['$0'],[[['goodsList','',index],['productList','',idx]]]]]]]}}" class="pros-img" catchtap="__e"><image src="{{pros.$orig.mainImage?pros.$orig.mainImage:''}}" alt></image></view><view class="pros-product"><view data-event-opts="{{[['tap',[['navToListPage',['$0'],[[['goodsList','',index],['productList','',idx]]]]]]]}}" class="producttitle" catchtap="__e">{{pros.$orig.productName}}</view><view class="productspec">{{"规格:"+(pros.$orig.unit?pros.$orig.unit:'')}}</view><block wx:if="{{pros.$orig.activeStatus==1}}"><view class="floor-item-act"><block wx:if="{{!pros.$orig.heUserId}}"><text class="tag tag-01">自营</text></block><block wx:else><text class="tag tag-01">促销</text></block><text data-event-opts="{{[['tap',[['clickPopupShow',['$0',2],[[['goodsList','',index],['productList','',idx]]]]]]]}}" class="tag tag-02" catchtap="__e">活动价</text></view></block><view class="productprice"><view class="price"><text>¥</text>{{pros.f0}}</view><view class="count"><view class="number-box"><view data-event-opts="{{[['tap',[['changeCountSub',['$0','$1'],[[['goodsList','',index]],[['goodsList','',index],['productList','',idx]]]]]]]}}" class="iconfont icon-jianhao" bindtap="__e"></view><input class="btn-input" type="number" maxlength="4" data-event-opts="{{[['blur',[['changeNnmber',['$event','$0','$1'],[[['goodsList','',index]],[['goodsList','',index],['productList','',idx]]]]]],['focus',[['changeInput',['$0'],[[['goodsList','',index],['productList','',idx]]]]]],['input',[['__set_model',['$0','productCount','$event',[]],[[['goodsList','',index],['productList','',idx]]]]]]]}}" value="{{pros.$orig.productCount}}" bindblur="__e" bindfocus="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['changeCountAdd',['$0','$1'],[[['goodsList','',index]],[['goodsList','',index],['productList','',idx]]]]]]]}}" class="iconfont icon-jiahao" bindtap="__e"></view></view></view></view></view></view></view></block></view><view class="{{['goods-pros-b','clearfix',isshowDelbtn?'none':'show']}}"><block wx:if="{{item.$orig.reducedPrice>0}}"><view class="sum-none"><text class="money-sign">¥</text><text class="money">{{item.f1}}</text><text class="money-reduced">减<text>{{"¥"+item.f2}}</text></text></view></block><view class="sum">合计:<text class="money"><text class="money-sign">¥</text>{{item.f3}}</text></view></view></view></block></view><block wx:if="{{failureList.length>0}}"><view class="failure-list"><view class="failure-title"><view class="title-txt">失效商品<text>{{failureList.length+"件"}}</text></view><view data-event-opts="{{[['tap',[['deletefailureList',['$event']]]]]}}" class="title-btn" catchtap="__e"><text class="butto">清空失效商品</text></view></view><view class="productlist"><block wx:for="{{failureList}}" wx:for-item="failure" wx:for-index="failureIdx" wx:key="failureIdx"><view class="goods-pros"><view data-event-opts="{{[['tap',[['navToListPage',['$0'],[[['failureList','',failureIdx]]]]]]]}}" class="goods-pros-t" catchtap="__e"><block wx:if="{{isshowDelbtn}}"><view data-event-opts="{{[['tap',[['ischeckFailure',['$0'],[[['failureList','',failureIdx]]]]]]]}}" class="checkbox-box" catchtap="__e"><button class="{{['checkbox','iconfont',failure.productsChecked?'icon-xuanze':'icon-weixuanze']}}"></button></view></block><text class="img-tip">失效</text><view class="pros-img"><image src="{{failure.mainImage?failure.mainImage:''}}" alt></image></view><view class="pros-product"><view class="producttitle">{{failure.name}}</view><view class="productspec">{{"规格:"+(failure.unit?failure.unit:'')}}</view><view class="productstate">商品已下架</view></view></view></view></block></view></view></block></view><view class="footer"><view class="footer-le"><view data-event-opts="{{[['tap',[['checkAll']]]]}}" class="foot-check checkbox-box" catchtap="__e"><button class="{{['checkbox','iconfont',isCheckAll?'icon-xuanze':'icon-weixuanze']}}"></button><view class="text">全选</view></view><view class="sum"><block wx:if="{{!isshowDelbtn}}"><view class="sum-price">总价:<text class="money-sign">¥</text><text class="money">{{$root.f4}}</text></view></block></view></view><block wx:if="{{!isshowDelbtn}}"><view class="footer-ri"><view data-event-opts="{{[['tap',[['toConfirmation',['$event']]]]]}}" class="btn hanld-btn" bindtap="__e">{{"去结算("+allCount+")"}}</view></view></block><block wx:else><view class="footer-del"><view data-event-opts="{{[['tap',[['hideDelManage',['$event']]]]]}}" class="btn btn-cancel" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['deleteList',['$event']]]]]}}" class="btn btn-confirm" catchtap="__e">删除</view></view></block></view></view></block><block wx:else><view class="cart-content empty"><view class="empty-container"><image class="empty-container-image" src="{{StaticUrl+'icon-empty-cart.png'}}" mode="aspectFit"></image><text class="error-text">购物车空空的,快去逛逛吧~</text></view></view></block></view><tui-modal vue-id="0ba743fb-2" show="{{modal}}" content="{{contentModalText}}" color="#333" size="{{32}}" shape="circle" maskClosable="{{false}}" data-event-opts="{{[['^click',[['handleClick']]],['^cancel',[['hideMobel']]]]}}" bind:click="__e" bind:cancel="__e" bind:__l="__l"></tui-modal><activi-popup vue-id="0ba743fb-3" product="{{handlerPros}}" popupShow="{{popupShow}}" bind:__l="__l"></activi-popup><block wx:if="{{modallayer}}"><modal-layer vue-id="0ba743fb-4" bind:__l="__l"></modal-layer></block></view></block>