gouwucart.wxml 2.2 KB

<view class="cartkong" wx:if="{{goodlist.length==0}}">
    <view class="cartkongimg">
        <image src="/img/cartimg.png"></image>
    </view>

    <view class="konggou">暂无数据</view>
</view>

<view class="cartbox" wx:else>
  <view class="cartheadimg">
    <image src="/img/bg_head.png"></image>


    <view class="carthead">
      <view class="cartheaditem">物料编号</view>
      <view class="cartheaditem">品名</view>
      <view class="cartheaditem">目录价格</view>
      <view class="cartheaditem">开发票名</view>
      <view class="cartheaditem">库存</view>
      <view class="cartheaditem"></view>

    </view>
  </view>
  <view class="cartbox">
    <view class="cartboxotem" wx:for="{{goodlist}}" wx:key="">
      <view class="boxitemname">{{item.number}}</view>
      <view class="boxitemname">{{item.name}}</view>
      <view class="boxitemname">{{item.price}}</view>
      <view class="boxitemname">{{item.invoice_name}}</view>
      <view class="boxitemname">{{item.stock}}</view>

      <view class="addimg" bindtap="addcart" data-obj="{{item}}">

        <view class="addfuhao">
          <image src="/img/addfuhao.png"></image>
        </view>

      </view>
    </view>

   
  </view>

  <view class="footbottom">
    <view class="footimg" bindtap="gouwu">
      <image src="/img/gouwuche.png"></image>
      <view class="cartnum">{{count}}</view>
    </view>
  </view>

  <!-- 商品名称购买 -->

  <view class="register" wx:if="{{buyshow}}">
    <view class="goodwrap">
      <view class="goodname">{{shangpinming}}</view>

      <view class="selectgood">
        <view class="goumaileft">请选择购买商品数量</view>

        <view class="goumairight">
          <view class="maileft" bindtap="reduce">
            -
          </view>

          <view class="maimiddle">
          <input placeholder='{{goodnum}}' value="{{goodnum}}" type="number" bindinput="entercartnum"/>
         
          </view>

          <view class="mairight" bindtap="add">+</view>
        </view>
      </view>

      <!-- 取消和确定 -->
      <view class="cancelandsure">
        <view class="cancel" bindtap="quxiao">取消</view>
        <view class="sure" bindtap="quding">确定</view>
      </view>


    </view>
  </view>

</view>