myappointment.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <wxs src="../../../../utils/util.wxs" module="tools"></wxs>
  2. <block wx:if="{{appointment_list.length>0}}">
  3. <block wx:for="{{appointment_list}}" wx:key="id">
  4. <view class="containt">
  5. <view class="status">
  6. <view class="pic">
  7. <image class="visitorPic" src="http://ro7r875ut.hn-bkt.clouddn.com/appointment.png" />
  8. <text>预约看房</text>
  9. </view>
  10. <view class="right status1" wx:if="{{item.status==1}}">待受理</view>
  11. <view class="right status2" wx:elif="{{item.status==2}}">已受理</view>
  12. <view class="right status3" wx:elif="{{item.status==3}}">已拒绝</view>
  13. <view class="right status4" wx:elif="{{item.status==4}}">未到访</view>
  14. <view class="right status5" wx:elif="{{item.status==5}}">已到访</view>
  15. <view class="right status6" wx:elif="{{item.status==6}}">已过期</view>
  16. </view>
  17. <view class="name">
  18. {{item.garden_name}}
  19. </view>
  20. <view class="gate">
  21. 面积:{{item.area}}² {{item.layer}}/{{item.layer}}层
  22. </view>
  23. <view class="status">
  24. <view class="pic">
  25. <image class="visitorPic" src="http://ro7r875ut.hn-bkt.clouddn.com/time.png" />
  26. <view>
  27. <text wx:if="{{item.appointment_time==0}}">随时可看</text>
  28. <text wx:else="">{{tools.transitionTime(item.appointment_time)}}</text>
  29. </view>
  30. </view>
  31. <view class="right delete" id="{{item.id}}" bindtap="deleteAppointment">删除</view>
  32. </view>
  33. </view>
  34. </block>
  35. </block>
  36. <block wx:else="">
  37. <nodata />
  38. </block>