index.wxml 2.8 KB

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