order.wxml
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!--pages/order/order.wxml-->
<view class='tab_box'>
<view class="tab_item {{current==0?'active':''}}" data-current='0' bindtap='chargeTab'>全部</view>
<view class="tab_item {{current==1?'active':''}}" data-current='1' bindtap='chargeTab'>待处理</view>
<view class="tab_item {{current==2?'active':''}}" data-current='2' bindtap='chargeTab'>已拼成</view>
<view class="tab_item {{current==3?'active':''}}" data-current='3' bindtap='chargeTab'>已完成</view>
<view class="tab_item {{current==4?'active':''}}" data-current='4' bindtap='chargeTab'>已取消</view>
</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}}">
<image src="../../images/lishi@2x.png" class="thumb"></image>
<view class="lish-right">
<view class="title-box">
<view class="title">{{item.title}}</view>
<text wx:if="{{item.state === 1}}" class="state">待拼成</text>
<text wx:if="{{item.state === 2}}" class="state">已拼成</text>
<text wx:if="{{item.state === 3}}" class="state">已取消</text>
<text wx:if="{{item.state === 4}}" 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>
<text>{{item.name}}</text>
</view>
<view class="btn">
<text wx:if="{{item.state === 4 || item.state === 3}}">删除</text>
<text wx:if="{{item.state === 2}}">完成</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">答题</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">完成</view>
</view>
<view class="release-btn-box" wx:if="{{is_showUserInfo}}">
<view class="left-btn">
<image src="../../images/pincan@2x.png"></image>
<view class="text">发布拼餐</view>
</view>
<view class="right-btn">
<image src="../../images/pinhuodong@2x.png"></image>
<view class="text">发布拼活动</view>
</view>
</view>
<view class="modal_box" wx:if="{{is_showUserInfo}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>