|
|
@@ -12,7 +12,6 @@
|
|
|
<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">
|
|
|
@@ -42,13 +41,14 @@
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label">是否启用:</label>
|
|
|
- <div class="input-group col-sm-1">
|
|
|
- <input type="text" class="form-control" name="status" required="" aria-required="true"
|
|
|
- value="{$status}">
|
|
|
+ <div class="input-group col-sm-4">
|
|
|
+ <input type="radio" class="form-control" name="status" value="1" title="启用" {eq
|
|
|
+ name="status" value="1" }checked{/eq}>
|
|
|
+ <input type="radio" class="form-control" name="status" value="0" title="停用" {eq
|
|
|
+ name="status" value="0" }checked{/eq}>
|
|
|
</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">
|
|
|
@@ -63,6 +63,7 @@
|
|
|
</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>
|
|
|
@@ -71,65 +72,14 @@
|
|
|
<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);
|
|
|
- }
|
|
|
+<script type="text/javascript">
|
|
|
|
|
|
- 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"
|
|
|
+ layui.use(['form', 'upload'], function () {
|
|
|
+ var form = layui.form;
|
|
|
+ form.on('select(menu)', function (value) {
|
|
|
+ $("#p_id").val(value.value);
|
|
|
});
|
|
|
- }
|
|
|
-
|
|
|
- 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 = '';
|
|
|
|
|
|
@@ -155,7 +105,7 @@
|
|
|
}
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
- // 添加管理员
|
|
|
+ // 添加菜单
|
|
|
var options = {
|
|
|
beforeSubmit: showStart,
|
|
|
success: showSuccess
|