| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <view>
- <view class="manage">
- <text bindtap="manageBut">{{isManage?"完 成":"管 理"}}</text>
- </view>
- <!-- 暂无可管理商品 -->
- <view class="empty" wx:if="{{false}}">
- <image class="emptyIcon" src="/images/cart/empty.png" alt=""/>
- <text>暂无可管理商品</text>
- </view>
- <!-- 商品列表 -->
- <view class="prodsList">
- <checkbox-group bindchange="handleCheckboxChange">
- <view class="itemProd" wx:for="{{cartList}}" wx:key="id">
- <checkbox value="{{item.id}}" checked="{{item.checkFlag === '1'}}"></checkbox>
- <view class="goods-info">
- <image src="/images/index/category-item.png" mode="aspectFill"></image>
- <view class="info">
- <text>{{item.prodName}}</text>
- <text>{{item.prodAttrName}}</text>
- <text>¥{{item.price}}</text>
- </view>
- <view class="count">
- <text class="reduceNum" bindtap="decreaseCount" data-id="{{item.id}}">-</text>
- <text class="num">{{item.quantity}}</text>
- <text class="addNum" bindtap="increaseCount" data-id="{{item.id}}">+</text>
- </view>
- </view>
- </view>
- </checkbox-group>
-
- </view>
- <!-- 推荐 -->
- <view class="recommend">
- <view class="divider">
- <text class="line"></text>
- <text class="text">更多个性化推荐</text>
- <text class="line"></text>
- </view>
- <product-list position="hot"></product-list>
- </view>
- <!-- 底部全选和总价 -->
- <view class="footer {{isManage && 'manageFooter'}}" >
- <label class="checkBoxAll">
- <checkbox value="all" checked="{{isAllChecked}}" bindtap="toggleAll">全 选</checkbox>
- </label>
- <text wx:if="{{!isManage}}">合计:¥{{totalPrice}}</text>
- <text wx:if="{{!isManage}}">确认下单</text>
- <view class="delete" wx:if="{{isManage}}" catchtap="deleteProd">删 除</view>
- </view>
- </view>
|