user-record.wxml 1.2 KB

12345678910111213141516171819202122232425
  1. <wxs module="_">
  2. module.exports.getClassName = function (value, prev, key) {
  3. return key !== 'reportTime' && prev && value[key] !== prev[key] ? 'highlight' : ''
  4. }
  5. </wxs>
  6. <!--module/user/pages/user-record/user-record.wxml-->
  7. <t-navbar title="基础信息更新记录" left-arrow />
  8. <view class="wrapper {{orientation}}" style="{{containerStyle}}">
  9. <view class="header">
  10. <block wx:for="{{columns}}" wx:key="value" wx:for-index="i" wx:for-item="r">
  11. <view class="row {{i === 0 ? 'title' : i % 2 ? 'odd' : 'even'}}" style="height: {{r.height}}px;">{{r.label}}</view>
  12. </block>
  13. </view>
  14. <scroll-view class="scrollable" type="list" scroll-x enable-flex style="flex-direction: row;">
  15. <view class="col" wx:for="{{dataset}}" wx:key="index">
  16. <block wx:for="{{columns}}" wx:key="value" wx:for-index="i" wx:for-item="r">
  17. <view class="row {{i === 0 ? 'title' : i % 2 ? 'odd' : 'even'}} {{_.getClassName(item, dataset[index-1], r.value)}}" style="height: {{r.height}}px;">
  18. <text max-lines="3" overflow="ellipsis">{{item[r.value]}}</text>
  19. </view>
  20. </block>
  21. </view>
  22. </scroll-view>
  23. </view>
  24. <t-message id="{{$messageId}}" />