微信小程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

77 linhas
3.8 KiB

  1. <!--pages/bank/bank.wxml-->
  2. <view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">合同填报</text>
  5. </view>
  6. <view class="search_box" id="top_view" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <van-search
  8. value="{{ name }}"
  9. shape="round"
  10. background="transparent"
  11. placeholder="请输入合同名称"
  12. clearable
  13. bind:change="goSearch"
  14. />
  15. <view class="add_btn" bindtap="goAdd"><text>新增</text></view>
  16. </view>
  17. <van-swipe-cell right-width="{{ 220 }}" class="workflow" wx:for="{{list}}" wx:key="index" wx:for-item="item" >
  18. <van-cell data-id="{{item.id}}" data-index="{{index}}" bindtap="detail" >
  19. <view slot="title" class="cellTitle">
  20. <image src="/image/icon/contract_icon.png" style="width: 15px;height: 15px;margin-right: 10px;flex-shrink: 0;" referrer="no-referrer|origin|unsafe-url"></image>
  21. <text>{{item.name}}</text>
  22. </view>
  23. <view class="cellLable">
  24. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  25. <text>{{item.buildingTime}}</text>
  26. </view>
  27. </van-cell>
  28. <view slot="right" class="deleteBox">
  29. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(255,0,0,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete">
  30. <view>
  31. <image src="/image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  32. </view>
  33. <view>
  34. <text style="color:red">删除</text>
  35. </view>
  36. </view>
  37. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(98,173,102,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload">
  38. <view>
  39. <image src="/image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  40. </view>
  41. <view>
  42. <text style="color: #62AD66;">附件</text>
  43. </view>
  44. </view>
  45. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(252,154,85,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="edit">
  46. <view>
  47. <image src="/image/icon/icon_xg.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  48. </view>
  49. <view>
  50. <text style="color: #FC9A55;">修改</text>
  51. </view>
  52. </view>
  53. </view>
  54. </van-swipe-cell>
  55. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  56. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  57. <view class="fj-box">
  58. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  59. <view>
  60. <text>{{item.dictLabel}}</text>
  61. </view>
  62. <view class="img_box">
  63. <view class="img_li">
  64. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  65. </van-upload>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </scroll-view>
  71. </van-action-sheet>
  72. <van-empty wx:if="{{list.length<1}}" description="暂无合同" />
  73. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  74. </modal>