This commit is contained in:
1098226878@qq.com 2022-01-14 18:03:08 +08:00
commit a49fb008c5
8 changed files with 37 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 KiB

After

Width:  |  Height:  |  Size: 716 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,40 +1,40 @@
(function (vc) {
(function(vc) {
vc.extends({
data: {
loginInfo: {
logo: '',
username: '',
passwd: '',
username: 'wuxw',
passwd: 'admin',
validateCode: '',
errorInfo: ''
}
},
_initMethod: function () {
_initMethod: function() {
vc.component.clearCacheData();
vc.component._loadSysInfo();
},
_initEvent: function () {
vc.component.$on('errorInfoEvent', function (_errorInfo) {
_initEvent: function() {
vc.component.$on('errorInfoEvent', function(_errorInfo) {
vc.component.loginInfo.errorInfo = _errorInfo;
console.log('errorInfoEvent 事件被监听', _errorInfo)
});
vc.component.$on('validate_code_component_param_change_event', function (params) {
vc.component.$on('validate_code_component_param_change_event', function(params) {
for (var tmpAttr in params) {
vc.component.loginInfo[tmpAttr] = params[tmpAttr];
}
console.log('errorInfoEvent 事件被监听', params)
});
vc.on('login', 'doLogin', function () {
vc.on('login', 'doLogin', function() {
vc.component.doLogin();
})
},
methods: {
clearCacheData: function () {
clearCacheData: function() {
vc.clearCacheData();
},
_loadSysInfo: function () {
_loadSysInfo: function() {
var param = {
params: {
sys: 'HC'
@ -44,7 +44,7 @@
'login',
'getSysInfo',
param,
function (json, res) {
function(json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status != 200) {
console.log("加载系统信息失败");
@ -56,14 +56,14 @@
//保存到浏览器
vc.saveData("_sysInfo", JSON.parse(json));
},
function (errInfo, error) {
function(errInfo, error) {
console.log('请求失败处理');
vc.saveData("_sysInfo", { logo: 'HC' });
vc.copyObject(json, vc.component.loginInfo);
vc.component.loginInfo.errorInfo = errInfo;
});
},
doLogin: function () {
doLogin: function() {
if (!vc.notNull(vc.component.loginInfo.username)) {
vc.toast('用户名不能为空');
return;
@ -79,11 +79,10 @@
vc.http.post(
'login',
'doLogin?version=2.0',
JSON.stringify(vc.component.loginInfo),
{
JSON.stringify(vc.component.loginInfo), {
emulateJSON: true
},
function (json, res) {
function(json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _data = JSON.parse(json);
if (_data.hasOwnProperty('code') && _data.code != '0') {
@ -99,18 +98,18 @@
vc.toast(json);
vc.component.loginInfo.errorInfo = json;
},
function (errInfo, error) {
function(errInfo, error) {
console.log('请求失败处理');
vc.toast(errInfo);
vc.component.loginInfo.errorInfo = errInfo;
});
},
_doRegister: function () {
_doRegister: function() {
vc.jumpToPage('/user.html#/pages/frame/register');
}
},
_destroyedMethod: function () {
_destroyedMethod: function() {
console.log("登录页面销毁调用");
}
});

View File

@ -4,9 +4,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>HC智慧物业管理系统</title>
<title>HC小区管理系统</title>
<vc:create path="frame/commonTop" location="head"></vc:create>
<vc:create path="frame/commonTop" location="head"></vc:create>
<link rel="stylesheet" href="/layui/css/layui.css?time=1">
<link rel="stylesheet" href="/css/vc-ui.css?time=1" />
@ -16,16 +16,16 @@
<body>
<div class="layui-carousel video_mask" id="login_carousel">
<vc:create path="frame/bodyTop" ></vc:create>
<vc:create path="frame/bodyTop"></vc:create>
<div carousel-item>
<div class="carousel_div1"></div>
<div class="carousel_div2"></div>
<div class="carousel_div3"></div>
</div>
<div class="login layui-anim layui-anim-up">
<div class="login layui-anim layui-anim-up">
<div class="layui-logo">
<a href="#" target="_blank"><img src="img/logo.png" width="300px" height="80px;"/></a>
<a href="#" target="_blank"><img src="img/logo.png" width="300px" height="80px;" /></a>
</div>
<fieldset class="layui-elem-field layui-field-title">
<legend class="text-white">
@ -38,7 +38,7 @@
<hr class="layui-bg-gray">
<div class="layui-footer text-white">
<!-- 底部固定区域 -->
&copy;2020-2023
&copy;2020-2023
<vc:i18n name="companyTeam"></vc:i18n>
</div>
</div>
@ -48,7 +48,7 @@
<script type="text/javascript" src="/layui/layui.all.js"></script>
<script src="/vcCore/vc-zh.js"></script>
<script src="/vcCore/vcFramework.js"></script>
<script type="text/javascript">
var layer = layui.layer,
form = layui.form,

View File

@ -1,20 +1,20 @@
/**
* 英文包
*/
(function (window) {
(function(window) {
window.lang = {
"systemName": "HC智慧物业管理系统",
"systemName": "HC小区管理系统",
"systemSimpleName": "HC",
"subSystemName": "HC智慧物业管理系统",
"companyTeam": "java110研发团队",
"welcome": "欢迎访问HC智慧物业管理系统",
"subSystemName": "小区管理系统",
"companyTeam": "java110团队",
"welcome": "欢迎访问HC小区管理系统",
"signOut": "退出",
"signIn":"登录",
"register":"注册",
"moreCommunity":"更多小区",
"moreMsg":"查看全部消息",
"title":"HC智慧物业管理系统",
"noAccount":"还没有账号? ",
"areyouhasaccount":"已经有账户了?"
"signIn": "登录",
"register": "注册",
"moreCommunity": "更多小区",
"moreMsg": "查看全部消息",
"title": "HC小区管理系统",
"noAccount": "还没有账号? ",
"areyouhasaccount": "已经有账户了?"
}
})(window)