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 9d506fcf
authored
Apr 21, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改省市清空地址
1 parent
5740bd1e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/merchant/add.html
View file @
9d506fc
...
...
@@ -1095,9 +1095,10 @@
select
:
function
(
data
)
{
const
{
value
}
=
data
if
(
value
)
{
console
.
log
(
cityInfo
);
merchantForm
.
cityName
=
value
cityInfo
=
cityInfo
.
find
(
item
=>
item
.
name
==
value
)
merchantForm
.
cityCode
=
city
Info
.
adcode
var
cityChange
=
cityInfo
.
find
(
item
=>
item
.
name
==
value
)
merchantForm
.
cityCode
=
city
Change
.
adcode
$
(
'#addrEl'
).
val
(
''
)
}
}
...
...
html/merchant/addSubMerchant.html
View file @
9d506fc
...
...
@@ -1106,8 +1106,8 @@
const
{
value
}
=
data
if
(
value
)
{
merchantForm
.
cityName
=
value
cityInfo
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
merchantForm
.
cityCode
=
city
Info
.
adcode
var
cityChange
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
merchantForm
.
cityCode
=
city
Change
.
adcode
$
(
'#addrEl'
).
val
(
''
)
}
}
...
...
html/merchant/edit.html
View file @
9d506fc
...
...
@@ -1060,13 +1060,13 @@
text
:
'name'
,
data
:
cityInfo
,
link
:
'startp'
,
isFirst
:
false
,
//
isFirst: false,
select
:
function
(
data
)
{
const
{
value
}
=
data
if
(
value
)
{
merchantForm
.
cityName
=
value
var
city
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
merchantForm
.
cityCode
=
city
.
adcode
var
city
Change
=
cityInfo
.
find
(
item
=>
item
.
cityName
==
value
)
merchantForm
.
cityCode
=
city
Change
.
adcode
$
(
'#addrEl'
).
val
(
''
)
}
}
...
...
@@ -1454,7 +1454,6 @@
}
// 省市回显
if
(
merchantForm
.
provinceName
)
{
console
.
log
(
provinceInfoList
,
'===='
);
var
province
=
provinceInfoList
.
find
(
item
=>
item
.
name
.
indexOf
(
merchantForm
.
provinceName
)
!=
-
1
)
merchantForm
.
provinceName
=
province
.
name
cityInfo
=
province
.
districtList
...
...
@@ -1471,8 +1470,8 @@
const
{
value
}
=
data
if
(
value
)
{
merchantForm
.
cityName
=
value
var
city
=
cityInfo
.
find
(
item
=>
item
.
cityN
ame
==
value
)
merchantForm
.
cityCode
=
city
.
cityId
var
city
Change
=
cityInfo
.
find
(
item
=>
item
.
n
ame
==
value
)
merchantForm
.
cityCode
=
city
Change
.
adcode
$
(
'#addrEl'
).
val
(
''
)
}
}
...
...
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