<view class="content">
<block  wx:for="{{list}}" style="position:relative;">
    <navigator class="list" wx:key='*this' open-type="navigateTo" wx:if='{{item.order_status<2}}'
     url="../post/post?type=2&&id={{item.id}}&s_name={{item.subject_item}}">
        <view class="status">
        <text wx:if="{{item.order_status == -1}}">待提交资料</text> 
        <text wx:if="{{item.order_status == 0}}">审核中</text> 
        <text wx:if="{{item.order_status == -2}}">审核未通过</text> 
        <text wx:if="{{item.order_status == 1}}">已审核，待付款</text> 
        <text wx:if="{{item.order_status == 2}}">已付款,待培训</text> 
        <text wx:if="{{item.order_status == 7}}">考试完成</text> 
        <text wx:if="{{item.order_status == 3}}">已培训，待考试</text> 
        <text style="color:green;">{{item.train_type}}</text></view>
        <view class="title">{{item.name}}   {{item.phone}}  
          <text wx:if="{{item.class_name}}">{{item.class_name}}</text>
          <text class="signup_count" wx:if="{{item.class_name}}">计划{{item.signup_limit}}人/已报名{{item.signup_count}}人</text>
        </view>
        <view class="info">
            <text>{{item.subject_item_1[0]}}</text>
            <text decode="{{true}}">作业类别  &nbsp;&nbsp; {{item.subject_item_1[1]}}</text>
            <text wx:if='{{item.subject_item_1[0]=="特种作业人员"}}' decode="{{true}}">准操项目  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <text wx:if='{{item.subject_item_1[0]=="特种设备培训"}}' decode="{{true}}">项目代码  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <text wx:if='{{item.subject_item_1[0]!="特种作业人员" && item.subject_item_1[0]!="特种设备培训"}}' decode="{{true}}">资格类型  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <!-- <text wx:if="{{item.order_status == 2||item.order_status == 3}}" style="color:#358BFF;" decode="{{true}}">学时情况  &nbsp;&nbsp;已学习{{item.class_hour_finished}}/{{item.class_hour}}学时</text> -->
            <text style="color:#999;margin-top:12px;">{{item.ctime}}</text>
        </view>
        <view  data-id='{{item.id}}' catchtap="pay" wx:if="{{item.order_status == 1}}" class="study">立即支付</view>
        <navigator url="../online/online" wx:if="{{item.order_status == 2}}" class="study">立即学习</navigator>
    </navigator>
    <navigator class="list" wx:key='*this' open-type="navigateTo" wx:else>
        <view class="status">
         <text wx:if="{{item.order_status == -1}}">待提交资料</text> 
        <text wx:if="{{item.order_status == 0}}">审核中</text> 
        <text wx:if="{{item.order_status == -2}}">审核未通过</text> 
        <text wx:if="{{item.order_status == 1}}">已审核，待付款</text> 
        <text wx:if="{{item.order_status == 2}}">已付款,待培训</text> 
        <text wx:if="{{item.order_status == 7}}">考试完成</text> 
        <text wx:if="{{item.order_status == 3}}">已培训，待考试</text> 
        <text style="color:green;">{{item.train_type}}</text></view>
        <view class="title">{{item.name}}   {{item.phone}}  
          <text>{{item.class_name}}</text>
          <text class="signup_count" wx:if="{{item.class_name}}">计划{{item.signup_limit}}人/已报名{{item.signup_count}}人</text>
        </view>
        <view class="info">
            <text>{{item.subject_item_1[0]}}</text>
            <text decode="{{true}}">作业类别  &nbsp;&nbsp; {{item.subject_item_1[1]}}</text>
            <!-- <text decode="{{true}}">准操项目  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text> -->
             <text wx:if='{{item.subject_item_1[0]=="特种作业人员"}}' decode="{{true}}">准操项目  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <text wx:if='{{item.subject_item_1[0]=="特种设备培训"}}' decode="{{true}}">项目代码  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <text wx:if='{{item.subject_item_1[0]!="特种作业人员" && item.subject_item_1[0]!="特种设备培训"}}' decode="{{true}}">资格类型  &nbsp;&nbsp;{{item.subject_item_1[2]}}</text>
            <!-- <text wx:if="{{item.order_status == 2||item.order_status == 3}}" style="color:#358BFF;" decode="{{true}}">学时情况  &nbsp;&nbsp;已学习{{item.class_hour_finished}}/{{item.class_hour}}学时</text> -->
            <text style="color:#999;margin-top:12px;">{{item.ctime}}</text>
        </view>
        <view  data-id='{{item.id}}' catchtap="pay" wx:if="{{item.order_status == 1}}" class="study">立即支付</view>
        <navigator url="../online/online?id={{item.id}}&class_id={{item.class_id}}" wx:if="{{item.order_status == 2}}" class="study">立即学习</navigator>
    </navigator>
    <!-- <view bindtap="downloadInvoice" class="downloadInvoice">点击下载电子发票</view> -->
</block>
<view class="nope" wx:if="{{list.length==0}}">暂无报名信息...</view>
    <navigator url="../onlinePost/onlinePost" class="post">立即报名</navigator>
</view>

<view class="login" wx:if='{{show}}'>
    <view>
        <view>
          <image src="../../images/logo.png" mode="widthFix"></image>
          <text class="slogen">巴中逸沣安全培训</text>
        </view>
        <text class="xx">申请获取您的用户信息（头像、昵称等）</text>
        <button bindgetuserinfo="onGotUserInfo" open-type="getUserInfo">确定</button>
    </view>
</view>

