|
|
@@ -192,7 +192,7 @@
|
|
|
});
|
|
|
|
|
|
//第一个实例
|
|
|
- getData('news_check_list', 1, 0) //url,page,信息类型
|
|
|
+ getData('sightsee_check_list', 1, 0) //url,page,信息类型
|
|
|
|
|
|
//监听提交
|
|
|
form.on('submit(formDemo)', function (data) {
|
|
|
@@ -219,6 +219,7 @@
|
|
|
// , count: 30
|
|
|
, count: $('#totalPage').val()
|
|
|
, theme: '#2ca9f9'
|
|
|
+ , curr:page
|
|
|
, layout: ['prev', 'page', 'next', 'skip']
|
|
|
, jump: function (obj, first) {
|
|
|
if (!first) {
|
|
|
@@ -305,7 +306,8 @@
|
|
|
layer.close(index);
|
|
|
// parent.layer.msg("操作成功!", {time: 1000}, function () {
|
|
|
//重新加载父页面
|
|
|
- location.reload();
|
|
|
+ // location.reload();
|
|
|
+ getData('sightsee_check_list', $('.layui-laypage-curr em').eq(1).html(), $('.permission .active').data('type'))
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -327,7 +329,8 @@
|
|
|
dataType: 'json',
|
|
|
success: function (data) {
|
|
|
if (data) {
|
|
|
- location.reload();
|
|
|
+ // location.reload();
|
|
|
+ getData('sightsee_check_list', $('.layui-laypage-curr em').eq(1).html(), $('.permission .active').data('type'))
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -348,17 +351,18 @@
|
|
|
content: '<div class="table"></div>',
|
|
|
success: function(layero, index) {
|
|
|
$.ajax({
|
|
|
- url: 'garden_check',
|
|
|
+ url: 'sightsee_check_list',
|
|
|
type: 'post',
|
|
|
async: false,
|
|
|
data: {
|
|
|
- ids: id,
|
|
|
+ id: id,
|
|
|
+ req: 'edit',
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
success: function (data) {
|
|
|
- window.data = data[0]
|
|
|
- var html = '<div><p>景点导览图</p><img src="127.0.0.1:8000/'+window.data.img+'"/></div>'
|
|
|
- layero.find('.table').html(window.data.content)
|
|
|
+ window.data = data
|
|
|
+ var html = '<div><p style="line-height: 14px;padding-left: 10px;border-left: 3px solid #23a3ee;">景点导览图</p><img src="127.0.0.1:8000/'+window.data.guide_img+'"/></div>'
|
|
|
+ layero.find('.table').html('<p style="line-height: 14px;padding-left: 10px;border-left: 3px solid #23a3ee;">详细介绍</p>'+window.data.content)
|
|
|
layero.find('.table').append(html)
|
|
|
}
|
|
|
})
|
|
|
@@ -406,7 +410,7 @@
|
|
|
// alert(type)
|
|
|
$('.permission button').removeClass('active');
|
|
|
$(this).addClass('active');
|
|
|
- getData('news_check_list', 1, type)
|
|
|
+ getData('sightsee_check_list', 1, type)
|
|
|
}
|
|
|
})
|
|
|
|