 
			function doLogin() {
				console.log('-----------');
				$.ajax({
					url: '/oauth2/doLogin',
					data: {
						name: $('[name=name]').val(),
						pwd: $('[name=pwd]').val()
					},
					dataType: 'json', 
					success: function(res) {
						if(res.code == 200) {
							layer.msg('登录成功！');
							setTimeout(function() {
								location.reload(true);
							}, 800);
						} else {
							layer.alert(res.msg);
						}
					},
					error: function(e) {
						console.log('error');
					}
				