repairs.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!-- <view class="page" style="background-color: {{bgColor}}"> -->
  2. <view>
  3. <view class="menus " style="{{screenHeight=='xSeries' ? 'height:196rpx' : 'height:147rpx'}};{{repairsList.length>0?'background:#fff':'background:#efefef'}}">
  4. <text class="iconfont iconright1" bindtap="back" style="{{screenHeight=='xSeries' ? 'margin-top:50rpx' : 'margin-top:18rpx'}}"></text>
  5. <van-dropdown-menu class="{{screenHeight=='xSeries' ? 'menu1' : 'menu'}} {{repairsList.length>0?'fffBg':'background:#efBg'}}">
  6. <van-dropdown-item id="menu" value="{{ value1 }}" options="{{ option1 }}" bind:change="change" />
  7. </van-dropdown-menu>
  8. </view>
  9. <view class="feed" style="padding-top:{{screenHeight=='xSeries' ? '195rpx' : '147rpx'}}">
  10. <view class="cut" style="{{repairsList.length>0?'background:#fff':'background:#efefef'}}">
  11. <text class="{{curPage ==0 ? 'cur':''}}" bindtap="choose" data-idx="0">未读</text>
  12. <text class="{{curPage ==1 ? 'cur':''}}" bindtap="choose" data-idx="1">已读</text>
  13. </view>
  14. <view class="box" style="{{repairsList.length>0?'margin-top:117rpx':'margin-top:0rpx'}}">
  15. <view wx:for="{{repairsList}}" wx:key="{{index}}" class="list">
  16. <view data-idx="{{index}}" style="{{item.txtStyle}}" class="content">
  17. <view style="font-size:28rpx;" class="title">
  18. <view class="left">
  19. <text> {{item.trouble_part}}</text>
  20. <text style="margin-left:15rpx;">({{item.bike_no}})</text>
  21. </view>
  22. <view class="right" wx:if="{{curPage==0}}" bindtap="markRead" data-id="{{item.id}}">标为已读</view>
  23. </view>
  24. <view class="body">
  25. <view class="left">
  26. <image style="height:50rpx;width:112rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep4.png" wx:if="{{item.trouble_part=='刹车'}}"></image>
  27. <image style="height:96rpx;width:96rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep6.png" wx:if="{{item.trouble_part=='车胎'}}"></image>
  28. <image style="height:58rpx;width:116rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep5.png" wx:if="{{item.trouble_part=='链条'}}"></image>
  29. <image style="height:66rpx;width:116rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep1.png" wx:if="{{item.trouble_part=='车座'}}"></image>
  30. <image style="height:80rpx;width:60rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep2.png" wx:if="{{item.trouble_part=='二维码'}}"></image>
  31. <image style="height:72rpx;width:64rpx" src="http://resource.bike.hanyiyun.com/yunwei/rep3.png" wx:if="{{item.trouble_part=='其他'}}"></image>
  32. </view>
  33. <view class="right">
  34. <view class="describe">问题描述:{{item.trouble_description}}</view>
  35. </view>
  36. </view>
  37. <view class="time flexB">
  38. <text>创建时间:{{item.created_at}}</text>
  39. <text bindtap="phone" data-phone="{{item.users.mobile}}" hover-stop-propagation>手机号:{{item.users.mobile}}</text>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="noData" wx:if="{{repairsList.length == 0}}">
  44. <image src="http://resource.bike.hanyiyun.com/none.png"></image>
  45. <view>暂无相关数据~</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>