list.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <wxs src="../../../utils/format.wxs" module="format" />
  2. <view class="container">
  3. <view class="top">
  4. <view class="profile-info" bindtap="goLogin">
  5. <image class="avatar" src="{{userInfo.avatarUrl}}"></image>
  6. <view class="info">
  7. <text class="name" style="margin-top:0rpx">{{userInfo.nickName}}</text>
  8. <text class="cert">{{userInfo.mobile}}</text>
  9. <button wx:if="{{userInfo.avatarUrl=='/static/images/my.png'}}" bindtap="getUserProfile" class="plus">完善信息</button>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="row" wx:for="{{list}}" wx:key="id">
  14. <view class="title">
  15. <view class="left">工单号:{{item.bookNo}}</view>
  16. <view class="right">时间:{{item.createTime}}</view>
  17. </view>
  18. <view class="content" wx:for="{{item.items}}" wx:for-item='detail' wx:key='*this'>
  19. <view class="category">服务项:{{detail.categoryName}}</view>
  20. <view class="device">
  21. {{detail.deviceName}}
  22. <span wx:if="{{detail.positionName}}">(</span>
  23. <span>{{detail.positionName}}</span>
  24. <span wx:if="{{detail.positionName}}">)</span>
  25. </view>
  26. <view class="problem">
  27. <view class="item" wx:for="{{detail.problemsName}}" wx:for-item='problem' wx:key='*this'>{{problem}}</view>
  28. </view>
  29. <view class="problem">
  30. <image class="img" src="{{pic}}" wx:for="{{detail.picUrls}}" wx:for-item='pic' wx:key='*this'/>
  31. </view>
  32. </view>
  33. <view class="edit-pre" data-bookno="{{item.bookNo}}" bindtap="editPre" wx:if="{{format.substrDate(item.createTime)==today}}">编辑</view>
  34. </view>
  35. </view>