|
|
@@ -0,0 +1,146 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>编辑管理员</title>
|
|
|
+ <link rel="shortcut icon" href="favicon.ico">
|
|
|
+ <link href="__CSS__/bootstrap.min.css?v=3.3.6" rel="stylesheet">
|
|
|
+ <link href="__CSS__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
|
|
|
+ <link href="__CSS__/animate.min.css" rel="stylesheet">
|
|
|
+ <link href="__JS__/layui/css/layui.css" rel="stylesheet">
|
|
|
+ <link href="__CSS__/style.min.css?v=4.1.0" rel="stylesheet">
|
|
|
+</head>
|
|
|
+<body class="gray-bg">
|
|
|
+
|
|
|
+<div class="wrapper wrapper-content animated fadeInRight">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-8">
|
|
|
+ <div class="ibox float-e-margins">
|
|
|
+ <div class="ibox-title">
|
|
|
+ <h5>验证平台设置</h5>
|
|
|
+ </div>
|
|
|
+ <div class="ibox-content">
|
|
|
+ <form class="form-horizontal m-t layui-form" id="commentForm" method="post" action="{:url('system/platform')}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label">绑定地址:</label>
|
|
|
+ <div class="input-group col-sm-4">
|
|
|
+ <input type="text" class="form-control" name="urlToken" required="" aria-required="true" value="{$urlToken}">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label">验证地址:</label>
|
|
|
+ <div class="input-group col-sm-4">
|
|
|
+ <input type="text" class="form-control" name="urlToken" required="" aria-required="true" value="{$urlToken}">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group" style="margin-top: 40px;">
|
|
|
+ <label class="col-sm-3 control-label"></label>
|
|
|
+ <div class="input-group col-sm-4">
|
|
|
+ <button class="btn btn-primary btn-sm" type="submit">提交</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<script src="__JS__/jquery.min.js?v=2.1.4"></script>
|
|
|
+<script src="__JS__/bootstrap.min.js?v=3.3.6"></script>
|
|
|
+<script src="__JS__/content.min.js?v=1.0.0"></script>
|
|
|
+<script src="__JS__/plugins/validate/jquery.validate.min.js"></script>
|
|
|
+<script src="__JS__/plugins/validate/messages_zh.min.js"></script>
|
|
|
+<script src="__JS__/plugins/layer/layer.min.js"></script>
|
|
|
+<script src="__JS__/layui/layui.js"></script>
|
|
|
+<script src="__JS__/jquery.form.js"></script>
|
|
|
+<script src="/static/customer/js/md5.js"></script>
|
|
|
+<script>
|
|
|
+ function checkImage() {
|
|
|
+ $("#all_blank_img").css({"z-index": "19991015", "background-color": "rgb(0, 0, 0)", "opacity": "0.3", "display": "block"});
|
|
|
+ $("#check_image").css({"z-index": "19991016", "top": "40px", "left": "170px", "width": "70vw", "display": "block"});
|
|
|
+ }
|
|
|
+ function closeCheckImage() {
|
|
|
+ $("#all_blank_img").css({"display": "none"});
|
|
|
+ $("#check_image").css({"display": "none"});
|
|
|
+ }
|
|
|
+ function onCheckImage(path) {
|
|
|
+ $("#all_blank_img").css({"display": "none"});
|
|
|
+ $("#check_image").css({"display": "none"});
|
|
|
+ $("#ChoiceImg").attr('src',path);
|
|
|
+ $("#advertisement_img").val(path);
|
|
|
+ }
|
|
|
+
|
|
|
+ function checkImg() {
|
|
|
+ $("#all_blank").css({"z-index": "19991015", "background-color": "rgb(0, 0, 0)", "opacity": "0.3", "display": "block"});
|
|
|
+ $("#check_img").css({"z-index": "19991016", "top": "40px", "left": "170px", "width": "70vw", "display": "block"});
|
|
|
+ }
|
|
|
+ function closeCheckImg() {
|
|
|
+ $("#all_blank").css({"display": "none"});
|
|
|
+ $("#check_img").css({"display": "none"});
|
|
|
+ }
|
|
|
+ function onCheckImg(path) {
|
|
|
+ $("#all_blank").css({"display": "none"});
|
|
|
+ $("#check_img").css({"display": "none"});
|
|
|
+ $("#onChoiceImg").attr('src',path);
|
|
|
+ $("#logo_img").val(path);
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+ var index = '';
|
|
|
+ function showStart(){
|
|
|
+ index = layer.load(0, {shade: false});
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ function showSuccess(res){
|
|
|
+
|
|
|
+ layer.ready(function(){
|
|
|
+ layer.close(index);
|
|
|
+ if(1 == res.code){
|
|
|
+ layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
+ window.location.href = res.data;
|
|
|
+ });
|
|
|
+ }else if(111 == res.code){
|
|
|
+ window.location.reload();
|
|
|
+ }else{
|
|
|
+ layer.msg(res.msg, {anim: 6});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ $(document).ready(function(){
|
|
|
+ // 添加管理员
|
|
|
+ var options = {
|
|
|
+ beforeSubmit:showStart,
|
|
|
+ success:showSuccess
|
|
|
+ };
|
|
|
+
|
|
|
+ $('#commentForm').submit(function(){
|
|
|
+ $(this).ajaxSubmit(options);
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // 表单验证
|
|
|
+ $.validator.setDefaults({
|
|
|
+ highlight: function(e) {
|
|
|
+ $(e).closest(".form-group").removeClass("has-success").addClass("has-error")
|
|
|
+ },
|
|
|
+ success: function(e) {
|
|
|
+ e.closest(".form-group").removeClass("has-error").addClass("has-success")
|
|
|
+ },
|
|
|
+ errorElement: "span",
|
|
|
+ errorPlacement: function(e, r) {
|
|
|
+ e.appendTo(r.is(":radio") || r.is(":checkbox") ? r.parent().parent().parent() : r.parent())
|
|
|
+ },
|
|
|
+ errorClass: "help-block m-b-none",
|
|
|
+ validClass: "help-block m-b-none"
|
|
|
+ });
|
|
|
+
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|