myorder.wxml 13.9 KB
<!-- <import src="../template/template.wxml" />
<template is="tabBar" data='{{num:num}}' /> -->

<view class="shopnav" wx:if="{{class==3}}">
  <view wx:for="{{navbarjingxiao}}" data-idx="{{index}}" class="nav_item shopnavitem {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="jingxiaonavbarTap" data-categoryid="{{item.id}}">{{item.name}}
  </view>
</view>
<view class="nav mainindex_nav " wx:else>
  <view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
  </view>
</view>



<!-- 没有订单 -->
<view class="cartkong" wx:if="{{myorder}}">
  <view class="cartimg">
    <image src="../../img/aicon_12@2x.png"></image>
  </view>

  <view class="cartname">购物车内还没有商品哦~</view>
  <view class="clearshop guang">去逛逛</view>
</view>

<view wx:else>


  <!-- 订单列表 经销商-->

  <block wx:if="{{class==3}}">
    <view class="orderlist" wx:for="{{orderlist}}" wx:key=''>
      <view class="orderlistitem" wx:if="{{item.orderGoodsInfo.length==1}}" data-type="3" data-kind="1" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}" bindtap="ordertail">

        <view class="orderimage">
          <image src="{{item.orderGoodsInfo[0].goodsImgUrl}}" mode="widthFix"></image>
        </view>

        <view class="orderright">
          <view class="orderfight_top">

            <view class="orderinfo">
              <view class="ordername">
                {{item.orderGoodsInfo[0].goodsName}}
              </view>
              <view class="oredercolor">颜色:{{item.orderGoodsInfo[0].goodsColorName}}</view>
            </view>
            <view class="orderinfonum">
              <view class="conorderinfoname" wx:if="{{item.statusId==1}}">已提交</view>
              <view class="conorderinfoname" wx:if="{{item.statusId==3}}">已完成</view>

              <view class="orderinfomoney">¥ {{item.orderGoodsInfo[0].goodsPrice}}</view>
              <view class="orderinfocartnum">x{{item.orderGoodsInfo[0].numbers}}</view>
            </view>


          </view>
          <view class="orderinfobottom">
            <view class="ordertotalnum">共计{{item.orderGoodsInfo[0].numbers}}件商品</view>
            <view class="ordermiddlelist">
              <view class="ordermiddlelistitem">
                <view class="heji">合计:</view>
                <view class="hejimoney">¥{{item.orderGoodsInfo[0].totalGoodsPrice}}</view>
              </view>
              <view class="ordermiddlelistitem">
                <view class="heji">实付:</view>
                <view class="hejimoney">¥{{item.orderGoodsInfo[0].totalGoodsPrice}}</view>
              </view>

            </view>
  
      
            <view class="buybtn" catchtap="buyagain" data-id="{{item.$id}}" wx:if="{{item.statusId==3}}">再次购买</view>

          </view>
        </view>

      </view>


      <view class="moreorderlistitem" bindtap="ordertail" data-type="1" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}" wx:else>
        <view class="containertext">
          <view class="imgcontainer">
            <view class="containerimg" wx:for="{{item.orderGoodsInfo}}" wx:key="">
              <image src="{{item.goodsImgUrl}}" mode="aspectFill"></image>

              <view class="remainnum">x{{item.numbers}}</view>
            </view>
            <!-- <view class="containerimg">
              <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>

              <view class="remainnum">x1</view>
            </view>
            <view class="containerimg">
              <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>

              <view class="remainnum">x1</view>
            </view> -->
          </view>

          <view class="searchmore">
            <view class="conorderinfoname" wx:if="{{item.statusId==1}}">已提交</view>
            <view class="conorderinfoname" wx:if="{{item.statusId==3}}">已完成</view>
            <view class="searchnoreword">查看更多</view>
            <view class="searchmoreimg">
              <image src="../../img/aicon_13@2x.png" mode="widthFix"></image>
            </view>

          </view>


        </view>


        <view class="orderright">

          <view class="orderinfobottom">
            <view class="ordertotalnum">共计{{item.orderGoodsInfo.length}}件商品</view>
            <view class="ordermiddlelist">
              <view class="ordermiddlelistitem">
                <view class="heji">合计:</view>
                <view class="hejimoney">¥ {{item.moretotalmoney}}</view>
              </view>
              <view class="ordermiddlelistitem">
                <view class="heji">实付:</view>
                <view class="hejimoney">¥{{item.moretotalmoney}}</view>
              </view>

            </view>
            <view class="again"></view>

          </view>
        </view>

      </view>





      <!-- <view class="orderlistitem" bindtap="jingxiaoordertail" data-type="1">

        <view class="orderimage">
          <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>
        </view>

        <view class="orderright">
          <view class="orderfight_top">

            <view class="orderinfo">
              <view class="ordername">
                办公足踏系统
              </view>
              <view class="oredercolor">颜色:深蓝色</view>
            </view>



            <view class="orderinfonum">
              <view class="orderinfoname">已提交</view>
              <view class="orderinfomoney">¥ 3999</view>
              <view class="orderinfocartnum">x1</view>
            </view>


          </view>
          <view class="orderinfobottom">
            <view class="ordertotalnum">共计1件商品</view>
            <view class="ordermiddlelist">
              <view class="ordermiddlelistitem">
                <view class="heji">合计:</view>
                <view class="hejimoney">¥ 3999</view>
              </view>
              <view class="ordermiddlelistitem">
                <view class="heji">实付</view>
                <view class="hejimoney">¥ 3999</view>
              </view>

            </view>

            <view class="again"></view>
          </view>
        </view>

      </view> -->


    </view>
  </block>
  <!-- 订单列表 普通客户 导购-->
  <block wx:else>
    <view class="orderlist" wx:for="{{orderlist}}" wx:key=''>


      <view class="orderlistitem" bindtap="ordertail" wx:if="{{item.orderGoodsInfo.length==1}}" data-type="3" data-kind="1" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}" data-isReplaceOrder="{{item.isReplaceOrder}}">

        <view class="orderimage">
          <image src="{{item.orderGoodsInfo[0].goodsImgUrl}}" mode="aspectFill"></image>
        </view>

        <view class="orderright">
          <view class="orderfight_top">

            <view class="orderinfo">
              <view class="ordername">
                {{item.orderGoodsInfo[0].goodsName}}
              </view>
              <view class="oredercolor">颜色:{{item.orderGoodsInfo[0].goodsColorName}}</view>
            </view>



            <view class="orderinfonum">
              <view class="conorderinfoname" wx:if="{{item.statusId==1}}">未付款</view>
              <view class="conorderinfoname" wx:if="{{item.statusId==2}}">已付款</view>
              <view class="conorderinfoname" wx:if="{{item.statusId==3}}">已完成</view>
              <view class="orderinfomoney">¥ {{item.orderGoodsInfo[0].goodsPrice}}</view>
              <view class="orderinfocartnum">x{{item.orderGoodsInfo[0].numbers}}</view>
            </view>


          </view>
          <view class="orderinfobottom">
            <view class="ordertotalnum">共计1件商品</view>

            <view class="ordermiddlelist">
              <view class="ordermiddlelistitem">
                <view class="heji">合计:</view>
                <view class="hejimoney">¥ {{item.orderGoodsInfo[0].totalGoodsPrice}}</view>
              </view>
              <view class="ordermiddlelistitem">
                <view class="heji">实付:</view>
                <view class="hejimoney">¥ {{item.orderGoodsInfo[0].totalGoodsPrice}}</view>
              </view>
            </view>
            <view class="buybtn" catchtap="paynow" wx:if="{{item.statusId==1}}" data-id="{{item.$id}}" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}">立即支付</view>
            <view class="buybtn" catchtap='sureshouhuo' wx:if="{{item.statusId==2}}" data-orderno="{{item.orderNo}}">确认收货</view>
            <view class="buybtn" catchtap="buyagain" data-id="{{item.$id}}" wx:if="{{item.statusId==3}}">再次购买</view>

          </view>
        </view>
      </view>
      <view class="moreorderlistitem" bindtap="ordertail" data-type="2" data-kind="1" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}" data-isReplaceOrder="{{item.isReplaceOrder}}" wx:else>
        <view class="containertext">
          <view class="imgcontainer">
            <view class="containerimg" wx:for="{{item.orderGoodsInfo}}" wx:key="">
              <image src="{{item.goodsImgUrl}}" mode="aspectFill"></image>

              <view class="remainnum">x{{item.numbers}}</view>
            </view>
            <!-- <view class="containerimg">
            <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>

            <view class="remainnum">x1</view>
          </view>
          <view class="containerimg">
            <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>

            <view class="remainnum">x1</view>
          </view> -->
          </view>

          <view class="searchmore">
            <view class="conorderinfoname" wx:if="{{item.statusId==1}}">未付款</view>
            <view class="conorderinfoname" wx:if="{{item.statusId==2}}">已付款</view>
            <view class="conorderinfoname" wx:if="{{item.statusId==3}}">已完成</view>
            <view class="searchnoreword">查看更多</view>
            <view class="searchmoreimg">
              <image src="../../img/aicon_13@2x.png"></image>
            </view>

          </view>


        </view>


        <view class="orderright">

          <view class="orderinfobottom">
            <view class="ordertotalnum">共计{{item.orderGoodsInfo.length}}件商品</view>
            <view class="ordermiddlelist">
              <view class="ordermiddlelistitem">
                <view class="heji">合计:</view>
                <view class="hejimoney">¥ {{item.moretotalmoney}}</view>
              </view>
              <view class="ordermiddlelistitem">
                <view class="heji">实付:</view>
                <view class="hejimoney">¥ {{item.moretotalmoney}}</view>
              </view>

            </view>
            <view class="buybtn" catchtap="paynow" data-isReplaceOrder="{{item.isReplaceOrder}}" wx:if="{{item.statusId==1}}" data-id="{{item.$id}}" data-orderno="{{item.orderNo}}" data-statusid="{{item.statusId}}">立即支付</view>
            <view class="buybtn" catchtap='sureshouhuo' data-orderno="{{item.orderNo}}" wx:if="{{item.statusId==2}}" data-statusid="{{item.statusId}}">确认收货</view>
            <view class="buybtn" catchtap="buyagain" data-id="{{item.$id}}" wx:if="{{item.statusId==3}}">再次购买</view>

          </view>
        </view>

      </view>

      <!-- 
    <view class="orderlistitem" bindtap="ordertail" data-type="1" data-kind="1">

      <view class="orderimage">
        <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>
      </view>

      <view class="orderright">
        <view class="orderfight_top">

          <view class="orderinfo">
            <view class="ordername">
              办公足踏系统
            </view>
            <view class="oredercolor">颜色:深蓝色</view>
          </view>



          <view class="orderinfonum">
            <view class="orderinfoname">未付款</view>
            <view class="orderinfomoney">¥ 3999</view>
            <view class="orderinfocartnum">x1</view>
          </view>


        </view>
        <view class="orderinfobottom">
          <view class="ordertotalnum">共计1件商品</view>
          <view class="ordermiddlelist">
            <view class="ordermiddlelistitem">
              <view class="heji">合计:</view>
              <view class="hejimoney">¥ 3999</view>
            </view>
            <view class="ordermiddlelistitem">
              <view class="heji">实付</view>
              <view class="hejimoney">¥ 3999</view>
            </view>

          </view>
          <view class="buybtn" catchtap="paynow">立即支付</view>

        </view>
      </view>

    </view>


    <view class="orderlistitem" bindtap="ordertail" data-type="1" data-kind="2">

      <view class="orderimage">
        <image src="../../img/aicon_14@2x.png" mode="widthFix"></image>
      </view>

      <view class="orderright">
        <view class="orderfight_top">

          <view class="orderinfo">
            <view class="ordername">
              办公足踏系统
            </view>
            <view class="oredercolor">颜色:深蓝色</view>
          </view>



          <view class="orderinfonum">
            <view class="orderinfoname">未付款</view>
            <view class="orderinfomoney">¥ 3999</view>
            <view class="orderinfocartnum">x1</view>
          </view>


        </view>
        <view class="orderinfobottom">
          <view class="ordertotalnum">共计1件商品</view>
          <view class="ordermiddlelist">
            <view class="ordermiddlelistitem">
              <view class="heji">合计:</view>
              <view class="hejimoney">¥ 3999</view>
            </view>
            <view class="ordermiddlelistitem">
              <view class="heji">实付</view>
              <view class="hejimoney">¥ 3999</view>
            </view>

          </view>
          <view class="buybtn" catchtap="paynow">立即支付</view>

        </view>
      </view>

    </view> -->


    </view>
  </block>


</view>