Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
1dc28651
Commit
1dc28651
authored
Oct 12, 2025
by
lg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修复无宝宝信息时点击报错的问题
parent
611aae83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
My.vue
views/My.vue
+5
-7
No files found.
views/My.vue
View file @
1dc28651
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<image
class=
"banner_cover"
:src=
"$baseUrl + 'my/cover_white.png'"
mode=
"aspectFill"
/>
<image
class=
"banner_cover"
:src=
"$baseUrl + 'my/cover_white.png'"
mode=
"aspectFill"
/>
</view>
</view>
<button
v-if=
"cfgStatus.isRegister"
type=
"primary"
class=
"phone-button"
@
click=
"clickRegisterShield"
/>
<button
v-if=
"
!
cfgStatus.isRegister"
type=
"primary"
class=
"phone-button"
@
click=
"clickRegisterShield"
/>
<!-- 用户信息区域 -->
<!-- 用户信息区域 -->
<view
class=
"user-info"
:style=
"
{ 'min-height': cfgStatus.showDetail ? '343rpx' : '180rpx' }">
<view
class=
"user-info"
:style=
"
{ 'min-height': cfgStatus.showDetail ? '343rpx' : '180rpx' }">
...
@@ -294,8 +294,6 @@ const handleToolClick = async (item) => {
...
@@ -294,8 +294,6 @@ const handleToolClick = async (item) => {
// 编辑个人资料
// 编辑个人资料
const
handleEditProfile
=
(
e
)
=>
{
const
handleEditProfile
=
(
e
)
=>
{
if
(
if
(
!
cfgStatus
.
value
.
isRegister
||
!
cfgStatus
.
value
.
isRegister
||
!
userStore
.
userInfo
||
!
userStore
.
userInfo
||
...
@@ -312,12 +310,12 @@ const handleEditProfile = (e) => {
...
@@ -312,12 +310,12 @@ const handleEditProfile = (e) => {
componentContent
:
"资料编辑"
componentContent
:
"资料编辑"
})
})
const
type
=
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
length
==
0
?
"add"
:
"edit"
;
const
type
=
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
length
?
"edit"
:
"add"
;
babyId
.
value
=
userStore
.
babyInfo
?.
allBabyBaseInfo
.
find
(
(
item
)
=>
item
.
selected
)?.
id
;
if
(
type
===
"edit"
)
{
if
(
type
===
"edit"
)
{
babyId
.
value
=
userStore
.
babyInfo
?.
allBabyBaseInfo
.
find
(
(
item
)
=>
item
.
selected
)?.
id
;
navigateTo
(
`/pages/person/person?type=
${
type
}
&id=
${
babyId
.
value
}
`
);
navigateTo
(
`/pages/person/person?type=
${
type
}
&id=
${
babyId
.
value
}
`
);
}
else
{
}
else
{
navigateTo
(
`/pages/person/person?type=
${
type
}
`
);
navigateTo
(
`/pages/person/person?type=
${
type
}
`
);
...
...
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