Song.Site/Utilities/Panel/Scripts/Login.js
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* 主 题:登录框
* 说 明:
* 1、支持支持滑块;
* 2、可加载验证码
* 3、异步加载验证
*
* 作 者:微厦科技_宋雷鸣_10522779@qq.com
* 开发时间: 2020年3月25日
* 最后修订:2020年3月31日
* github开源地址:https://github.com/weishakeji/WebdeskUI
*/
(function (win) {
var login = function (param) {
if (param == null || typeof (param) != 'object') param = {};
this.attrs = {
target: '', //所在Html区域
width: '',
height: '',
title: '', //标题
ico: 'e77d', //图标的字体符号
icoimg: '', //图标的图片样式
company: '', //公司名称
website: '', //公司的网址
tel: '', //联系电话
user: '', //账号
pw: '', //密码
vcode: '', //验证码,输入的验证码
vcodelen: 4, //验证码长度
vcodebase64: '', //验证的图片base64编码
vcodemd5: '', //验证码的md5编码
id: '',
drag: false, //是否处于拖动状态
dragfinish: false, //拖动完成
success: false, //是否登录成功
loading: false //加载中
};
for (var t in param) this.attrs[t] = param[t];
eval($ctrl.attr_generate(this.attrs));
/* 自定义事件 */
//layout:布局完成; resize:改变大小;dragfinish:拖动完成; full:标签项全屏
eval($ctrl.event_generate(['layout', 'resize', 'dragfinish', 'change', 'vefiry', 'submit', 'success', 'error']));
//以下不支持双向绑定
this.dom = null; //控件的html对象
this.domtit = null; //控件标签栏部分的html对象
this.dombody = null;
this.domfoot = null;
this.customVerify = []; //自定义验证方法
//
if (!this._id) this._id = 'login_' + new Date().getTime();
$ctrls.add({
id: this.id,
obj: this,
dom: this.dom,
type: 'login'
});
};
var fn = login.prototype;
fn._initialization = function () {
if (!this._id) this._id = 'login_' + new Date().getTime();
后面还有 431 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
