index.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. <!-- tabs -->
  8. <view class="tab-view">
  9. <van-tabs swipeable bind:change="onTabChange" color="#2270D9" title-active-color="#2270D9" title-inactive-color="#8F8AA6">
  10. <van-tab wx:for="{{tabs}}" active="{{active}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" title="{{itm.name}}"/>
  11. </van-tabs>
  12. </view>
  13. </view>
  14. <!-- 内容视图 -->
  15. <view class="container">
  16. <!-- 入金视图 -->
  17. <view class="into-gold-view" wx:if="{{active == 0}}">
  18. <!-- 充值金额 -->
  19. <view class="item amount">
  20. <text class="title">充值金额</text>
  21. <van-field id="into-amount-field" model:value="{{inamount}}" type="number" border="{{false}}" placeholder="请输入充值金额"></van-field>
  22. </view>
  23. <!-- 凭证 -->
  24. <view class="item credentials">
  25. <text class="title">凭证</text>
  26. <view class="credentials-top-view">
  27. <text class="value">请上传银行充值流水截图</text>
  28. <!-- 凭证图片 -->
  29. <view class="upload"><van-uploader max-count="1" deletable="{{true}}" file-list="{{ fileList }}" bind:after-read="afterRead" bind:delete="deleteImage"></van-uploader></view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 出金视图 -->
  34. <view class="out-gold-view" wx:if="{{active == 1}}">
  35. <!-- 提现金额 -->
  36. <view class="item out-amount" id="item-out-amount">
  37. <text class="title">提现金额</text>
  38. <view class="out-amount-view">
  39. <van-field id="out-amount-field" model:value="{{outamount}}" type="number" border="{{false}}" placeholder="请输入提现金额"></van-field>
  40. <view class="enable-out-amount-view">
  41. <text class="enable-out-amount">可提现金额:{{enableOutAmount}}</text>
  42. <van-button id="allamount" color="#F7A657" round type="mini" bind:click="onButtonPressed">全部</van-button>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 开户银行 -->
  47. <view class="item bankName">
  48. <text class="title">开户银行</text>
  49. <text class="value">{{sign.bankname}}</text>
  50. </view>
  51. <!-- 银行卡号 -->
  52. <view class="item banNo">
  53. <text class="title">银行卡号</text>
  54. <text class="value">{{sign.cardno}}</text>
  55. </view>
  56. <!-- 姓名 -->
  57. <view class="item accountName">
  58. <text class="title">姓名</text>
  59. <text class="value">{{sign.bankaccountname}}</text>
  60. </view>
  61. <!-- 支行名称 -->
  62. <view class="item branchBankName">
  63. <text class="title">支行名称</text>
  64. <text class="value">{{sign.branchbankname}}</text>
  65. </view>
  66. </view>
  67. <!-- 提现时间 -->
  68. <view class="inout-time-view"><text class="inout-time">提现时间:{{time}}</text></view>
  69. <!-- 按钮 -->
  70. <view class="button-view">
  71. <van-button custom-class="submit" id="submit" round color="linear-gradient(to right, #4bb0ff, #6149f6)" block bind:click="onButtonPressed">确定</van-button>
  72. </view>
  73. </view>
  74. <!-- toast -->
  75. <van-toast id="van-toast" />