pay-record.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <ion-view view-title="{{titleArr[recordid == -1 ? 0 : 1]}}消费记录">
  2. <ion-nav-buttons side="right">
  3. <button class="button button-clear" ng-click="ok();">完成</button>
  4. </ion-nav-buttons>
  5. <ion-content>
  6. <div class="item item-divider"></div>
  7. <label class="item item-input text-input">
  8. <span class="input-label">金额&nbsp;¥</span>
  9. <input type="number" ng-model="record.amount" placeholder="输入金额" ng-pattern="/^([1-9][\d]{0,8}|0)(\.[\d]{1,2})?$/">
  10. </label>
  11. <div class=" item item-divider"></div>
  12. <ion-item class="item item-icon-right over-flow-auto item-text-wrap" ng-click="selectPayType();">
  13. 消费类型
  14. <p class="label-right-text">{{record.type_modal.name}}</p>
  15. <i class="icon ion-chevron-right icon-accessory"></i>
  16. </ion-item>
  17. <ion-item class="item item-icon-right over-flow-auto item-text-wrap" ng-click="selectSpendDate(record.spend_date)">
  18. 消费日期
  19. <p class="label-right-text">{{record.spend_date | date:"y年MM月dd日"}}</p>
  20. <i class="icon ion-chevron-right icon-accessory"></i>
  21. </ion-item>
  22. <div class=" item item-divider"></div>
  23. <div class="item">票据图片</div>
  24. <div class="item camera-item">
  25. <div ng-repeat="img in record.files" ng-click="shouBigImage(img.file_full_path)">
  26. <img ng-src="{{img.file_thumbnail_path}}"/>
  27. </div>
  28. <div class="center" ng-click="addphoto()">
  29. <i class="icon ion-image"></i>
  30. </div>
  31. </div>
  32. <div class=" item item-divider"></div>
  33. <label class="item item-input text-input">
  34. <span class="input-label">描述</span>
  35. <input type="text" ng-model="record.description" placeholder="输入描述"/>
  36. </label>
  37. <div class=" item item-divider" ng-if="recordid>0"></div>
  38. <ion-item class="item assertive" type="item-text-wrap" ng-if="recordid>0" ng-click="deleteRecord();" style="text-align:center">
  39. 删除
  40. </ion-item>
  41. </ion-content>
  42. <div ng-show="commons.bigImage" class="popover-backdrop1">
  43. <img class="fullscreen-image" ng-click="hideBigImage()" ng-src="{{Url}}" ng-pinch-zoom/>
  44. <i class="ion-ios-trash-outline" ng-click="deleteimage();"></i>
  45. </div>
  46. </ion-view>