index.wxml 2.1 KB

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