| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <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"
- />
- </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">
- <button class="placeOrder bg-color" formType="submit">立即下单</button>
- </form>
- </view>
- <view class="button acea-row row-middle" wx:else>
- <form bindsubmit="subCollect">
- <button class="bnt cart-color" formType="submit">收藏</button>
- </form>
- <form bindsubmit="subDel">
- <button class="bnt" formType="submit">删除</button>
- </form>
- </view>
- </view>
- </view>
- <authorize bind:onLoadFun="onLoadFun" bind:onCloseAuto="onCloseAuto" isGoIndex="{{isGoIndex}}" isHidden="{{isHidden}}">
- </authorize>
|