order.wxml 4.0 KB
<!--pages/order/order.wxml-->
<view class='tab_box'>
    <!--(0全部,2待处理,4已拼成,5已取消,6已完成)-->
    <view class="tab_item {{current==0?'active':''}}" data-current='0' bindtap='chargeTab'>全部</view>
    <view class="tab_item {{current==2?'active':''}}" data-current='2' bindtap='chargeTab'>待处理</view>
    <view class="tab_item {{current==4?'active':''}}" data-current='4' bindtap='chargeTab'>已拼成</view>
    <view class="tab_item {{current==6?'active':''}}" data-current='6' bindtap='chargeTab'>已完成</view>
    <view class="tab_item {{current==5?'active':''}}" data-current='5' bindtap='chargeTab'>已取消</view>
</view>

<!--订单列表-->
<view class="no-data" wx:if="{{orderList.length === 0}}">暂无订单</view>
<view class='content_box post_box' wx:if="{{orderList.length > 0}}">
    <view class='content_item' wx:for="{{orderList}}" wx:key="index"
          bindtap='goPostDetail' data-index="{{index}}" data-id="{{item.id}}">
        <!--<image src="../../images/lishi@2x.png" class="thumb"></image>-->
        <image src="{{item.pic}}" class="thumb" mode="aspectFill"></image>
        <view class="lish-right">
            <view class="title-box">
                <view class="title">{{item.title}}</view>
                <text wx:if="{{item.status === 2}}" class="state">待拼成</text>
                <text wx:if="{{item.status === 4}}" class="state">已拼成</text>
                <text wx:if="{{item.status === 5}}" class="state">已取消</text>
                <text wx:if="{{item.status === 6}}" class="state">已完成</text>
            </view>
            <view class="time">{{item.time}}</view>
            <view class="name-box">
                <view class="name-left">
                    <!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
                    <image src="{{item.userPic}}" class="avatar"></image>
                    <text>{{item.userName}}   在{{item.name}}</text>
                </view>
                <view class="btn">
                    <text wx:if="{{item.status === 5 || item.status === 6}}" catchtap="cancel" data-id="{{item.id}}">删除</text>
                    <text wx:if="{{item.status === 4}}"  catchtap="complete" data-id="{{item.id}}">完成</text>
                </view>
            </view>
        </view>
    </view>
</view>














<!--底部tab-->
<import src="/templates/templates.wxml" />
<template is="tabBar" data='{{...tabcurrent}}' />
<!--去答题弹框-->
<view class="input-box"  wx:if="{{is_showAnswer}}" catchtouchmove="disableScroll">
    <image class="sorry-img" src="../../images/sorry@2x.png"></image>
    <view class="title">目前只对</view>
    <view class="title">首批会员开放发布功能</view>
    <view class="tips">答题后可能获得第一批次入场卷</view>
    <view class="answer-btn" catchtap="goAnswer">答题</view>
</view>
<view class="modal_box" wx:if="{{is_showAnswer}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--去完善个人信息弹框-->
<view class="input-box"  wx:if="{{is_showUserInfo}}" catchtouchmove="disableScroll">
    <image class="sorry-img" src="../../images/user_info@2x.png"></image>
    <view class="title">为了更好的体验</view>
    <view class="title">请先完善个人信息</view>
    <view class="answer-btn" bindtap="goUserInfo">完成</view>
</view>
<view class="modal_box" wx:if="{{is_showUserInfo}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--发布-->
<view class="release-btn-box" wx:if="{{is_showRelease}}">
    <view class="left-btn"  bindtap="releaseMeal">
        <image src="../../images/pincan@2x.png"></image>
        <view class="text">发布拼餐</view>
    </view>
    <view class="right-btn" bindtap="releaseActivity">
        <image src="../../images/pinhuodong@2x.png"></image>
        <view class="text">发布拼活动</view>
    </view>
</view>
<view class="modal_box" wx:if="{{is_showRelease}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>