记得上下班打卡 | git大法好,push需谨慎

Commit a0a59e79 authored by sangchunxi's avatar sangchunxi

#1963 新建学校 modal 样式问题 确认修复

parent a0fd2256
...@@ -22,12 +22,30 @@ ...@@ -22,12 +22,30 @@
margin: 0; margin: 0;
margin-right: 2px; margin-right: 2px;
} }
#addClassify .selectClassify .ibox-content {
width: 100%;
}
/* 新建学校 modal 校名 */
#addClassify .selectClassify .ibox-content .schoolName {
width: 100%;
height: 34px;
border: 1px solid #dfdfdf;
margin-bottom: 20px;
}
/* 详细地址 */
#addClassify .selectClassify .ibox-content .schoolAdress {
width: 100%;
height: 34px;
border: 1px solid #dfdfdf;
margin-top: 20px;
}
/* 低部按钮 */
#addClassify .bottomBtn {
padding: 0 0 20px 42px;
}
.layui-layer-shade{ .layui-layer-shade{
opacity: 30%; opacity: 30%;
} }
.picker{
height: 300px;
}
</style> </style>
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
...@@ -58,6 +76,7 @@ ...@@ -58,6 +76,7 @@
<div class="col-sm-12 select-table table-bordered"> <div class="col-sm-12 select-table table-bordered">
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>
</div> </div>
<!-- 添加学校 modal -->
<div id="addClassify"> <div id="addClassify">
<div class="selectClassify"> <div class="selectClassify">
<div class="ibox-content"> <div class="ibox-content">
...@@ -133,6 +152,8 @@ ...@@ -133,6 +152,8 @@
function closeModal () { function closeModal () {
$(".layui-layer-close1").click(); $(".layui-layer-close1").click();
} }
// 新建学校 click
$("#button-open-10").click(function(){ $("#button-open-10").click(function(){
$(".schoolName").val(''); $(".schoolName").val('');
$(".schoolAdress").val(''); $(".schoolAdress").val('');
...@@ -147,6 +168,7 @@ ...@@ -147,6 +168,7 @@
var $picker = $( ".picker" ); var $picker = $( ".picker" );
$.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) { $.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) {
$( "#demo-1" ).iPicker({ $( "#demo-1" ).iPicker({
width: 146,
data: JSON.parse(res.msg), data: JSON.parse(res.msg),
// defaultValue: [ "230000", "230800", "230805" ], // defaultValue: [ "230000", "230800", "230805" ],
onSelect: function ( v, t, set ) { onSelect: function ( v, t, set ) {
...@@ -207,6 +229,8 @@ ...@@ -207,6 +229,8 @@
}) })
}); });
} }
// 编辑学校
function edit(id) { function edit(id) {
layer.open({ layer.open({
type: 1, type: 1,
...@@ -225,6 +249,7 @@ ...@@ -225,6 +249,7 @@
$.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) { $.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) {
console.log(JSON.parse(res.msg)) console.log(JSON.parse(res.msg))
$( "#demo-1" ).iPicker({ $( "#demo-1" ).iPicker({
width: 146,
data: JSON.parse(res.msg), data: JSON.parse(res.msg),
defaultValue: [e.data.provinceId, e.data.cityId, e.data.areaId], defaultValue: [e.data.provinceId, e.data.cityId, e.data.areaId],
onSelect: function ( v, t, set ) { onSelect: function ( v, t, set ) {
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
}, },
success:function(e) { success:function(e) {
let { data } = e; let { data } = e;
console.log(data, 'data') console.log('data', data)
$('.detail_title span').text(data.title); $('.detail_title span').text(data.title);
$('.detail_img img').attr('src', data.imgPoster); $('.detail_img img').attr('src', data.imgPoster);
$('.detail_time').text(data.timeStart + '-' + data.timeEnd); $('.detail_time').text(data.timeStart + '-' + data.timeEnd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment