去掉bgUrl的设定
This commit is contained in:
-13
@@ -9,7 +9,6 @@ import { CaptchaConfig, wrapConfig, wrapStyle } from "./config/config";
|
||||
import { clearAllPreventDefault } from "./common/common";
|
||||
const template = `
|
||||
<div class="__captcha-parent">
|
||||
<div class="captcha-bg-img"></div>
|
||||
<div class="captcha-box">
|
||||
<div class="captcha-loading loading"></div>
|
||||
</div>
|
||||
@@ -57,7 +56,6 @@ class TianAiCaptcha {
|
||||
this.config.domBindEl.append(template);
|
||||
this.domTemplate = this.config.domBindEl.find(".__captcha-parent");
|
||||
clearAllPreventDefault(this.domTemplate);
|
||||
this.loadStyle();
|
||||
// 绑定按钮事件
|
||||
this.config.domBindEl
|
||||
.find(".refresh-btn")
|
||||
@@ -98,17 +96,6 @@ class TianAiCaptcha {
|
||||
.css("display", "none");
|
||||
}
|
||||
|
||||
loadStyle() {
|
||||
// 设置样式
|
||||
const bgUrl = this.style.bgUrl;
|
||||
if (bgUrl) {
|
||||
// 背景图片
|
||||
this.config.domBindEl
|
||||
.find(".captcha-bg-img")
|
||||
.css("background-image", "url(" + bgUrl + ")");
|
||||
}
|
||||
}
|
||||
|
||||
destroyWindow() {
|
||||
if (this.C) {
|
||||
this.C.destroy();
|
||||
|
||||
Reference in New Issue
Block a user