拖拽装修优化+表单滑动字段优化
parent
64ff7652bf
commit
89f680ffdd
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<!-- 数据模式、拖拽默认则不展示轮播和聚合内容 -->
|
<!-- 数据模式、拖拽默认则不展示轮播和聚合内容 -->
|
||||||
{{if !isset($floor_data_type) or $floor_data_type neq 2}}
|
{{if !isset($floor_data_type) or $floor_data_type neq 2}}
|
||||||
<!-- banner -->
|
<!-- banner -->
|
||||||
{{include file="public/home_banner" /}}
|
{{include file="public/home_banner" /}}
|
||||||
|
|
||||||
<!-- 轮播上内容 -->
|
<!-- 轮播上内容 -->
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ class BaseLayout
|
||||||
public static function LayoutUrlValueHandle($type, $value)
|
public static function LayoutUrlValueHandle($type, $value)
|
||||||
{
|
{
|
||||||
// 当前客户端类型
|
// 当前客户端类型
|
||||||
$client_type = ApplicationClientType();
|
$client_type = APPLICATION_CLIENT_TYPE;
|
||||||
|
|
||||||
// url地址、默认空字符串
|
// url地址、默认空字符串
|
||||||
$url = '';
|
$url = '';
|
||||||
|
|
|
||||||
|
|
@ -594,3 +594,15 @@
|
||||||
width: calc(100% - 50px);
|
width: calc(100% - 50px);
|
||||||
background: #f8f8f8;
|
background: #f8f8f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 布局保存
|
||||||
|
*/
|
||||||
|
.layout-operate-container .am-btn {
|
||||||
|
padding: 4px 10px;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 1025px) {
|
||||||
|
.layout-operate-container {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
/**
|
||||||
|
* 公共
|
||||||
|
*/
|
||||||
|
.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);
|
object = ArrayTurnJson(tmp_all, object);
|
||||||
|
|
||||||
// input 复选框checkboox
|
// input 复选框checkbox
|
||||||
tmp_all = [];
|
tmp_all = [];
|
||||||
i = 0;
|
i = 0;
|
||||||
$(element).find('input[type="checkbox"]').each(function(key, tmp)
|
$(element).find('input[type="checkbox"]').each(function(key, tmp)
|
||||||
|
|
@ -138,6 +138,7 @@ function GetFormVal(element, is_json)
|
||||||
{
|
{
|
||||||
if($(this).is(':checked'))
|
if($(this).is(':checked'))
|
||||||
{
|
{
|
||||||
|
console.log(tmp);
|
||||||
if(tmp_all[tmp.name] == undefined)
|
if(tmp_all[tmp.name] == undefined)
|
||||||
{
|
{
|
||||||
tmp_all[tmp.name] = [];
|
tmp_all[tmp.name] = [];
|
||||||
|
|
@ -145,6 +146,12 @@ function GetFormVal(element, is_json)
|
||||||
}
|
}
|
||||||
tmp_all[tmp.name][i] = tmp.value;
|
tmp_all[tmp.name][i] = tmp.value;
|
||||||
i++;
|
i++;
|
||||||
|
} else {
|
||||||
|
// 滑动开关、未选中则0
|
||||||
|
if(typeof($(this).attr('data-am-switch')) != 'undefined')
|
||||||
|
{
|
||||||
|
tmp_all[tmp.name] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -184,15 +184,3 @@ text-align: center;float:none}
|
||||||
.floor .goods-list .goods-items:nth-of-type(2n + 1) { border-right: 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; }
|
.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue