12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <navbar parameter='{{parameter}}'></navbar>
- <view class='shoppingCart'>
- <view class='nav acea-row row-between-wrapper' style="margin-top:0rpx" >
- <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/noShopper.png'></image></view>
- <view class="noCart_p">购物车还没有东西哦~</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='fontcolor'>¥{{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>
|