Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
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 a67118fd
authored
Sep 10, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
下单收货地址选择回显选中项bug修复
1 parent
dae797da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
components/Adress/index.js
components/Adress/index.js
View file @
a67118f
...
@@ -12,6 +12,7 @@ Component({
...
@@ -12,6 +12,7 @@ Component({
if
(
val
&&
this
.
properties
.
address
.
length
)
{
if
(
val
&&
this
.
properties
.
address
.
length
)
{
console
.
log
(
this
.
properties
.
defaultAddress
?.
id
)
console
.
log
(
this
.
properties
.
defaultAddress
?.
id
)
this
.
properties
.
address
.
forEach
((
item
,
index
)
=>
{
this
.
properties
.
address
.
forEach
((
item
,
index
)
=>
{
item
.
active
=
false
if
(
item
.
id
==
this
.
properties
.
defaultAddress
?.
id
)
{
if
(
item
.
id
==
this
.
properties
.
defaultAddress
?.
id
)
{
item
.
active
=
true
item
.
active
=
true
}
}
...
...
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