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

Commit a0a59e79 authored by sangchunxi's avatar sangchunxi

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

parent a0fd2256
......@@ -22,12 +22,30 @@
margin: 0;
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{
opacity: 30%;
}
.picker{
height: 300px;
}
</style>
</head>
<body class="gray-bg">
......@@ -58,6 +76,7 @@
<div class="col-sm-12 select-table table-bordered">
<table id="bootstrap-table"></table>
</div>
<!-- 添加学校 modal -->
<div id="addClassify">
<div class="selectClassify">
<div class="ibox-content">
......@@ -133,6 +152,8 @@
function closeModal () {
$(".layui-layer-close1").click();
}
// 新建学校 click
$("#button-open-10").click(function(){
$(".schoolName").val('');
$(".schoolAdress").val('');
......@@ -147,6 +168,7 @@
var $picker = $( ".picker" );
$.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) {
$( "#demo-1" ).iPicker({
width: 146,
data: JSON.parse(res.msg),
// defaultValue: [ "230000", "230800", "230805" ],
onSelect: function ( v, t, set ) {
......@@ -207,6 +229,8 @@
})
});
}
// 编辑学校
function edit(id) {
layer.open({
type: 1,
......@@ -225,6 +249,7 @@
$.getJSON( ctx + 'smile/user/getAreaJson' ).done(function ( res ) {
console.log(JSON.parse(res.msg))
$( "#demo-1" ).iPicker({
width: 146,
data: JSON.parse(res.msg),
defaultValue: [e.data.provinceId, e.data.cityId, e.data.areaId],
onSelect: function ( v, t, set ) {
......
......@@ -43,7 +43,7 @@
},
success:function(e) {
let { data } = e;
console.log(data, 'data')
console.log('data', data)
$('.detail_title span').text(data.title);
$('.detail_img img').attr('src', data.imgPoster);
$('.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