task-create.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <ion-view view-title="新建任务" hide-back-button="true">
  2. <ion-nav-buttons side="left">
  3. <button class="button button-clear" ng-click="goback()">取消</button>
  4. </ion-nav-buttons>
  5. <ion-nav-buttons side="right">
  6. <button class="button button-clear" ng-click="addTask()">完成</button>
  7. </ion-nav-buttons>
  8. <ion-content>
  9. <div class="item item-divider"></div>
  10. <div class="task-create-content">
  11. <div class="item item-input">
  12. <textarea rows="6" ng-model="task.content" placeholder="输入任务详情"></textarea>
  13. </div>
  14. <div class="item">
  15. <div ng-repeat="image in image_list track by $index">
  16. <img data-ng-src={{image}} ng-click="shouBigImage(image)"/>
  17. </div>
  18. <div class="center" ng-click="addphoto()">
  19. <i class="icon ion-camera"></i>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="item item-divider"></div>
  24. <div class="item task-create-member">
  25. <div class="center" ng-repeat="item in task.task_members">
  26. <i class="icon ion-ios-minus" ng-click="remove(item,$index)" ng-show="isremove"></i>
  27. <img ng-src="../../../img/cat.png"/>
  28. <p ng-class="{true:'task-create-member-p'}[item == task.task_members[0]]">{{item.username}}</p>
  29. </div>
  30. <div class="tabs-icon-top" ng-click="selectmember()">
  31. <a class="tab-item">
  32. <i class="icon ion-ios-plus-outline"></i>
  33. <span>任务成员</span>
  34. </a>
  35. </div>
  36. <div class="tabs-icon-top" ng-show="task.task_members.length != 0" ng-click="changeRemove(isremove)">
  37. <a class="tab-item">
  38. <i class="icon ion-ios-minus-outline"></i>
  39. <span>移除</span>
  40. </a>
  41. </div>
  42. </div>
  43. <a class="item item-icon-right" ng-show="task.task_members.length > 1" ng-click="showModal()">主要负责人
  44. <span class="item-note">{{task.task_members[0].username}}</span>
  45. <i class="icon ion-chevron-right icon-accessory"></i>
  46. </a>
  47. <div class="item item-divider"></div>
  48. <a class="item item-icon-right" ng-click="chooseDate()">截止日期
  49. <span class="item-note">{{task.end_dd == null ? '选填' : task.end_dd | date:'yyyy-MM-dd'}}</span>
  50. <i class="icon ion-chevron-right icon-accessory"></i>
  51. </a>
  52. </ion-content>
  53. <div id="rightDisplay" ng-show="commons.bigImage" class="popover-backdrop1">
  54. <img class="fullscreen-image" ng-click="hideBigImage()" ng-src="{{Url}}" ng-pinch-zoom/>
  55. <i class="ion-ios-trash-outline" ng-click="deleteimage()"></i>
  56. </div>
  57. </ion-view>