PageSourceSearch

https://mevory.com/assets/controllers/withdrawal_form_controller-87365370.js

js mevory.com collected 2026-10-02 01:36:49 UTC 694 bytes, 25 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// 提现表单控制器
4// 处理"全部提现"按钮点击事件
5export default class extends Controller {
6  static targets = ["amountInput"]
7  static values = {
8    maxAmount: Number
9  }
10
11  // 点击"全部提现"按钮时,自动填充最大可提现金额
12  fillMaxAmount(event) {
13    event.preventDefault()
14
15    if (this.hasAmountInputTarget) {
16      this.amountInputTarget.value = this.maxAmountValue.toFixed(2)
17
18      // 触发输入事件,以便其他监听器能够响应
19      this.amountInputTarget.dispatchEvent(new Event('input', { bubbles: true }))
20
21      // 聚焦到输入框
22      this.amountInputTarget.focus()
23    }
24  }
25}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.