微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
4.7 KiB

  1. <!--pages/drawee/drawee.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">支出申请</text>
  5. </view>
  6. <!-- 付款单位开始 -->
  7. <view class="top" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <image src="../../image/apply/dress_icon.png" mode="widthFix"></image>
  9. <view class="top-tit">付款单位</view>
  10. <view class="top-title">{{bookName}}</view>
  11. </view>
  12. <view class="main">
  13. <van-tabs sticky color="#000" animated>
  14. <van-tab title="银行账户">
  15. <view class="bank_box" wx:for="{{accountList}}" wx:key="index">
  16. <text class="zt">{{item.bankUseType == 1 ?'基本户':'一般户'}}</text>
  17. <image src="../../image/apply/bgt.png" style="width: 100%;position: absolute;top:0;right:0;z-index: 9;height: 100%;"></image>
  18. <view class="bank_content {{item.bankType == 1||iOf.indexOf(item.subjectNameAll,'中国银行') ? 'ICBC':item.bankType == 2||iOf.indexOf(item.subjectNameAll,'农商行') ? 'RCB':item.bankType == 3||iOf.indexOf(item.subjectNameAll,'农业银行') ? 'ABC':item.bankType == 4||iOf.indexOf(item.subjectNameAll,'建设银行') ? 'CCB':''}}">
  19. <view class="bankName">
  20. <image src="../../image/apply/{{item.bankType == 1||iOf.indexOf(item.subjectNameAll,'中国银行') ? 'ICBC':item.bankType == 2||iOf.indexOf(item.subjectNameAll,'农商行') ? 'RCB':item.bankType == 3||iOf.indexOf(item.subjectNameAll,'农业银行') ? 'ABC':item.bankType == 4||iOf.indexOf(item.subjectNameAll,'建设银行') ? 'CCB':''}}.png" style="width: 25px" mode="widthFix"></image>
  21. <text>{{item.accountName}}</text>
  22. </view>
  23. <view style="margin-top: 2vh;">{{item.bankAccountNumber}}<text>卡号</text></view>
  24. <view>可用余额</view>
  25. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">
  26. {{item.balance}}
  27. <image src="/image/apply/update.png" data-id="{{item.id}}" data-index="{{index}}" bindtap="updateMoney" style="width: 20px;height: 20px;vertical-align: middle;position: absolute;right: 2vh;z-index: 10;"></image>
  28. </view>
  29. </view>
  30. </view>
  31. <van-empty wx:if="{{accountList.length == 0}}" description="暂无银行账户" />
  32. <view class="addBtn" data-url="/pages/drawee/add/add" bindtap="navigate">
  33. <image src="/image/icon/icon_add.png"></image>
  34. <text>添加银行账户</text>
  35. </view>
  36. </van-tab>
  37. <van-tab title="现金账户">
  38. <view class="bank_box" wx:for="{{accountListXJ}}" wx:key="index">
  39. <view class="bank_content XJ">
  40. <view class="bankName">
  41. <image src="../../image/apply/XJ.png" style="width: 25px" mode="widthFix"></image>
  42. <text>{{item.accountName}}</text>
  43. </view>
  44. <view style="margin-top: 2vh;">{{item.bankAccountNumber}}<text>科目</text></view>
  45. <view>可用余额</view>
  46. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">
  47. {{item.balance}}
  48. <image src="/image/apply/update.png" data-id="{{item.id}}" data-index="{{index}}" bindtap="updateMoney" style="width: 20px;height: 20px;vertical-align: middle;position: absolute;right: 2vh;z-index: 10;"></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="addBtn">
  53. <image src="/image/icon/icon_add.png"></image>
  54. <text>添加现金账户</text>
  55. </view>
  56. <van-empty wx:if="{{accountList.length == 0}}" description="暂无现金账户" />
  57. <!-- <van-empty wx:if="{{accountList.length == 0}}" description="暂无银行账户" /> -->
  58. </van-tab>
  59. <van-tab title="公务卡">
  60. <view class="bank_box">
  61. <view class="bank_content gwk">
  62. <view class="bankName">
  63. <image src="../../image/apply/icon_GWK.png" style="width: 25px" mode="widthFix"></image>
  64. <text>公务卡</text>
  65. </view>
  66. <view style="margin-bottom: 2vh;">6217 0021 9000 7972 186<text>卡号</text></view>
  67. <view>可用余额</view>
  68. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">10,288.83</view>
  69. </view>
  70. <view class="holder">持有人:王强</view>
  71. </view>
  72. <!-- <van-empty wx:if="{{accountList.length == 0}}" description="暂无银行账户" /> -->
  73. <view class="addBtn">
  74. <image src="/image/icon/icon_add.png"></image>
  75. <text>添加公务卡</text>
  76. </view>
  77. </van-tab>
  78. </van-tabs>
  79. </view>
  80. <view class="ipXbtn"></view>
  81. <wxs module="iOf">
  82. var indexOf = function(name,value){
  83. return name.indexOf(value)>0;
  84. }
  85. module.exports.indexOf = indexOf;
  86. </wxs>