作者 wumengyu

优化发起人订单删除状态

... ... @@ -17,7 +17,7 @@
<!--<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删除-->
<!--(0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除,10已取消(发起人已拼成后取消)-->
<view class="title-box">
<view class="title">{{item.title}}</view>
<text wx:if="{{item.status === 2}}" class="state">待拼成</text>
... ... @@ -32,11 +32,21 @@
<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>
<image src="{{item.userSex === 1?'../../images/man.png':'../../images/women.png'}}"
class="sex-icon"></image>
<text>{{item.userName}}</text>
</view>
<view class="btn">
<text wx:if="{{item.status === 5 || item.status === 6 || item.status === 3 || item.status === 7}}" catchtap="cancel" data-id="{{item.id}}">删除</text>
<!--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 === 10 || item.status === 6 || item.status === 3 || item.status === 7}}"
catchtap="cancel" data-id="{{item.id}}">删除</text>
</block>
<text wx:if="{{item.status === 4}}" catchtap="complete" data-id="{{item.id}}">完成</text>
</view>
</view>
... ... @@ -44,8 +54,8 @@
</view>
</view>
<!--底部tab-->
<import src="/templates/templates.wxml" />
<template is="tabBar" data='{{...tabcurrent}}' />
<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>
... ...