wait-for-do-details.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <scroll-view scroll-y class="bg-scroll-view">
  2. <view class="header">
  3. <text>{{information.source_name}}</text>
  4. <text>{{information.user_name}} {{item.city_name ? item.city_name : ''}}</text>
  5. </view>
  6. <view style="width:100%;height:60rpx;"></view>
  7. <view wx:for="{{data}}" wx:key="" class="{{index == 0 ? 'item-current' : 'item'}}">
  8. <view>
  9. <image class="{{tools.imageClass(index, data.length)}}" src="../../../../icon/mine/{{tools.imageSrc(index, data.length)}}.png" mode="aspectFit"></image>
  10. <view wx:if="{{index != data.length - 1}}">
  11. <view></view>
  12. </view>
  13. </view>
  14. <view>
  15. <view>
  16. <text style="{{tools.textStyle(index, status)}};">{{item.t}}</text>
  17. <view wx:if="{{item.imgs.length != 0}}" bindtap="detailsAction" id="{{index}}">查看详情</view>
  18. </view>
  19. <text>{{item.d}}</text>
  20. </view>
  21. </view>
  22. <view style="height:{{ui.scrollBottom}}px;"></view>
  23. </scroll-view>
  24. <view class="wfdd-bottom-view" wx:if="{{tips || (status && showButton)}}" id="srollBottom">
  25. <view></view>
  26. <text wx:if="{{information.memo}}">温馨提示:{{information.memo}}</text>
  27. <view wx:if="{{(status && showButton)}}">
  28. <view bindtap="submitMaterials">{{status[0]}}</view>
  29. </view>
  30. <view style="height:{{adapter.suffix == '-X' ? '68rpx' : '0'}};"></view>
  31. </view>
  32. <wxs module="tools">
  33. var imageClass = function(i, n) {
  34. if (i == 0) {
  35. return 'image-current'
  36. } else if (i == n - 1) {
  37. return 'image-start'
  38. } else {
  39. return 'image'
  40. }
  41. }
  42. var imageSrc = function(i, n) {
  43. if (i == 0) {
  44. return 'finish'
  45. } else if (i == n - 1) {
  46. return 'start'
  47. } else {
  48. return 'point'
  49. }
  50. }
  51. var textStyle = function(i, s) {
  52. if (i == 0){
  53. return s ? 'color:#333333' : 'color:#3296FB'
  54. }
  55. return ''
  56. }
  57. module.exports.imageSrc = imageSrc
  58. module.exports.imageClass = imageClass
  59. module.exports.textStyle = textStyle
  60. </wxs>