Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
87e7ebf8
Commit
87e7ebf8
authored
May 14, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
60e7ecad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
apps/home/Tpl/default/User/address_w3g.html
+11
-5
No files found.
apps/home/Tpl/default/User/address_w3g.html
View file @
87e7ebf8
...
@@ -171,6 +171,15 @@
...
@@ -171,6 +171,15 @@
}
}
},
},
methods
:
{
methods
:
{
//Helper
indexOf
:
function
(
array
,
call
)
{
for
(
let
i
=
0
;
i
<
array
.
length
;
i
++
)
{
if
(
call
(
array
[
i
]))
{
return
i
}
}
return
-
1
},
//当选择省变化
//当选择省变化
onProvinceChange
:
function
(
picker
,
p
)
{
onProvinceChange
:
function
(
picker
,
p
)
{
console
.
log
(
"当选择省变化"
)
console
.
log
(
"当选择省变化"
)
...
@@ -178,11 +187,8 @@
...
@@ -178,11 +187,8 @@
let
that
=
this
let
that
=
this
if
(
p
.
children
.
length
==
0
)
{
if
(
p
.
children
.
length
==
0
)
{
that
.
getCity
(
p
.
id
,
r
=>
{
that
.
getCity
(
p
.
id
,
r
=>
{
p
.
children
=
r
.
map
(
r
=>
{
return
{
text
:
r
.
title
,
id
:
r
.
area_id
,
children
:
[]
}
})
let
idx
=
that
.
indexOf
(
that
.
columns
,
i
=>
{
return
i
.
text
==
p
.
text
})
if
(
!
that
.
loading
)
{
that
.
$set
(
that
.
columns
[
idx
],
'children'
,
r
.
map
(
r
=>
{
return
{
text
:
r
.
title
,
id
:
r
.
area_id
,
children
:
[]
}
}))
that
.
loading
=
true
that
.
columns
=
[].
concat
(
that
.
columns
)
}
let
c
=
p
.
children
[
0
]
let
c
=
p
.
children
[
0
]
that
.
selected
[
1
]
=
c
.
text
that
.
selected
[
1
]
=
c
.
text
that
.
onCityChange
(
picker
,
c
)
that
.
onCityChange
(
picker
,
c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment