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 a82ab81a
authored
Jan 07, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换获取省市区接口动态获取
1 parent
283c59db
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/merchant/add.html
View file @
a82ab81
...
@@ -675,6 +675,7 @@
...
@@ -675,6 +675,7 @@
var
provinceInfoList
=
[]
var
provinceInfoList
=
[]
var
cityInfo
=
[]
var
cityInfo
=
[]
var
addressData
=
{}
var
addressData
=
{}
const
external_data
=
helper
.
store
.
get
(
'external'
).
val
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
// com.getSelect({
// com.getSelect({
...
@@ -1813,14 +1814,13 @@ function uniqueNodes(nodes) {
...
@@ -1813,14 +1814,13 @@ function uniqueNodes(nodes) {
for
(
let
key
in
params
)
{
for
(
let
key
in
params
)
{
data
+=
'&'
+
key
+
'='
+
params
[
key
]
data
+=
'&'
+
key
+
'='
+
params
[
key
]
}
}
let
path
=
'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
// let path = 'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
let
path
=
external_data
.
provinceUrl
path
=
path
+
data
path
=
path
+
data
const
pro
=
fetch
(
path
).
then
(
res
=>
{
const
pro
=
fetch
(
path
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
return
res
.
json
()
return
res
.
json
()
})
})
pro
.
then
(
r
=>
{
pro
.
then
(
r
=>
{
console
.
log
(
JSON
.
parse
(
r
.
data
),
'r'
)
provinceInfoList
=
JSON
.
parse
(
r
.
data
).
districts
[
0
].
districts
provinceInfoList
=
JSON
.
parse
(
r
.
data
).
districts
[
0
].
districts
com
.
getSelect
({
com
.
getSelect
({
id
:
'startp'
,
id
:
'startp'
,
...
...
html/merchant/addSubMerchant.html
View file @
a82ab81
...
@@ -671,6 +671,7 @@
...
@@ -671,6 +671,7 @@
var
provinceInfoList
=
[]
var
provinceInfoList
=
[]
var
cityInfo
=
[]
var
cityInfo
=
[]
var
addressData
=
{}
var
addressData
=
{}
const
external_data
=
helper
.
store
.
get
(
'external'
).
val
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
// 禁用所有input框的回车事件
// 禁用所有input框的回车事件
...
@@ -1783,7 +1784,8 @@ function uniqueNodes(nodes) {
...
@@ -1783,7 +1784,8 @@ function uniqueNodes(nodes) {
for
(
let
key
in
params
)
{
for
(
let
key
in
params
)
{
data
+=
'&'
+
key
+
'='
+
params
[
key
]
data
+=
'&'
+
key
+
'='
+
params
[
key
]
}
}
let
path
=
'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
// let path = 'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
let
path
=
external_data
.
provinceUrl
path
=
path
+
data
path
=
path
+
data
const
pro
=
fetch
(
path
).
then
(
res
=>
{
const
pro
=
fetch
(
path
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
'res'
)
...
...
html/merchant/edit.html
View file @
a82ab81
...
@@ -737,7 +737,7 @@
...
@@ -737,7 +737,7 @@
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
],
shadeClose
:
false
});
// shade属性是可选的
layer
.
load
(
1
,
{
shade
:
[
0.5
,
'#fff'
],
shadeClose
:
false
});
// shade属性是可选的
}
}
showLoading
()
showLoading
()
const
external_data
=
helper
.
store
.
get
(
'external'
).
val
// 省市区
// 省市区
getProvinceList
()
getProvinceList
()
...
@@ -2310,7 +2310,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2310,7 +2310,8 @@ loadSuperiorMerchants(currentPage).then(function(list) {
for
(
let
key
in
params
)
{
for
(
let
key
in
params
)
{
data
+=
'&'
+
key
+
'='
+
params
[
key
]
data
+=
'&'
+
key
+
'='
+
params
[
key
]
}
}
let
path
=
'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
// let path = 'http://eshield.dev.glsx.com.cn/nesi/apiRegion/search?'
let
path
=
external_data
.
provinceUrl
path
=
path
+
data
path
=
path
+
data
const
pro
=
fetch
(
path
).
then
(
res
=>
{
const
pro
=
fetch
(
path
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
'res'
)
...
...
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