提交 89f680ff 编写于 作者: D Devil

拖拽装修优化+表单滑动字段优化

上级 64ff7652
......@@ -18,7 +18,7 @@
<!-- 数据模式、拖拽默认则不展示轮播和聚合内容 -->
{{if !isset($floor_data_type) or $floor_data_type neq 2}}
<!-- banner -->
<!-- banner -->
{{include file="public/home_banner" /}}
<!-- 轮播上内容 -->
......
......@@ -382,7 +382,7 @@ class BaseLayout
public static function LayoutUrlValueHandle($type, $value)
{
// 当前客户端类型
$client_type = ApplicationClientType();
$client_type = APPLICATION_CLIENT_TYPE;
// url地址、默认空字符串
$url = '';
......
......@@ -593,4 +593,16 @@
bottom: 25px;
width: calc(100% - 50px);
background: #f8f8f8;
}
/**
* 布局保存
*/
.layout-operate-container .am-btn {
padding: 4px 10px;
}
@media only screen and (max-width: 1025px) {
.layout-operate-container {
margin-right: 10px;
}
}
\ No newline at end of file
/**
* 公共
*/
.layout-container [class*="am-u-"] {padding-left:0;padding-right:0;}
/**
* 布局基础
*/
......
......@@ -129,7 +129,7 @@ function GetFormVal(element, is_json)
});
object = ArrayTurnJson(tmp_all, object);
// input 复选框checkboox
// input 复选框checkbox
tmp_all = [];
i = 0;
$(element).find('input[type="checkbox"]').each(function(key, tmp)
......@@ -138,6 +138,7 @@ function GetFormVal(element, is_json)
{
if($(this).is(':checked'))
{
console.log(tmp);
if(tmp_all[tmp.name] == undefined)
{
tmp_all[tmp.name] = [];
......@@ -145,6 +146,12 @@ function GetFormVal(element, is_json)
}
tmp_all[tmp.name][i] = tmp.value;
i++;
} else {
// 滑动开关、未选中则0
if(typeof($(this).attr('data-am-switch')) != 'undefined')
{
tmp_all[tmp.name] = 0;
}
}
}
});
......
......@@ -183,16 +183,4 @@ text-align: center;float:none}
.floor .goods-list .goods-items { width: 50%; float: left; padding: 10px; border-bottom: 1px solid #eee; }
.floor .goods-list .goods-items:nth-of-type(2n + 1) { border-right: 1px solid #eee; }
.floor .goods-list .goods-items:nth-of-type(2n) { border-left: 1px solid transparent; }
}
/**
* 布局保存
*/
.layout-operate-container .am-btn {
padding: 4px 10px;
}
@media only screen and (max-width: 1025px) {
.layout-operate-container {
margin-right: 10px;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册