<ion-view view-title="发布的任务">
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-click="toadd()">
            <i class="icon ion-android-add"></i>
        </button>
    </ion-nav-buttons>
    <ion-content>
        <div class="row item item-row" ng-if="!loading" style="position: fixed;z-index: 9999">
            <div class="col col-50" ng-click="leftdisplay();">
                {{title[0].name}}&nbsp;&nbsp;<i ng-class="{true:'ion-android-arrow-dropdown',false:'ion-android-arrow-dropup updown-color'}[headerion.leftion]"></i>
            </div>
            <label class="v-line">|</label>
            <div class="col col-50" ng-click="rightdisplay();">
                {{title[1].name}}&nbsp;&nbsp;<i ng-class="{true:'ion-android-arrow-dropdown',false:'ion-android-arrow-dropup updown-color'}[headerion.rightion]"></i>
            </div>
        </div>
        <div ng-if="loading" class="center init-load action-sheet-backdrop">
            <ion-spinner icon="android"></ion-spinner>
        </div>
        <ion-item style="height: 53px;"></ion-item>
        <div class="task-data" ng-if="!loading">
            <task source="data" ng-repeat="data in Task" ng-click="todetails(data)"></task>
            <div class="none-content center" ng-if="Task.length==0">没有内容</div>
            <h4 class="stable center" ng-show="Task.length>=10&&totalcount==Task.length">没有更多了</h4>
        </div>
        <div ng-if="!loading" class="select-div" ng-class="{true:'hidden-item',false:''}[Ishidded]">
            <ul class="list" ng-class="{true:'hidden-item',false:''}[headerion.leftion]">
                <li class="item-sort">
                    <ion-radio name='left' ng-model="item.check" ng-value="true" ng-repeat="item in leftdata" ng-click="change('f',item);">
                        {{item.name}}
                    </ion-radio>
                </li>
            </ul>
            <ul class="list" ng-class="{true:'hidden-item',false:''}[headerion.rightion]">
                <li class="item-sort">
                    <ion-radio name='right' ng-model="rightdata[0].check" ng-value="true" ng-click="change('r',rightdata[0]);">
                        {{rightdata[0].name}}
                    </ion-radio>
                </li>
                <li class="item-sort">
                    <ion-item class="item item-icon-right" ng-class="{true:'updown-color',false:''}[rightdata[1].check]" type="item-text-wrap" ng-click="change('r',rightdata[1]);">
                        {{rightdata[1].name}}
                        <i ng-class="{true:'radio-icon icon ion-checkmark right-ion',false:'icon ion-chevron-right icon-accessory'}[rightdata[1].check]"></i>
                    </ion-item>
                </li>
            </ul>
        </div>
        <div class="select-back" ng-class="{true:'hidden-item',false:''}[Ishidded]" ng-click="backhide();"></div>
        <ion-infinite-scroll spinner="android" ng-if="totalcount!=Task.length" on-infinite="loadMore()" distance="1%" immediate-check="false">
        </ion-infinite-scroll>
    </ion-content>
</ion-view>