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

56 linhas
2.0 KiB

  1. <!--pages/payee/index.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. <view class="search_box" 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. <van-radio-group value="{{ result }}" bind:change="onChange">
  18. <van-cell-group>
  19. <van-cell
  20. wx:for="{{ list }}"
  21. wx:key="index"
  22. value-class="value-class"
  23. clickable
  24. data-index="{{ item.id }}"
  25. bind:click="toggle"
  26. use-label-slot
  27. >
  28. <view slot="icon" style="margin-right: 10px;">
  29. <image src="/image/apply/{{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'icon_icbc':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'icon_RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'icon_ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'icon_CCB':'icon_other'}}.png" style="width: 20px;height: 20px;vertical-align: middle;"></image>
  30. </view>
  31. <view slot="title">
  32. {{item.payee}}
  33. </view>
  34. <view slot="label">
  35. <text decode = "{{true}}">{{item.payeeAccountText}}&emsp;&emsp;&emsp;&emsp;{{item.bankTypeText}}</text>
  36. </view>
  37. <van-radio
  38. catch:tap="noop"
  39. checked-color="#2C8E68"
  40. class="checkboxes-{{ index }}"
  41. name="{{ item.id }}"
  42. />
  43. </van-cell>
  44. </van-cell-group>
  45. </van-radio-group>
  46. <view class="bottom">
  47. <view class="btn2" bindtap="goSubmit">确认</view>
  48. </view>
  49. <wxs module="iOf">
  50. var indexOf = function(name,value){
  51. return name.indexOf(value);
  52. }
  53. module.exports.indexOf = indexOf;
  54. </wxs>