todos-detail.swan 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="content">
  2. <scroll-view scroll-y>
  3. <view class="head">
  4. <text>{{information.source_name}}</text>
  5. <text>{{information.user_name}}</text>
  6. </view>
  7. <view class="body">
  8. <view class="item" s-for="data">
  9. <view>
  10. <text>{{item.t}}</text>
  11. <text>{{item.d}}</text>
  12. </view>
  13. <view s-if="{{item.imgs.length != 0}}" class="detail" bindtap="detailsAction" id="{{index}}">查看详情</view>
  14. <view class="imgBox">
  15. <image class="{{tools.imageClass(index, data.length)}}"
  16. src="../../../../../icon/mine/{{tools.imageSrc(index, data.length)}}.png"></image>
  17. <image s-if="{{index!=dataIndex}}" class="imageLine" src="../../../../../icon/mine/salary_line.png">
  18. </image>
  19. </view>
  20. </view>
  21. <view style="height:{{suffix?height+34:height}}px"></view>
  22. </view>
  23. </scroll-view>
  24. <view class="footer">
  25. <view class="tips" s-if="{{information.memo}}">
  26. <view class="line"></view>
  27. <text>温馨提示:{{information.memo}}</text>
  28. </view>
  29. <view s-if="{{(status && showButton)}}" class="btn{{suffix}}" bindtap="submitMaterials">{{status[0]}}</view>
  30. </view>
  31. </view>
  32. <filter module="tools">
  33. export default{
  34. imageClass: function(i, n) {
  35. if (i == 0) {
  36. return 'image-current'
  37. } else if (i == n - 1) {
  38. return 'image-start'
  39. } else {
  40. return 'image'
  41. }
  42. },
  43. imageSrc: function(i, n) {
  44. if (i == 0) {
  45. return 'finish'
  46. } else if (i == n - 1) {
  47. return 'start'
  48. } else {
  49. return 'point'
  50. }
  51. },
  52. textStyle: function(i, s) {
  53. if (i == 0){
  54. return s ? 'color:#333333' : 'color:#3296FB'
  55. }
  56. return ''
  57. },
  58. }
  59. </filter>