<ion-view view-title="写日报" hide-back-button="true">
    <ion-nav-buttons side="left">
        <button class="button button-clear" ng-click="goBack()">取消</button>
    </ion-nav-buttons>
    <ion-nav-buttons side="right">
        <button class="button button-clear" ng-if="flag >= 0" ng-click="addDaily()">完成</button>
    </ion-nav-buttons>
    <ion-content>
        <div class="item item-divider"></div>
        <a class="item item-icon-right" ng-click="flag <= 0 ? showModal() : null">日期
            <span class="item-note" ng-if="flag <= 0">{{newDate[change].day | date:'yyyy年M月d日'}}</span>
            <span class="item-note" ng-if="flag > 0">{{item.daily_dd | date:'yyyy年M月d日'}}</span>
            <i class="icon ion-chevron-right icon-accessory" ng-if="flag <= 0"></i>
        </a>
        <div class="list">
            <div ng-repeat="data in item.daily_tfs">
                <item-write item-data="data"></item-write>
            </div>
            <!--照片-->
            <div>
                <div class="item item-divider"></div>
                <div class="item camera-item">
                    <div ng-repeat="image in item.files" ng-click="shouBigImage(image.file_full_path)">
                        <img ng-src="{{image.file_thumbnail_path}}"/>
                    </div>
                    <div class="center" ng-click="addphoto()">
                        <i class="icon ion-camera"></i>
                    </div>
                </div>
            </div>
        </div>
        <div id="rightDisplay" ng-show="commons.bigImage" class="popover-backdrop1">
            <img class="fullscreen-image" ng-click="hideBigImage()" ng-src="{{Url}}" ng-pinch-zoom/>
            <i class="ion-ios-trash-outline" ng-click="deleteimage();"></i>
        </div>
    </ion-content>
</ion-view>