微信小程序
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.

53 regels
2.6 KiB

  1. <!--pages/bank/bank.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></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="{{ value }}"
  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. <scroll-view scroll-y refresher-threshold="0" id="top_view2" style="height:{{scrollHeight}}px" bindscrolltolower="paging" lower-threshold="100">
  18. <van-swipe-cell right-width="{{ 65 }}" class="workflow" wx:for="{{depositList}}" wx:key="index" wx:for-item="item">
  19. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  20. <view class="tit_box">
  21. <image src="/image/apply/{{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'ICBC':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'CCB':'QT'}}.png" style="width: 25px;height: 25px;"></image>
  22. <text class="tit">{{item.bankDeposit}}</text>
  23. </view>
  24. <view class="detail_box">
  25. <view style="width: 35%;">{{item.bankTypeText}}</view>
  26. <view style="width: 30%;display: flex;justify-content: center;">
  27. <image src="/image/icon/dress.png" style="width: 9px;height: 12px;margin-right: 5px;"></image>
  28. <text>{{item.sheng+item.shi}}</text>
  29. </view>
  30. <view><text>{{item.payeePaymentLines}}</text></view>
  31. </view>
  32. </view>
  33. <view slot="right" class="deleteBox">
  34. <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">
  35. <view>
  36. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  37. </view>
  38. <view>
  39. <text style="color:red">删除</text>
  40. </view>
  41. </view>
  42. </view>
  43. </van-swipe-cell>
  44. </scroll-view>
  45. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  46. </modal>
  47. <wxs module="iOf">
  48. var indexOf = function(name,value){
  49. return name.indexOf(value);
  50. }
  51. module.exports.indexOf = indexOf;
  52. </wxs>