detail.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <block wx:for="{{detail}}" wx:key="index">
  2. <view class="repair_detail" wx:if="{{item.value!=='apply_content'}}">
  3. <view> {{item.name}}</view>
  4. <view class="repair_text" wx:if="{{item.value=='status'}}">{{status[base_info[item.value]]}}</view>
  5. <view class="repair_text" wx:elif="{{item.value=='area'}}">
  6. {{area_list[base_info[item.value]]}}
  7. </view>
  8. <view class="repair_text" wx:else>{{base_info[item.value]}}</view>
  9. </view>
  10. <!-- <view wx:else="" class="apply_content">
  11. <view>{{item.name}}</view>
  12. <view class="apply_content_value">{{base_info[item.value]}}</view>
  13. </view> -->
  14. </block>
  15. <view class="repair_list">
  16. <view class="repair_list_title">工单进度</view>
  17. <view class="weui-steps weui-steps_vertical">
  18. <block wx:for="{{list}}" wx:key="index">
  19. <view wx:if="{{index==0}}" class="weui-steps__item weui-steps__item_success reapir_process" style="padding-bottom: 0;">
  20. <view class="weui-steps__item__inner" style="padding-left: 0;">
  21. <view class="list_header">
  22. <text class="weui-steps__item__title green">提交任务</text>
  23. <text class="handle_time">{{item.handle_time}}</text>
  24. </view>
  25. <view class="user">
  26. <text class="user_phone">任务描述:{{base_info["apply_content"]}}</text>
  27. </view>
  28. <view class="pics">
  29. <block wx:for="{{base_info.apply_pic}}" wx:key="index">
  30. <image wx:if="{{item}}" class="apply_pic" src="{{item}}" data-index="{{index}}" bindtap="chickImage" />
  31. </block>
  32. </view>
  33. </view>
  34. </view>
  35. <view wx:elif="{{index==list.length-1}}" class="weui-steps__item weui-steps__item_success reapir_process" style="padding-bottom: 0;">
  36. <view class="weui-steps__item__inner" style="padding-left: 0;">
  37. <view class="list_header">
  38. <text class="weui-steps__item__title green">{{item.status}}</text>
  39. <text class="handle_time">{{item.handle_time}}</text>
  40. </view>
  41. <view class="user">
  42. <text class="user_phone">处理人:</text>
  43. <text class="green">{{item.user}}</text>
  44. </view>
  45. <view class="phone">
  46. <text class="user_phone">处理人电话:</text>
  47. <text class="green">{{item.phone}}</text>
  48. </view>
  49. <view class="pics">
  50. <block wx:for="{{base_info.repair_pic}}" wx:key="index">
  51. <image wx:if="{{item}}" class="apply_pic" src="{{item}}" data-index="{{index}}" bindtap="chickRepair" />
  52. </block>
  53. </view>
  54. </view>
  55. </view>
  56. <view wx:else="" class="weui-steps__item weui-steps__item_success reapir_process" style="padding-bottom: 0;">
  57. <view class="weui-steps__item__inner" style="padding-left: 0;">
  58. <view class="list_header">
  59. <text class="weui-steps__item__title green">{{item.status}}</text>
  60. <text class="handle_time">{{item.handle_time}}</text>
  61. </view>
  62. <view class="user">
  63. <text class="user_phone">处理人:</text>
  64. <text class="green">{{item.user}}</text>
  65. </view>
  66. <view class="phone">
  67. <text class="user_phone">处理人电话:</text>
  68. <text class="green">{{item.phone}}</text>
  69. </view>
  70. </view>
  71. </view>
  72. </block>
  73. </view>
  74. </view>
  75. <block wx:if="{{base_info.status==3}}">
  76. <view class="evaluate" wx:if="{{base_info.return_visit_level==0}}">请对我的服务做出评价</view>
  77. <view class="evaluate" wx:else="">我的服务评价</view>
  78. <form bindsubmit="submit">
  79. <view class="visit">
  80. <view>满意度</view>
  81. <block wx:if="{{base_info.return_visit_level==0}}">
  82. <radio-group name="return_visit_level">
  83. <label class="radio radio_text">
  84. <radio value="1" />满意
  85. </label>
  86. <label class="radio radio_text">
  87. <radio value="2" />不满意
  88. </label>
  89. </radio-group>
  90. </block>
  91. <block wx:else="">
  92. <radio-group name="return_visit_level">
  93. <label class="radio radio_text gray">
  94. <radio value="1" checked="{{flag}}" disabled="true" />满意
  95. </label>
  96. <label class="radio radio_text gray">
  97. <radio value="2" checked="{{!flag}}" disabled="true" />不满意
  98. </label>
  99. </radio-group>
  100. </block>
  101. </view>
  102. <view class="visit_text">
  103. <text>评价</text>
  104. <block wx:if="{{base_info.return_visit_level==0}}">
  105. <textarea name="return_visit_content" class="weui-textarea" placeholder="请输入评价详情" placeholder-class="weui-input__placeholder" rows="3"></textarea>
  106. </block>
  107. <block wx:else="">
  108. <textarea name="return_visit_content"
  109. disabled="true"
  110. class="weui-textarea gray" placeholder="请输入评价详情" value="{{base_info.return_visit_content}}" placeholder-class="weui-input__placeholder" rows="3"></textarea>
  111. </block>
  112. </view>
  113. <view class="commitBtn" wx:if="{{base_info.return_visit_level==0}}">
  114. <button type="primary" form-type="submit">提交</button>
  115. </view>
  116. </form>
  117. </block>