order.wxml 6.6 KB
<!--pages/order/order.wxml-->
<view class='tab_box'>
    <!--(0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除-->
    <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 class="message" wx:if="{{message_num>0}}">{{message_num}}</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">
            <!--(0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消(未拼成取消),6已完成,7已评价,8已拼成(活动未结束),9删除,10已取消(发起人已拼成后取消),11已过期-->
            <view class="title-box">
                <view class="title">{{item.title}}</view>
                <text wx:if="{{item.status === 2}}" class="state">待拼成</text>
                <text wx:if="{{item.status === 3}}" class="state">未拼成</text>
                <text wx:if="{{item.status === 4 || item.status === 8}}" class="state">已拼成</text>
                <text wx:if="{{item.status === 5 || item.status === 10}}" class="state">已取消</text>
                <text wx:if="{{item.status === 6}}" class="state">已完成</text>
                <text wx:if="{{item.status === 7}}" class="state">已评价</text>
                <text wx:if="{{item.status === 11}}" 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>
                    <image src="{{item.userSex === 1?'../../images/man.png':'../../images/women.png'}}"
                           class="sex-icon"></image>
                    <text>{{item.userName}}</text>
                </view>
                <view class="btn">
                    <!--2参与人-->
                    <!--<block wx:if="{{item.type === 2}}">-->
                        <!--<text wx:if="{{item.status === 5 || item.status === 6 || item.status === 3 || item.status === 7}}"-->
                              <!--catchtap="cancel" data-id="{{item.id}}">删除</text>-->
                    <!--</block>-->
                    <!--1发起人-->
                    <block wx:if="{{item.type === 1}}">
                        <text wx:if="{{item.status === 11 || item.status === 5 || item.status === 10 || item.status === 6 || item.status === 3 || item.status === 7}}"
                              catchtap="del" data-id="{{item.id}}">删除</text>
                        <text wx:if="{{item.status === 4}}" catchtap="complete" data-id="{{item.id}}">完成</text>
                    </block>
                </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>
<!--分数>=80弹框-->
<view class="input-box score-box" wx:if="{{show_gold_modal}}" catchtouchmove="disableScroll">
    <image class="sorry-img gold-img" src="../../images/gold@2x.png"></image>
    <view class="title text">恭喜您</view>
    <view class="title text">获得首批入场卷</view>
    <view class="tips text">并得到一枚金火柴等级勋章</view>
    <view class="tips share-text">将喜悦分享给好友</view>
    <view class="share-box">
        <view class="answer-btn close" catchtap="close">完成</view>
        <button class="answer-btn share" open-type="share">去分享</button>
    </view>
</view>
<view class="modal_box" wx:if="{{show_gold_modal}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>

<!--分数<80弹框-->
<view class="input-box score-box normal-box" wx:if="{{show_normal_modal}}" catchtouchmove="disableScroll">
    <image class="sorry-img img" src="../../images/achieve-answer-img@2x.png"></image>
    <view class="title text margin">恭喜您获得入场卷</view>
    <view class="title text margin">等待开放权限</view>
    <view class="answer-btn close close-btn" catchtap="close">随便看看</view>
</view>
<view class="modal_box" wx:if="{{show_normal_modal}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>