myperformance.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--mMine/pages/myperformance/myperformance.wxml-->
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #E92020">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="white" bind:click="backToParent"/>
  5. <text slot="title" style="color: white;">我的履约</text>
  6. </van-nav-bar>
  7. <!-- tabs -->
  8. <view class="tab-view">
  9. <van-tabs sticky animated bind:change="onTabChange">
  10. <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" active="{{itm.id}}" title="{{itm.name}}"/>
  11. </van-tabs>
  12. </view>
  13. <scroll-view class="scroll-view" scroll-x enable-flex>
  14. <!-- 列头 -->
  15. <view wx:if="{{!isEmpty}}" class="title-view" style="width: {{totalWidth}}px;">
  16. <text class="title-view-text" wx:for="{{titles}}" wx:for-index="idx" wx:for-item="itm" wx:key="idx" id="idx" style="width: {{widths[idx]}}px;">{{itm}}</text>
  17. </view>
  18. <!-- 数据内容 -->
  19. <view class="order-list">
  20. <view class="order-list-item" wx:for="{{values}}" wx:for-item="lists" wx:key="lists" id="{{index}}" bindtap="onListItemClick">
  21. <!-- 数据体 -->
  22. <view class="order-list-item-row" style="width: {{totalWidth}}px;">
  23. <text wx:for="{{lists}}" wx:for-index="idx" wx:for-item="itm" wx:key="itm" style="width: {{widths[idx]}}px;">{{itm}}</text>
  24. </view>
  25. <!-- 按钮 -->
  26. <view class="order-list-item-btn" wx:if="{{selectRow != -1 && selectRow == index}}">
  27. <!-- 履约详情 -->
  28. <button class="per-detail" id="per-detail" bindtap="onButtonPressed">履约详情</button>
  29. <!-- 手动执行 -->
  30. <button class="per-manual" id="per-manual" bindtap="onButtonPressed">手动执行</button>
  31. <!-- 延期申请 -->
  32. <button class="apply-dely" id="apply-dely" bindtap="onButtonPressed">延期申请</button>
  33. <!-- 违约申请 -->
  34. <button class="apply-default" id="apply-default" bindtap="onButtonPressed">违约申请</button>
  35. <!-- 卖委托单 -->
  36. <button class="edit" id="edit" bindtap="onButtonPressed">修改信息</button>
  37. </view>
  38. </view>
  39. </view>
  40. </scroll-view>
  41. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>