Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
a3601e84
Commit
a3601e84
authored
Mar 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a6c93dd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
userHeader.vue
pages/user-center/components/userHeader.vue
+6
-2
vipUserHeader.vue
pages/user-center/components/vipUserHeader.vue
+6
-2
No files found.
pages/user-center/components/userHeader.vue
View file @
a3601e84
...
@@ -130,8 +130,12 @@
...
@@ -130,8 +130,12 @@
const
[
significand
,
exp
]
=
formatted
.
split
(
'e'
);
const
[
significand
,
exp
]
=
formatted
.
split
(
'e'
);
return
significand
+
'0'
.
repeat
(
parseInt
(
exp
))
+
units
[
unitIndex
+
1
];
return
significand
+
'0'
.
repeat
(
parseInt
(
exp
))
+
units
[
unitIndex
+
1
];
}
}
if
(
formatted
.
substring
(
3
,
4
)
==
','
)
return
formatted
.
substring
(
0
,
3
)
+
units
[
unitIndex
+
1
];
const
cleanedInteger
=
formatted
.
replace
(
/0+$/
,
''
)
return
formatted
.
substring
(
0
,
4
)
+
units
[
unitIndex
+
1
];
let
money
=
cleanedInteger
.
split
(
','
)
if
(
money
.
length
>
1
){
return
money
[
0
]
+
units
[
unitIndex
+
1
]
}
return
money
+
units
[
unitIndex
+
1
];
},
},
login
(
name
)
{
login
(
name
)
{
if
((
name
&&
name
.
nickname
==
""
)
||
!
name
||
!
name
.
nickname
)
{
if
((
name
&&
name
.
nickname
==
""
)
||
!
name
||
!
name
.
nickname
)
{
...
...
pages/user-center/components/vipUserHeader.vue
View file @
a3601e84
...
@@ -117,8 +117,12 @@
...
@@ -117,8 +117,12 @@
const
[
significand
,
exp
]
=
formatted
.
split
(
'e'
);
const
[
significand
,
exp
]
=
formatted
.
split
(
'e'
);
return
significand
+
'0'
.
repeat
(
parseInt
(
exp
))
+
units
[
unitIndex
+
1
];
return
significand
+
'0'
.
repeat
(
parseInt
(
exp
))
+
units
[
unitIndex
+
1
];
}
}
if
(
formatted
.
substring
(
3
,
4
)
==
','
)
return
formatted
.
substring
(
0
,
3
)
+
units
[
unitIndex
+
1
];
const
cleanedInteger
=
formatted
.
replace
(
/0+$/
,
''
)
return
formatted
.
substring
(
0
,
4
)
+
units
[
unitIndex
+
1
];
let
money
=
cleanedInteger
.
split
(
','
)
if
(
money
.
length
>
1
){
return
money
[
0
]
+
units
[
unitIndex
+
1
]
}
return
money
+
units
[
unitIndex
+
1
];
},
},
login
(
name
)
{
login
(
name
)
{
if
((
name
&&
name
.
nickname
==
""
)
||
!
name
||
!
name
.
nickname
)
{
if
((
name
&&
name
.
nickname
==
""
)
||
!
name
||
!
name
.
nickname
)
{
...
...
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