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 946ae42c
authored
Apr 21, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huy_dev_v2.1.0' of
http://192.168.3.233:8090/h5/account
into huy_dev_v2.1.0
2 parents
9d506fcf
cf718b46
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 @
946ae42
...
...
@@ -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 点击事件
...
...
@@ -1473,8 +1475,8 @@
var
cityChange
=
cityInfo
.
find
(
item
=>
item
.
name
==
value
)
merchantForm
.
cityCode
=
cityChange
.
adcode
$
(
'#addrEl'
).
val
(
''
)
}
}
}
})
var
city
=
cityInfo
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
cityName
)
!=
-
1
)
merchantForm
.
cityName
=
city
.
name
...
...
@@ -1508,7 +1510,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
)
})
...
...
@@ -1697,8 +1699,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',
...
...
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