123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <ion-view view-title="公告详情" hide-back-button="true">
- <ion-nav-buttons side="left">
- <button class="button ion-chevron-left button-clear button-dark" ng-click="goBack()"> 返回</button>
- </ion-nav-buttons>
- <ion-nav-buttons side="right">
- <button ng-if="isAdmin" class="button button-icon ion-ios-more" ng-click="popover.show($event)"></button>
- </ion-nav-buttons>
- <ion-content>
- <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
- <div ng-if="loading" class="center init-load action-sheet-backdrop">
- <ion-spinner icon="android"></ion-spinner>
- </div>
- <div class="item border-style item-text-wrap" ng-if="!loading" style="margin:-1px 0;">
- <h1>{{details.title}}</h1>
- <p>{{details.user__username}}
- <span ng-if="details.update_dd != details.create_dd"> 修改于</span> {{details.update_dd == null ? details.create_dd : details.update_dd | date:'MM月dd日 HH:mm'}}
- <a class="float-right" ng-click="isScopeShow = !isScopeShow">{{isScopeShow ? '隐藏详情' : '显示详情'}}</a>
- </p>
- <p ng-show="isScopeShow">范围:
- <span ng-if="details.allid == 1">全体成员</span>
- <span ng-if="details.groupid != null"></span>
- <span ng-if="details.readusrs.length != 0">
- <span ng-repeat="item in details.readusrs">{{item.user__username}}{{$last ? '' : '、'}}</span>
- </span>
- </p>
- <br/>
- <span ng-bind-html="details.content | SwitchHtmlContent"></span>
- <br/>
- <image-popover all-images="details.noticefiles"></image-popover>
- <br/>
- <!--投票-->
- <div ng-if="details.vote_title != null">
- <p>需要投票来完成</p>
- <div class="item item-body">
- <span>{{details.vote_title}}{{details.vote_selecttype == 1 ? '(单选)' : '(多选)'}}</span>
- <!--未过期单选-->
- <ion-list ng-if="details.vote_selecttype == 0 && details.vote_enddd >= datetime">
- <br/>
- <!--未选-->
- <ion-checkbox ng-if="record.vote_selectindex == null && record.vote_giveup == null" ng-repeat="selectitem in selectData track by $index" class="notice-details-voteitem" ng-click="changeIndex($index)" ng-model="selectIndexArr" ng-value="selectitem">
- {{selectitem}}
- </ion-checkbox>
- <!--已选-->
- <div ng-if="record.vote_selectindex != null || record.vote_giveup != null" ng-click="result()" class="item item-icon-left item-icon-right notice-details-voteitem">
- <i ng-if="record.vote_selectindex != null || record.vote_giveup == 1" class="icon ion-checkmark-circled energized"></i>
- <span ng-if="record.vote_selectindex != null">投票成功</span>
- <span ng-if="record.vote_giveup == 1">放弃投票</span>
- <div ng-repeat="item in usr_select_index">
- <p>{{selectData[item]}}</p>
- </div>
- <i class="icon ion-chevron-right icon-accessory"></i>
- </div>
- <br/>
- </ion-list>
- <!--未过期多选-->
- <ion-list ng-if="details.vote_selecttype == 1 && details.vote_enddd >= datetime">
- <br/>
- <!--未选-->
- <ion-radio ng-if="record.vote_selectindex == null && record.vote_giveup == null" ng-repeat="selectitem in selectData track by $index" class="notice-details-voteitem" ng-click="changeIndex($index)" ng-model="selectIndex" ng-value="selectitem">
- {{selectitem}}
- </ion-radio>
- <!--已选-->
- <div ng-if="record.vote_selectindex != null || record.vote_giveup != null" ng-click="result()" class="item item-icon-left item-icon-right notice-details-voteitem">
- <i ng-if="record.vote_selectindex != null || record.vote_giveup == 1" class="icon ion-checkmark-circled energized"></i>
- <span ng-if="record.vote_selectindex != null">投票成功</span>
- <span ng-if="record.vote_giveup == 1">放弃投票</span>
- <div ng-repeat="item in usr_select_index">
- <p>{{selectData[item]}}</p>
- </div>
- <i class="icon ion-chevron-right icon-accessory"></i>
- </div>
- <br/>
- </ion-list>
- <!--已过期-->
- <ion-list ng-if="details.vote_enddd < datetime">
- <br/>
- <div class="item item-icon-left item-icon-right notice-details-voteitem" ng-click="result()">
- <!--未选-->
- <i ng-if="record.vote_selectindex == null && record.vote_giveup == null" class="icon ion-close-circled assertive"></i>
- <span ng-if="record.vote_selectindex == null && record.vote_giveup == null">已过期</span>
- <!--已选-->
- <i ng-if="record.vote_selectindex != null || record.vote_giveup == 1" class="icon ion-checkmark-circled energized"></i>
- <span ng-if="record.vote_selectindex != null">投票成功</span>
- <span ng-if="record.vote_giveup == 1">放弃投票</span>
- <div ng-repeat="item in usr_select_index">
- <p>{{selectData[item]}}</p>
- </div>
- <i class="icon ion-chevron-right icon-accessory"></i>
- </div>
- <br/>
- </ion-list>
- <button ng-show="record.vote_selectindex == null && record.vote_giveup == null && details.vote_enddd >= datetime" class="button button-outline button-energized notice-details-button" ng-click="postVote()">确定投票</button>
- <button ng-show="record.vote_selectindex == null && record.vote_giveup == null && details.vote_enddd >= datetime" class="button button-clear button-light float-right notice-details-giveupbutton" ng-click="giveUp(0)">放弃投票?</button>
- </div>
- </div>
- <br/>
- <!--反馈-->
- <div ng-if="details.back_title != null">
- <p>需要反馈来完成</p>
- <div class="item item-body">
- <span>{{details.back_title}}</span>
- <ion-list>
- <!--未过期未填-->
- <hr ng-if="details.back_enddd >= datetime && record.back_content == null && record.back_giveup == null" class="notice-details-hr"/>
- <!--未过期已填-->
- <br ng-if="details.back_enddd >= datetime && (record.back_content != null || record.back_giveup == 1)"/>
- <div ng-if="details.back_enddd >= datetime && (record.back_content != null || record.back_giveup == 1)" class="item item-icon-left notice-details-voteitem">
- <i ng-if="record.back_content != null || record.back_giveup == 1" class="icon ion-checkmark-circled energized"></i>
- <span ng-if="record.back_content != null">反馈成功</span>
- <span ng-if="record.back_giveup == 1">放弃反馈</span>
- <p ng-if="record.back_content != null">反馈内容: {{record.back_content}}</p>
- </div>
- <br ng-if="details.back_enddd >= datetime && (record.back_content != null || record.back_giveup == 1)"/>
- <!--已过期-->
- <br ng-if="details.back_enddd < datetime"/>
- <div ng-if="details.back_enddd < datetime" class="item item-icon-left notice-details-voteitem">
- <!--未填-->
- <i ng-if="record.back_content == null && record.back_giveup == null" class="icon ion-close-circled assertive"></i>
- <span ng-if="record.back_content == null && record.back_giveup == null">已过期</span>
- <!--已填-->
- <i ng-if="record.back_content != null || record.back_giveup == 1" class="icon ion-checkmark-circled energized"></i>
- <span ng-if="record.back_content != null">反馈成功</span>
- <span ng-if="record.back_giveup == 1">放弃反馈</span>
- <p ng-if="record.back_content != null">反馈内容: {{record.back_content}}</p>
- </div>
- <br ng-if="details.back_enddd < datetime"/>
- <!--未过期未填-->
- <button ng-show="record.back_content == null && record.back_giveup == null && details.back_enddd >= datetime" class="button button-outline button-energized notice-details-button" ng-click="showbackpopup()">反馈</button>
- <button ng-show="record.back_content == null && record.back_giveup == null && details.back_enddd >= datetime" class="button button-clear button-light float-right notice-details-giveupbutton" ng-click="giveUp(1)">放弃反馈?</button>
- </ion-list>
- </div>
- </div>
- </div>
- <div class="task-button-div" id="nav-comment" ng-if="!loading">
- <div class="comment-div" ng-click="change(0)" ng-class="{'colorgray':!(activeIndex == 0)}">评论 {{commentData.length == 0 ? '0' : commentData.length}}
- <label>|</label>
- <hr ng-show="activeIndex==0">
- </div>
- <div class="comment-div" ng-click="change(1)" ng-class="{'colorgray':!(activeIndex == 1)}">看过 {{readData.length == 0 ? '0' : readData.length}}
- <label>|</label>
- <hr ng-show="activeIndex==1">
- </div>
- <div ng-click="change(2)" ng-class="{'colorgray':!(activeIndex == 2)}">未看 {{unreadData.length == 0 ? '0' : unreadData.length}}
- <hr ng-show="activeIndex==2">
- </div>
- </div>
- <ion-slide-box class="slide-task" show-pager="false" ng-init="lockSlide()" active-slide="activeIndex" ng-if="!loading">
- <ion-slide>
- <ion-list class="daily">
- <div class="item center notice-details-voteitem" ng-if="commentData.length == 0">还没有人进行评论哦</div>
- <a class="item item-avatar item-text-wrap" ng-repeat="comment in commentData" ng-click="popupMessageOpthins(comment.id,comment.user_id)">
- <img ng-src="../../../img/panda.png" ng-click="showcardinfo(comment.user_id)">
- <div>
- <span>{{comment.user__username}}</span>
- <p>{{comment.content}}</p>
- <p class="time">{{comment.create_dd | getDateDiff}}</p>
- </div>
- </a>
- </ion-list>
- <div class='obligate-item' ng-if="!loading"></div>
- </ion-slide>
- <ion-slide>
- <ion-list>
- <div class="item item-avatar" ng-repeat="read in readData">
- <img ng-src="../../../img/panda.png" ng-click="showcardinfo({{read.user_id}})">
- <div>
- <span>{{read.user__username}}</span>
- <p>{{read.user__usr__degree}}</p>
- </div>
- </div>
- </ion-list>
- <div class='obligate-item' ng-if="!loading"></div>
- </ion-slide>
- <ion-slide>
- <!--<button ng-if="unreadData.lenght != 0" class="button button-outline button-energized notice-details-warn">提醒未看成员</button>-->
- <ion-list>
- <div class="item item-avatar" ng-repeat="unread in unreadData">
- <img ng-src="../../../img/panda.png" ng-click="showcardinfo({{unread.user_id}})">
- <div>
- <span>{{unread.user__username}}</span>
- <p>{{unread.user__usr__degree}}</p>
- </div>
- </div>
- </ion-list>
- <div class='obligate-item' ng-if="!loading"></div>
- </ion-slide>
- </ion-slide-box>
- </ion-content>
- <ion-footer-bar keyboard-attach class="bar-stable" ng-if="!loading">
- <div class="bar bar-footer item-input-inset">
- <!--<button ng-click="addhappy()" class="button button-clear">
- <i class="icon ion-android-happy clear"></i>
- </button>-->
- <label class="item-input-wrapper radius-30">
- <input type="text" ng-model="data.content" placeholder="添加评论">
- </label>
- <button class="button button-positive" ng-disabled="data.content == '' || data.content == null" ng-click="sendComment()">发送</button>
- </div>
- </ion-footer-bar>
- <script id="templates/detiilsmenu.html" type="text/ng-template">
- <ion-popover-view class="details-popup">
- <ion-content>
- <ion-list>
- <ion-item class="item item-button" type="item-text-wrap" ng-click="result()">统计结果</ion-item>
- <ion-item class="item item-button" type="item-text-wrap" ng-click="edit()">编辑</ion-item>
- <ion-item class="item item-button" type="item-text-wrap" ng-click="deleteNotice()">删除</ion-item>
- </ion-list>
- </ion-content>
- </ion-popover-view>
- </script>
- </ion-view>
|