Web/js/Login/LoginWin.js

(开头部分) 2KB

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


LoginWin = Ext.extend(Ext.Window, {
	id:'LoginWin',
	title : '小妖的金色城堡--聊天室--登入',
	width : 265,
	height : 140,
	closable : false,
	collapsible : true,
	defaults : {
		border : false
	},
	buttonAlign : 'center',
	createFormPanel : function() {
		return new Ext.form.FormPanel({
			bodyStyle : 'padding-top:6px',
			defaultType : 'textfield',
			labelAlign : 'right',
			labelWidth : 55,
			labelPad : 0,
			frame : true,
			defaults : {
				allowBlank : false,
				width : 158,
				selectOnFocus : true
			},
			items : [{
						name : 'userNamel',
						fieldLabel : '帐号',
						blankText : '帐号不能为空'
					}, {
						name : 'passwordl',
						fieldLabel : '密码',
						blankText : '密码不能为空',
						inputType : 'password'
					}]
		});
	},
	login : function() {
		var userNamel = this.fp.form.findField("userNamel").getValue();
		var passwordl = this.fp.form.findField("passwordl").getValue();
		
		if (userNamel == null || userNamel == '') {
			this.fp.form.findField("userNamel").markInvalid("用户名不能为空!");
			return;
		}
		if (passwordl == null || passwordl == '') {
			this.fp.form.findField("passwordl").markInvalid("密码不能为空!");
			return;
		}
		this.fp.form.submit({
			waitTitle : '请稍候',
			waitMsg : '正在登录.......',
			url : 'login.aspx',
			method : 'POST',
			params : {
				userNamell : userNamel,
				passwordll : passwordl
			},
			success : function(form, action) {
				Ext.getCmp("LoginWin").close();
后面还有 32 行代码,购买后查看完整代码

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

AI 解读 AI

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

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