微信小店联盟带货小程序

withdraw.wxml 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--pages/distribution/withdraw.wxml-->
  2. <view class="container">
  3. <!-- 余额卡片 -->
  4. <view class="balance-card">
  5. <view class="title">可提现金额(元)</view>
  6. <view class="amount">{{balance}}</view>
  7. <view class="tips">
  8. <text class="tip-item">待结算:¥{{pendingAmount}}</text>
  9. <text class="tip-item">已结算:¥{{settledAmount}}</text>
  10. </view>
  11. </view>
  12. <!-- 提现表单 -->
  13. <view class="withdraw-form">
  14. <view class="form-title">提现金额</view>
  15. <view class="input-group">
  16. <text class="currency">¥</text>
  17. <input class="amount-input"
  18. type="digit"
  19. value="{{amount}}"
  20. placeholder="请输入提现金额"
  21. bindinput="onAmountInput"/>
  22. </view>
  23. <view class="amount-tips">
  24. <text>最低提现金额¥{{minWithdraw}},单次最高¥{{maxWithdraw}}</text>
  25. <text class="all-amount" bindtap="setMaxAmount">全部提现</text>
  26. </view>
  27. <!-- 提现方式选择 -->
  28. <view class="withdraw-method">
  29. <view class="method-title">提现方式</view>
  30. <view class="method-list">
  31. <view class="method-item {{selectedMethod === 'wxpay' ? 'active' : ''}}"
  32. bindtap="selectMethod"
  33. data-method="wxpay">
  34. <image class="method-icon" src="/static/images/wxpay.png" mode="aspectFit"></image>
  35. <view class="method-info">
  36. <text class="method-name">微信零钱</text>
  37. <text class="method-desc">2小时内到账</text>
  38. </view>
  39. <text class="iconfont icon-check"></text>
  40. </view>
  41. <view class="method-item {{selectedMethod === 'bank' ? 'active' : ''}}"
  42. bindtap="selectMethod"
  43. data-method="bank">
  44. <image class="method-icon" src="/static/images/bank.png" mode="aspectFit"></image>
  45. <view class="method-info">
  46. <text class="method-name">银行卡</text>
  47. <text class="method-desc">1-3个工作日到账</text>
  48. </view>
  49. <text class="iconfont icon-check"></text>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 提现按钮 -->
  54. <button class="withdraw-btn {{canWithdraw ? '' : 'disabled'}}"
  55. bindtap="submitWithdraw"
  56. disabled="{{!canWithdraw}}">
  57. 确认提现
  58. </button>
  59. <!-- 提现说明 -->
  60. <view class="withdraw-rules">
  61. <view class="rules-title">提现说明</view>
  62. <view class="rule-item">1. 提现金额需大于等于{{minWithdraw}}元</view>
  63. <view class="rule-item">2. 微信零钱提现2小时内到账</view>
  64. <view class="rule-item">3. 银行卡提现1-3个工作日到账</view>
  65. <view class="rule-item">4. 如有疑问请联系客服</view>
  66. </view>
  67. </view>
  68. </view>