index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="topView">
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #fff">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
  5. <text slot="title" style="color: #333;">添加签约账户</text>
  6. </van-nav-bar>
  7. </view>
  8. <!-- 内容 -->
  9. <van-cell-group>
  10. <!-- 开户银行 -->
  11. <van-field model:value="{{ bankName }}" is-link label="开户银行" required clearable placeholder="请选择开户银行" bind:click-input="showBankInfos">
  12. </van-field>
  13. <!-- 银行卡号 -->
  14. <van-field model:value="{{ bankNo }}" type="number" label="银行卡号" required clearable placeholder="请输入银行卡号"/>
  15. <!-- 姓名 -->
  16. <van-field model:value="{{ accountName }}" label="姓名" required clearable placeholder="请输入姓名"/>
  17. <!-- 支行名称 -->
  18. <van-field model:value="{{ branchBankName }}" label="支行名称" required clearable placeholder="请填写开户支行名称"/>
  19. </van-cell-group>
  20. <!-- 按钮 -->
  21. <view class="button-view">
  22. <van-button custom-class="submit" id="submit" round color="linear-gradient(to right, #4bb0ff, #6149f6)" block bind:click="onButtonPressed">提交</van-button>
  23. </view>
  24. <!-- 选择开户行 -->
  25. <van-popup show="{{ showBank }}" position="bottom" custom-style="height: 30%" bind:click-overlay="onCancel">
  26. <!-- picker -->
  27. <van-picker show-toolbar title="请选择开户行" default-index="{{ 1 }}" columns="{{ bankNames }}" bind:cancel="onCancel" bind:confirm="onConfirm"/>
  28. </van-popup>
  29. <!-- toast -->
  30. <van-toast id="van-toast" />