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

feat/task1-c-wallet
Devil 2021-06-24 00:33:04 +08:00
parent 64ff7652bf
commit 89f680ffdd
6 changed files with 27 additions and 15 deletions

View File

@ -18,7 +18,7 @@
<!-- 数据模式、拖拽默认则不展示轮播和聚合内容 -->
{{if !isset($floor_data_type) or $floor_data_type neq 2}}
<!-- banner -->
<!-- banner -->
{{include file="public/home_banner" /}}
<!-- 轮播上内容 -->

View File

@ -382,7 +382,7 @@ class BaseLayout
public static function LayoutUrlValueHandle($type, $value)
{
// 当前客户端类型
$client_type = ApplicationClientType();
$client_type = APPLICATION_CLIENT_TYPE;
// url地址、默认空字符串
$url = '';

View File

@ -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;
}
}

View File

@ -1,3 +1,8 @@
/**
*
*/
.layout-container [class*="am-u-"] {padding-left:0;padding-right:0;}
/**
*
*/

View File

@ -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;
}
}
}
});

View File

@ -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;
}
}