index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <view class="container">
  2. <!-- Custom Navigation Bar -->
  3. <view class="custom-nav">
  4. <view class="back-btn" bindtap="handleBack">
  5. <view class="back-arrow"></view>
  6. </view>
  7. <view class="nav-title">MewLive充值中心</view>
  8. </view>
  9. <!-- Logo -->
  10. <view class="logo-section">
  11. <image class="logo-icon" src="/image/logo.png" mode="aspectFit"></image>
  12. <text class="logo-text">MewLive</text>
  13. </view>
  14. <!-- ID Input -->
  15. <view class="input-section">
  16. <input
  17. class="id-input"
  18. type="text"
  19. placeholder="请输入要充值的ID"
  20. placeholder-style="color: #999;"
  21. bindinput="handleIdInput"
  22. value="{{rechargeId}}"
  23. />
  24. </view>
  25. <!-- Recharge Options -->
  26. <view class="recharge-section">
  27. <view class="section-title">选择要充值的金币数量</view>
  28. <view class="recharge-grid">
  29. <view
  30. class="recharge-item {{selectedIndex === index ? 'active' : ''}}"
  31. wx:for="{{rechargeOptions}}"
  32. wx:key="index"
  33. bindtap="selectOption"
  34. data-index="{{index}}"
  35. >
  36. <view class="coin-icon">
  37. <image class="coin-img" src="/image/coin.png" mode="aspectFit"></image>
  38. </view>
  39. <view class="amount">{{item.amount}}</view>
  40. <view class="price">¥{{item.price}}</view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- Login Button -->
  45. <view class="action-section">
  46. <button class="login-btn" bindtap="handleLogin">确认充值</button>
  47. <view class="agreement-text">
  48. 我已阅读并同意 <text class="link" bindtap="showAgreement">《用户充值协议》</text>
  49. </view>
  50. </view>
  51. <!-- Tips -->
  52. <view class="tips-section">
  53. <view class="tips-title">温馨提示:</view>
  54. <view class="tips-content">
  55. <view class="tip-line">1. 充值前请确定您已满 18 周岁并具有完全民事行为能力。</view>
  56. <view class="tip-line">2. 安全账号转账、理赔转账、刷单、代充均为骗局,请认真核实并确认</view>
  57. <view class="tip-line">3. 大额充值,请确保支付账户余额充足</view>
  58. <view class="tip-line">4. 如有疑问,请联系服务号客服</view>
  59. </view>
  60. </view>
  61. <!-- Agreement Popup (Page Container) -->
  62. <page-container
  63. show="{{agreementVisible}}"
  64. round="true"
  65. overlay="true"
  66. position="bottom"
  67. custom-style="height: 80%; background: #fff;"
  68. bind:clickoverlay="hideAgreement"
  69. >
  70. <view class="agreement-popup">
  71. <view class="popup-header">
  72. <text>用户充值协议</text>
  73. <view class="close-btn" bindtap="hideAgreement">×</view>
  74. </view>
  75. <view class="agreement-content">
  76. <text style="padding: 20px 0; display: block; text-align: center; color: #666; font-size: 14px;">
  77. 点击下方按钮查看《用户充值协议》
  78. </text>
  79. <button bindtap="openAgreementLink" type="primary" style="width: 80%;">查看协议详情</button>
  80. </view>
  81. </view>
  82. </page-container>
  83. </view>