Web/obj/Release/Package/PackageTmp/JS/userlogin.js

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

Ext.onReady(function () {
    /**定义提示信息**/
    Ext.QuickTips.init();
    //TextField的提示方式为:在右边缘
    Ext.form.Field.prototype.msgTarget = 'side'
    //创建验证码图片
    Ext.define("yzmfield", {
        extend: 'Ext.form.field.Text',
        inputTyle: 'codefield',
        codeUrl: "../userlogin/ValidateCode",
        isLoader: true,
        onRender: function (ct, position) {
            this.callParent(arguments);
            this.codeEl = ct.createChild({ tag: 'img', src: "userlogin/ValidateCode" });
            this.codeEl.addCls('x-form-code');
            this.codeEl.on('click', this.loadCodeImg, this);
            if (this.isLoader)
                this.loadCodeImg();
        },
        alignErrorIcon: function () {
            this.errorIcon.alignTo(this.codeEl, 'tl-tr', [2, 0]);
        },
        loadCodeImg: function () {
            this.codeEl.set({ src: this.codeUrl + '?id=' + Math.random() });

        }

    });
    //创建验证码
    var yzm = Ext.create('yzmfield', {
        fieldLabel: '验证码',
        name: 'yzm',
        id: 'CheckCode',
        isLoader: true,
        codeUrl: "../userlogin/ValidateCode",
        labelWidth: 60,
        labelAlign: 'right',
        allowBlank: false,
        blankText: "验证码不能为空",
        width: 140,
        height: 30
    });
    /**定义登录form窗体**/
    var loginform = Ext.create("Ext.form.Panel", {
        layout: 'column',
        frame: true,
        border: false,
        items: [{
            columnWidth: 0.4,
            items: [{
                html: '<img src="../images/login.jpg" width="200" height="220"/>'
            }]
        }, {
            columnWidth: 0.6,
            frame: true,
            border: false,
            defaults: {
                xtype: 'textfield'
            },
            items: [{
后面还有 72 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。