优化登录注册问题

This commit is contained in:
java110 2020-03-11 22:55:03 +08:00
parent 7335fcb686
commit d974327f8c
7 changed files with 54 additions and 3 deletions

43
public/advertVedio.html Normal file
View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>广告屏</title>
<vc:create name="commonTop" location="head"></vc:create>
<link rel="stylesheet" href="/css/bootstrap/bootstrap.min.css" />
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet" />
<!-- Toastr style -->
<link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
<!-- Gritter -->
<link href="/js/plugins/gritter/jquery.gritter.css" rel="stylesheet" />
<link href="/css/plugins/select2/select2.min.css" rel="stylesheet">
<link href="/css/animate.css" rel="stylesheet" />
<link href="/css/style.css" rel="stylesheet" />
<link rel="stylesheet" href="/css/common.css" />
<link rel="stylesheet" href="/css/bootstrap/bootstrap-datetimepicker.min.css" />
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
<script src="/js/vue/vue.min.js"></script>
<script src="/js/vue/vue-resource.min.js"></script>
<script src="/js/bootstrap/jquery-3.3.1.min.js"></script>
<script src="/js/vue/vue.min.js"></script>
<script src="/js/vue/vue-resource.min.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap/bootstrap.min.js"></script>
<script src="/js/bootstrap/bootstrap-datetimepicker.js"></script>
<script src="/js/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="/js/plugins/select2/select2.full.min.js"></script>
<script src="/js/plugins/echart/echarts.min.js"></script>
<script src="/js/plugins/echart/china.js"></script>
</head>
<body>
<vc:create name="bodyTop"></vc:create>
<div id="component">
<vc:create name="advertVedioView"></vc:create>
</div>
<vc:create name="commonBottom" location="body"></vc:create>
</body>
</html>

View File

@ -16,7 +16,7 @@
<a href="#"><small>忘记密码?</small></a>
<p class="text-muted text-center"><small>Do not have an account?</small></p>
<a class="btn btn-sm btn-white btn-block" href="/user.html#/register">请注册</a>
<a class="btn btn-sm btn-white btn-block" href="javascript:void(0)" v-on:click="_doRegister()">请注册</a>
</div>
<vc:create name="initData"></vc:create>

View File

@ -98,6 +98,9 @@
vc.component.loginInfo.errorInfo = errInfo;
});
},
_doRegister:function(){
vc.jumpToPage('/user.html#/register')
}
},
_destroyedMethod: function () {

View File

@ -19,7 +19,7 @@
<button type="submit" v-on:click="doRegister()" class="btn btn-primary block full-width m-b">注册</button>
<p class="text-muted text-center"><small>已有账户?</small></p>
<a class="btn btn-sm btn-white btn-block" href="/user.html#/login">登录</a>
<a class="btn btn-sm btn-white btn-block" href="javascript:void(0)" v-on:click="_doLogin()" >登录</a>
</div>
</div>

View File

@ -157,6 +157,9 @@
vc.messageTips("*密码长度必须在6位至12位");
}
},
_doLogin:function(){
vc.jumpToPage('/user.html#/login');
}
}
});

View File

@ -25,7 +25,7 @@
return;
}
vc.jumpToPage("/admin.html#/advertVedioView?machineCode="
vc.jumpToPage("/advertVedio.html#/advertVedioView?machineCode="
+ vc.component.writeAdvertMachineInfo.machineCode
+ "&communityId=" + vc.getCurrentCommunity().communityId);
},

View File

@ -1324,3 +1324,5 @@
}
})(window.vcFramework);