index.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="container" wx:if="{{ userInfo.user_id }}">
  2. <view class="account-panel dis-flex flex-y-center">
  3. <view class="panel-lable">
  4. <text>账户余额</text>
  5. </view>
  6. <view class="panel-balance flex-box">
  7. <text>¥{{ userInfo.balance }}</text>
  8. </view>
  9. </view>
  10. <view class="recharge-panel">
  11. <view class="recharge-label">
  12. <text>充值金额</text>
  13. </view>
  14. <view class="recharge-plan clear">
  15. <block wx:for="{{ planList }}" wx:key="this">
  16. <view class="recharge-plan_item {{ selectedPlanId == item.plan_id ? 'active' : '' }}" catchtap="onSelectPlan" data-id="{{ item.plan_id }}">
  17. <view class="plan_money">
  18. <text>{{ item.money }}</text>
  19. </view>
  20. <view class="plan_gift" wx:if="{{ item.gift_money > 0 }}">
  21. <text>送{{ item.gift_money }}</text>
  22. </view>
  23. </view>
  24. </block>
  25. </view>
  26. <!-- 手动充值输入框 -->
  27. <view class="recharge-input" wx:if="{{ setting.is_custom == '1' }}">
  28. <input type="digit" placeholder="请输入充值金额" value="{{ inputValue }}" bindinput="bindMoneyInput" />
  29. </view>
  30. <!-- 确认按钮 -->
  31. <view class="recharge-submit btn-submit">
  32. <form bindsubmit="onSubmit" report-submit="true">
  33. <button formType="submit" disabled="{{ disabled }}">立即充值</button>
  34. </form>
  35. </view>
  36. </view>
  37. <!-- 充值描述 -->
  38. <view class="recharge-describe">
  39. <view class="recharge-label">
  40. <text>充值说明</text>
  41. </view>
  42. <view class="content">
  43. <text space="ensp">{{ setting.describe }}</text>
  44. </view>
  45. </view>
  46. </view>