|
|
<import src="./goods-list.wxml"/>
|
|
|
<import src="./promotion-list.wxml"/>
|
|
|
|
|
|
<template name="cartGoodsPool">
|
|
|
<div class="goods-pool-list">
|
|
|
<block wx:for="{{goodsPoolList}}" wx:key="unique">
|
|
|
<template is="cartPromotionList" data="{{promotion_list: item.promotion_list, isPromotionExpanded: item.isPromotionExpanded}}"/>
|
|
|
|
|
|
<template is="cartPromotionList" data="{{promotionList: item.promotion_list, isPromotionExpanded: item.isPromotionExpanded}}"/>
|
|
|
|
|
|
<block wx:if="{{item.sub_pool}}">
|
|
|
<block wx:for="{{item.sub_pool}}" wx:for-item="sItem" wx:for-index="sIndex" wx:key="unique">
|
|
|
<template is="cartPromotionList" data="{{promotion_list: sItem.promotion_list, isPromotionExpanded: item.isPromotionExpanded, isSub: true}}"/>
|
|
|
<template is="cartPromotionList" data="{{promotionList: sItem.promotion_list, isPromotionExpanded: item.isPromotionExpanded, isSub: true}}"/>
|
|
|
|
|
|
<view class="list-warp">
|
|
|
<block wx:for="{{sItem.goods_list}}" wx:for-item="spgItem" wx:for-index="spgIndex" wx:key="unique">
|
|
|
<cart-item item="{{spgItem}}" index="{{spgIndex}}"></cart-item>
|
|
|
</block>
|
|
|
<template is="cartGoodsList" data="{{goodsList: sItem.goods_list, isEditing}}"/>
|
|
|
</view>
|
|
|
</block>
|
|
|
</block>
|
|
|
|
|
|
<!-- TODO 套餐 -->
|
|
|
|
|
|
<view class="bundle-goods" wx:if="{{item.pool_type === 3 && item.pool_batch_no}}">
|
|
|
<view class='bundle-title'>
|
|
|
<view class="choose-btn">
|
|
|
<text class="iconfont icon-duihao-fill" wx:if="{{item.selected === 'Y'}}"></text>
|
|
|
<text class="iconfont icon-round" wx:else></text>
|
|
|
</view>
|
|
|
<view class="bundle-tag">优惠套装</view>
|
|
|
<view class="bundle-name">{{item.pool_title}}</view>
|
|
|
<view class='bundle-buy-num' wx:if="{{!isEditing}}">x {{item.pool_buy_number}}</view>
|
|
|
</view>
|
|
|
<view class="edit-wrap" wx:if="{{isEditing}}">
|
|
|
<view class="bundle-edit-title">优惠数量</view>
|
|
|
<view class="bundle-edit-num">
|
|
|
<cart-edit goods="{{item}}" type="{{'bundle'}}"></cart-edit>
|
|
|
</view>
|
|
|
<view class='bundle-buy-num'>x {{item.pool_buy_number}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<block wx:if="{{item.goods_list.length}}">
|
|
|
<block wx:for="{{item.goods_list}}" wx:for-item="sgItem" wx:for-index="sgIndex" wx:key="unique">
|
|
|
<cart-item item="{{sgItem}}" index="{{sgIndex}}"></cart-item>
|
|
|
</block>
|
|
|
</block>
|
|
|
<template is="cartGoodsList" data="{{goodsList: item.goods_list, isEditing}}"/>
|
|
|
|
|
|
<view class="split-line"></view>
|
|
|
</block>
|
...
|
...
|
|