Commit cf718b46 by 胡悦

修改账户类型样式

1 parent 5740bd1e
......@@ -334,7 +334,7 @@
</div> -->
<div class="layui-form-item">
<label class="layui-form-label required">账户类型:</label>
<div class="layui-input-inline w-70" id="accountTypeEl"></div>
<div class="layui-input-inline" style="width: calc(100% - 200px)" id="accountTypeEl"></div>
</div>
</div>
<div class="edit-box clearfix">
......@@ -494,7 +494,8 @@
<label class="layui-form-label">主营品牌:</label>
<div class="layui-input-inline" style="position: relative;">
<input class="layui-input" placeholder="车型品牌" id="brand" />
<button id="checkCarBrand" type="button" class="layui-btn btn-no-border check-carbrand">全选</button>
<button id="checkCarBrand" type="button"
class="layui-btn btn-no-border check-carbrand">全选</button>
<div id="carBrandTree" class="hide" style="height: 200px; overflow-y: scroll"></div>
<div id="noCarbrand" class="no-car hide">暂无数据</div>
</div>
......@@ -551,8 +552,9 @@
</div>
<script src="https://img02.glsx.com.cn/layui/layui.js"></script>
<script src="/js/load.js"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=44cc16e43ad7ed3358df507bd0618181&plugin=AMap.Geocoder&plugin=AMap.PlaceSearch&plugin=AMap.Geolocation">
</script>
<script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=44cc16e43ad7ed3358df507bd0618181&plugin=AMap.Geocoder&plugin=AMap.PlaceSearch&plugin=AMap.Geolocation">
</script>
<script src="/js/validator.js"></script>
<script>
layui.use(['gtree', 'request', 'helper', 'layer', 'laydate', 'element', 'xmSelect', 'laytpl', 'validator', 'util', 'common'], function () {
......@@ -817,7 +819,7 @@
focusElem.css(verifyType == 'radio' ? { color: '' } : { 'border-color': '' })
})
.focus()
console.log(222);
console.log(222);
return '必填项不能为空'
}
}
......@@ -943,7 +945,7 @@
let getCheckedNodes = treeObj.getCheckedNodes(true)
const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id)
console.log(getCheckedKeys)
getCheckedNodes = getCheckedNodes.filter(item=>item.children)
getCheckedNodes = getCheckedNodes.filter(item => item.children)
merchantForm.merchantBrandList = getCheckedNodes.map(car => {
let merchantBrandId = []
car.children.forEach(item => {
......@@ -1044,7 +1046,7 @@
layer.open({
title: '提示',
content: '您选择的地址错误,请重新选择'
});
});
return
}
}
......@@ -1128,14 +1130,14 @@
var checkAll = false
var checkCarBrand = $('#checkCarBrand')
// 主营品牌全选
checkCarBrand.on('click', function() {
checkCarBrand.on('click', function () {
checkAll = !checkAll
treeObj.checkAllNodes(checkAll)
if (checkAll) {
checkCarBrand.html('全不选')
} else {
checkCarBrand.html('全选')
}
if (checkAll) {
checkCarBrand.html('全不选')
} else {
checkCarBrand.html('全选')
}
})
// tab 点击事件
......@@ -1474,8 +1476,8 @@
var city = cityInfo.find(item => item.cityName == value)
merchantForm.cityCode = city.cityId
$('#addrEl').val('')
}
}
}
})
var city = cityInfo.find(item => item.name.indexOf(merchantForm.cityName) != -1)
merchantForm.cityName = city.name
......@@ -1509,7 +1511,7 @@
var checkedList = []
if (editLevel == 3 && merchantForm.merchantBrandMain) {
// checkedList = merchantForm.merchantBrandMain.split(',')
checkedList = merchantForm.merchantBrandMain.replaceAll(';',',').split(',')
checkedList = merchantForm.merchantBrandMain.replaceAll(';', ',').split(',')
$.each(checkedList, function (index, item) {
checkedList[index] = parseInt(item)
})
......@@ -1698,8 +1700,8 @@
})
}
// 省市区
function getProvinceList() {
// 省市区
function getProvinceList() {
// var ajax = layui.$.ajax
// ajax({
// // url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!