myOrder.wxml 12.6 KB
<view class="cancelregister" wx:if="{{cancelorder}}">
    <view class="cancelregisterwrap">
      <view class="cancelordernot">是否删除该订单</view>
    <view class="cancelbtn">
     <view class="ordercancel" bindtap="canceltbtn">取消</view>
        <view class="ordersure" bindtap="surebtn">确定</view>
    </view>
       
    </view>
</view>


<!-- 商户电话 -->
<view class='clerk_fn' wx:if="{{reveal}}" bindtap='tapHide'>
  <view class='clerk_box'>
    <view class='shopphone'>商家电话</view>
    <view class='clerk_con'>{{telshop}}</view>
    <view class="clerk_fn_foot">
      <view class='close' catchtap='close'>关闭</view>
      <view class='close' catchtap='boda'>拨打</view>
    </view>

  </view>
</view>

<!-- 我的订单页面 -->
<!-- begin:切换头部 -->
<view class='warp_head'>
  <view class="warp_name {{orderTab==0?'orderActive':''}}" data-current="0" bindtap='orderClick'>全部</view>
  <view class="warp_name {{orderTab==1?'orderActive':''}}" data-current="1" bindtap='orderClick'>待付款</view>
  <view class="warp_name {{orderTab==2?'orderActive':''}}" data-current="2" bindtap='orderClick'>待完成</view>
  <!-- <view class="warp_name {{orderTab==3?'orderActive':''}}" data-current="3" bindtap='orderClick'>已取消</view> -->

  <view class="warp_name {{orderTab==5?'orderActive':''}}" data-current="5" bindtap='orderClick'>待评价</view>
  <view class="warp_name {{orderTab==6?'orderActive':''}}" data-current="6" bindtap='orderClick'>已完成</view>

</view>
<!-- begin:切换内容 -->
<view wx:if="{{orderTab==0}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">目前还没有购买过服务,去看看你需要的服务吧</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>

        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class="paylist">
            <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
            <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
            <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

            <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
            <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
            <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
            <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>

            <view class="waitlist" wx:if="{{item.status==1}}">
              <view class="waitpay" catchtap='pay' data-id="{{item.id}}">付款</view>
              <view class="waitcancel" catchtap='cancelpay' data-id="{{item.id}}">取消</view>

            </view>
          </view>
        </view>
      </view>


    </block>
  </view>


</view>
<view wx:if="{{orderTab==1}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>


          <view class='order_price'>¥{{item.now_money}}</view>
          <view class="paylist">
            <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
            <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
            <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

            <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
            <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
            <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
            <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>

            <view class="waitlist">
              <view class="waitpay" catchtap='pay' data-id="{{item.id}}">付款</view>
              <view class="waitcancel" catchtap='cancelpay' data-id="{{item.id}}">取消</view>

            </view>
          </view>

        </view>
      </view>
    </block>
  </view>

</view>
<view wx:if="{{orderTab==2}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
          <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

          <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
          <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
          <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
        </view>
      </view>



    </block>
  </view>
</view>
<view wx:if="{{orderTab==3}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
          <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

          <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
          <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
          <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
        </view>
      </view>



    </block>
  </view>

</view>
<view wx:if="{{orderTab==4}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
          <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

          <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
          <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
          <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
        </view>
      </view>



    </block>
  </view>

</view>
<view wx:if="{{orderTab==5}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
          <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>

          <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
          <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
          <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
        </view>
      </view>



    </block>
  </view>

</view>
<view wx:if="{{orderTab==6}}">
  <view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
  <view wx:else>
    <block wx:for="{{orderlist}}" wx:key="">
      <view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
        <view wx:if="{{item.status==2}}" class="pre">
          <view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
          <view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
        </view>
        <view wx:if="{{item.status==5}}" class="pre">
          <view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
        </view>
        <image class='course_img' src='{{item.list_pic}}'></image>
        <view class='course_menu'>
          <view class='order_name'>{{item.title}}</view>
          <view class='order_price'>¥{{item.now_money}}</view>
          <view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
          <view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==8}}">待完成</view>


          <view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
          <view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
          <view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
          <view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
        </view>
      </view>



    </block>
  </view>

</view>


<view class="searchfuwu" wx:if="{{orderlist.length==0}}" bindtap="searchfu">寻找服务</view>