Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf718b46
authored
Apr 20, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改账户类型样式
1 parent
5740bd1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
cf718b4
...
@@ -334,7 +334,7 @@
...
@@ -334,7 +334,7 @@
</div> -->
</div> -->
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
账户类型:
</label>
<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>
</div>
<div
class=
"edit-box clearfix"
>
<div
class=
"edit-box clearfix"
>
...
@@ -494,7 +494,8 @@
...
@@ -494,7 +494,8 @@
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<div
class=
"layui-input-inline"
style=
"position: relative;"
>
<div
class=
"layui-input-inline"
style=
"position: relative;"
>
<input
class=
"layui-input"
placeholder=
"车型品牌"
id=
"brand"
/>
<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=
"carBrandTree"
class=
"hide"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"noCarbrand"
class=
"no-car hide"
>
暂无数据
</div>
<div
id=
"noCarbrand"
class=
"no-car hide"
>
暂无数据
</div>
</div>
</div>
...
@@ -551,8 +552,9 @@
...
@@ -551,8 +552,9 @@
</div>
</div>
<script
src=
"https://img02.glsx.com.cn/layui/layui.js"
></script>
<script
src=
"https://img02.glsx.com.cn/layui/layui.js"
></script>
<script
src=
"/js/load.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
type=
"text/javascript"
</script>
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
src=
"/js/validator.js"
></script>
<script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'layer'
,
'laydate'
,
'element'
,
'xmSelect'
,
'laytpl'
,
'validator'
,
'util'
,
'common'
],
function
()
{
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'layer'
,
'laydate'
,
'element'
,
'xmSelect'
,
'laytpl'
,
'validator'
,
'util'
,
'common'
],
function
()
{
...
@@ -817,7 +819,7 @@
...
@@ -817,7 +819,7 @@
focusElem
.
css
(
verifyType
==
'radio'
?
{
color
:
''
}
:
{
'border-color'
:
''
})
focusElem
.
css
(
verifyType
==
'radio'
?
{
color
:
''
}
:
{
'border-color'
:
''
})
})
})
.
focus
()
.
focus
()
console
.
log
(
222
);
console
.
log
(
222
);
return
'必填项不能为空'
return
'必填项不能为空'
}
}
}
}
...
@@ -943,7 +945,7 @@
...
@@ -943,7 +945,7 @@
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
console
.
log
(
getCheckedKeys
)
console
.
log
(
getCheckedKeys
)
getCheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
getCheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
let
merchantBrandId
=
[]
let
merchantBrandId
=
[]
car
.
children
.
forEach
(
item
=>
{
car
.
children
.
forEach
(
item
=>
{
...
@@ -1044,7 +1046,7 @@
...
@@ -1044,7 +1046,7 @@
layer
.
open
({
layer
.
open
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'您选择的地址错误,请重新选择'
content
:
'您选择的地址错误,请重新选择'
});
});
return
return
}
}
}
}
...
@@ -1128,14 +1130,14 @@
...
@@ -1128,14 +1130,14 @@
var
checkAll
=
false
var
checkAll
=
false
var
checkCarBrand
=
$
(
'#checkCarBrand'
)
var
checkCarBrand
=
$
(
'#checkCarBrand'
)
// 主营品牌全选
// 主营品牌全选
checkCarBrand
.
on
(
'click'
,
function
()
{
checkCarBrand
.
on
(
'click'
,
function
()
{
checkAll
=
!
checkAll
checkAll
=
!
checkAll
treeObj
.
checkAllNodes
(
checkAll
)
treeObj
.
checkAllNodes
(
checkAll
)
if
(
checkAll
)
{
if
(
checkAll
)
{
checkCarBrand
.
html
(
'全不选'
)
checkCarBrand
.
html
(
'全不选'
)
}
else
{
}
else
{
checkCarBrand
.
html
(
'全选'
)
checkCarBrand
.
html
(
'全选'
)
}
}
})
})
// tab 点击事件
// tab 点击事件
...
@@ -1474,8 +1476,8 @@
...
@@ -1474,8 +1476,8 @@
var
city
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
var
city
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
merchantForm
.
cityCode
=
city
.
cityId
merchantForm
.
cityCode
=
city
.
cityId
$
(
'#addrEl'
).
val
(
''
)
$
(
'#addrEl'
).
val
(
''
)
}
}
}
}
})
})
var
city
=
cityInfo
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
cityName
)
!=
-
1
)
var
city
=
cityInfo
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
cityName
)
!=
-
1
)
merchantForm
.
cityName
=
city
.
name
merchantForm
.
cityName
=
city
.
name
...
@@ -1509,7 +1511,7 @@
...
@@ -1509,7 +1511,7 @@
var
checkedList
=
[]
var
checkedList
=
[]
if
(
editLevel
==
3
&&
merchantForm
.
merchantBrandMain
)
{
if
(
editLevel
==
3
&&
merchantForm
.
merchantBrandMain
)
{
// checkedList = merchantForm.merchantBrandMain.split(',')
// checkedList = merchantForm.merchantBrandMain.split(',')
checkedList
=
merchantForm
.
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
checkedList
=
merchantForm
.
merchantBrandMain
.
replaceAll
(
';'
,
','
).
split
(
','
)
$
.
each
(
checkedList
,
function
(
index
,
item
)
{
$
.
each
(
checkedList
,
function
(
index
,
item
)
{
checkedList
[
index
]
=
parseInt
(
item
)
checkedList
[
index
]
=
parseInt
(
item
)
})
})
...
@@ -1698,8 +1700,8 @@
...
@@ -1698,8 +1700,8 @@
})
})
}
}
// 省市区
// 省市区
function
getProvinceList
()
{
function
getProvinceList
()
{
// var ajax = layui.$.ajax
// var ajax = layui.$.ajax
// ajax({
// ajax({
// // url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
// // url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment