<view class="container">
    <view class="cart-product" wx:for="{{cartproducts}}" wx:for-index="index" hidden="{{productHidden}}">
      <view class="cart-product-item" color="{{item.selcolor}}" guige="{{item.guige}}">
                <view class="limg" bindtap="gotodetail" data-id="{{item.prodid}}">
                      <image src="{{item.prodimg}}" />
                </view>
                <view class="rname">
                  <view class="prodName"  bindtap="gotodetail" data-id="{{item.prodid}}">{{item.prodName}} {{item.selcolor}} 
                  </view> 
                  <view class="je">单价：<text>{{ttype==0?"金额":"￥"}}{{item.prodPrice}}</text> 小计：
                   <text>{{ttype==0?"金额":"￥"}}{{item.SubTotal}}</text>
                  </view>
                  <view class="tnum">
                         <view class="input_del" bindtap="updatenum" data-id="2:{{item.id}}:{{index}}"></view>
                         <input name="Nums" id="Num{{item.id}}" type="text" class="input_text" bindinput="updatenum" data-id="0:{{item.id}}:{{index}}" value="{{item.prodNum}}"/>
                         <view class="input_add"  bindtap="updatenum" data-id="1:{{item.id}}:{{index}}">
                         </view> 
                         <view class="Inventory">库存：{{item.TotalNum}}</view>
                   </view>
               </view> 
               <view class="icon" bindtap="delcart" data-id="{{item.id}}"><image src="../../images/close.png" />
              </view>
          </view> 
    </view>
    <view class="floor-noproduct" hidden="{{noproductHidden}}">
      <image src="{{cartImg}}" class="cart-image"/>
      <view>{{tipWords}}</view>  
    </view>
</view>
<view class="footer" hidden="{{footerHidden}}">
    <view class="cartmbox">
                    <view class="leftbox">
                             <text class="cart_Total_title">{{cart_Total_title}}</text>
                             <text class="cart_Total">{{cart_Total}}</text>
                    </view>
                    <view class="rightbox">
                         <button bindtap="Shop_Pay" class="input_shopdh" >去结算</button>
                    </view>
      </view>
    </view>
<loading hidden="{{loadingHidden}}">
        加载中...
    </loading> 