1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <navbar parameter='{{parameter}}'></navbar>
- <view class='shoppingCart'>
- <view class='labelNav acea-row row-around row-middle' style='top:{{navH}}rpx'>
- <view class='item'><text class='iconfont icon-xuanzhong'></text>100%正品保证</view>
- <view class='item'><text class='iconfont icon-xuanzhong'></text>所有商品精挑细选</view>
- <view class='item'><text class='iconfont icon-xuanzhong'></text>售后无忧</view>
- </view>
- <view class='nav acea-row row-between-wrapper' style='top:{{navH+76}}rpx'>
- <view>购物数量 <text class='num font-color'>{{cartCount}}</text></view>
- <view wx:if="{{cartList.valid.length > 0 || cartList.invalid.length > 0}}" class='administrate acea-row row-center-wrapper' bindtap='manage'>{{ footerswitch ? '管理' : '取消'}}</view>
- </view>
- <view wx:if="{{cartList.valid.length > 0 || cartList.invalid.length > 0}}">
- <view class='list'>
- <checkbox-group bindchange="checkboxChange">
- <block wx:for="{{cartList.valid}}" wx:key='index'>
- <view class='item acea-row row-between-wrapper' >
- <checkbox value="{{item.id}}" checked="{{item.checked}}"/>
- <navigator url='/pages/goods_details/index?id={{item.product_id}}' hover-class='none' class='picTxt acea-row row-between-wrapper'>
- <view class='picTxt acea-row row-between-wrapper'>
- <view class='pictrue'>
- <image wx:if="{{item.productInfo.attrInfo}}" src='{{item.productInfo.attrInfo.image}}'></image>
- <image wx:else src='{{item.productInfo.image}}'></image>
- </view>
- <view class='text'>
- <view class='line1'>{{item.productInfo.store_name}}</view>
- <view class='infor line1' wx:if="{{item.productInfo.attrInfo}}">属性:{{item.productInfo.attrInfo.suk}}</view>
- <view class='money'>¥{{item.truePrice}}</view>
- </view>
- <view class='carnum acea-row row-center-wrapper'>
- <view class="reduce {{item.numSub ? 'on' : ''}}" catchtap='subCart' data-index="{{index}}">-</view>
- <view class='num'>
- <input type="number" value="{{item.cart_num}}" data-name="item.cart_num" catchinput="iptCartNum" data-index="{{index}}" bindblur="inputBlur" catchtap="proventD"></input>
- </view>
- <view class="plus {{item.numAdd ? 'on' : ''}}" catchtap='addCart' data-index="{{index}}">+</view>
- </view>
- </view>
- </navigator>
- </view>
- </block>
- </checkbox-group>
- </view>
- <view class='invalidGoods' wx:if="{{cartList.invalid.length > 0}}">
- <view class='goodsNav acea-row row-between-wrapper'>
- <view bindtap='goodsOpen'><text class='iconfont {{goodsHidden==true?"icon-xiangxia":"icon-xiangshang"}}'></text>失效商品</view>
- <view class='del' bindtap='unsetCart'><text class='iconfont icon-shanchu1'></text>清空</view>
- </view>
- <view class='goodsList' hidden='{{goodsHidden}}'>
- <block wx:for="{{cartList.invalid}}" wx:key='index'>
- <view class='item acea-row row-between-wrapper'>
- <view class='invalid'>失效</view>
- <view class='pictrue'>
- <image wx:if="{{item.productInfo.attrInfo}}" src='{{item.productInfo.attrInfo.image}}'></image>
- <image wx:else src='{{item.productInfo.image}}'></image>
- </view>
- <view class='text acea-row row-column-between'>
- <view class='line1'>{{item.productInfo.store_name}}</view>
- <view class='infor line1' wx:if="{{item.productInfo.attrInfo}}">属性:{{item.productInfo.attrInfo.suk}}</view>
- <view class='acea-row row-between-wrapper'>
- <view wx:if="{{item.truePrice}}">¥{{item.truePrice}}</view>
- <view class='end'>该商品已失效</view>
- </view>
- </view>
- </view>
- </block>
- </view>
- </view>
- </view>
- <view class='noCart' wx:if="{{cartList.valid.length == 0 && cartList.invalid.length == 0}}">
- <view class='pictrue'><image src='/images/noCart.png'></image></view>
- <recommend host_product='{{host_product}}'></recommend>
- </view>
- <view style='height:120rpx;'></view>
- <view class='footer acea-row row-between-wrapper' wx:if="{{cartList.valid.length > 0}}">
- <view>
- <checkbox-group bindchange="checkboxAllChange">
- <checkbox value="all" checked="{{isAllSelect}}" /><text class='checkAll'>全选 ({{cartCount}})</text>
- </checkbox-group>
- </view>
- <view class='money acea-row row-middle' wx:if='{{footerswitch==true}}'>
- <text class='font-color'>¥{{selectCountPrice}}</text>
- <form bindsubmit="subOrder" report-submit='true'>
- <button class='placeOrder bg-color' formType="submit">立即下单</button>
- </form>
- </view>
- <view class='button acea-row row-middle' wx:else>
- <form bindsubmit="subCollect" report-submit='true'>
- <button class='bnt cart-color' formType="submit">收藏</button>
- </form>
- <form bindsubmit="subDel" report-submit='true'>
- <button class='bnt' formType="submit">删除</button>
- </form>
- </view>
- </view>
- </view>
- <authorize bind:onLoadFun='onLoadFun' bind:onCloseAuto='onCloseAuto' isGoIndex='{{isGoIndex}}' iShidden='{{iShidden}}'></authorize>
|