()
| 1993 | } |
| 1994 | |
| 1995 | function onBindModeChange() { |
| 1996 | const mode = getBindMode(); |
| 1997 | updateBindModeSpecificUi(mode); |
| 1998 | |
| 1999 | const actionBtn = document.getElementById("create-bind-task-btn"); |
| 2000 | if (actionBtn) { |
| 2001 | actionBtn.classList.remove("btn-primary", "btn-secondary", "btn-success", "btn-purple", "btn-danger"); |
| 2002 | actionBtn.classList.remove("efun-subscribe-wide"); |
| 2003 | if (mode === "local_auto") { |
| 2004 | actionBtn.textContent = "创建并执行全自动订阅"; |
| 2005 | actionBtn.classList.add("btn-secondary"); |
| 2006 | } else if (mode === "vendor_efun") { |
| 2007 | actionBtn.textContent = "订阅"; |
| 2008 | actionBtn.classList.add("btn-success"); |
| 2009 | actionBtn.classList.add("efun-subscribe-wide"); |
| 2010 | } else { |
| 2011 | actionBtn.textContent = "生成并加入绑卡任务(半自动)"; |
| 2012 | actionBtn.classList.add("btn-secondary"); |
| 2013 | } |
| 2014 | } |
| 2015 | updateSemiAutoActionsVisibility(mode); |
| 2016 | updateSelectedAccountEmailLabel(); |
| 2017 | storage.set(BIND_MODE_STORAGE_KEY, mode); |
| 2018 | } |
| 2019 | |
| 2020 | function collectThirdPartyConfig() { |
| 2021 | const apiUrl = getInputValue("third-party-api-url"); |
no test coverage detected