Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_usercenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
NJ_usercenter
Commits
cfd317f5
Commit
cfd317f5
authored
Nov 27, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4d743eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
NJ_usercenter.ts
assets/NJ_usercenter/scene/NJ_usercenter.ts
+2
-2
No files found.
assets/NJ_usercenter/scene/NJ_usercenter.ts
View file @
cfd317f5
...
...
@@ -5,7 +5,7 @@ import {
import
{
MyCocosSceneComponent_NJ_usercenter
}
from
"
../script/MyCocosSceneComponent_NJ_usercenter
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
AUTH_TOKEN
=
"
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicGhvbmUiOiIxNTUwMDAwMDAwMSIsInNpZ24iOiJ
jM2VjMDdkNC0wODlmLTQwYWMtOWI3MC04ZDhjOTAwZGQwNzAiLCJ1bmlfc2lnbiI6bnVsbCwiaWF0IjoxNjc2NDIzOTUwLCJleHAiOjE2NzkwMTU5NTB9.MnEgThik1V32RmPuUl7-3xy9XtLwqnYiCQfHPLtIaD
c
"
const
AUTH_TOKEN
=
"
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicGhvbmUiOiIxNTUwMDAwMDAwMSIsInNpZ24iOiJ
iMTVhNWVkOC1hZmIwLTRhY2MtYjQ5MS02NTNlYmJlMmU4NGUiLCJpYXQiOjE3MDEwNzUxMzIsImV4cCI6MTcwMzY2NzEzMn0.-V5ZlOsG-A6OLDPa_6YN8Xr2HqSyLlOo2Db41U-iVH
c
"
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent_NJ_usercenter
{
...
...
@@ -84,7 +84,7 @@ export default class SceneComponent extends MyCocosSceneComponent_NJ_usercenter
}
// 购买的有效期
const
productRes
:
any
=
await
asyncCallNetworkApiGet
(
'
/api/oxford/v1/product/list
'
,
{
token
:
this
.
token
});
const
products
=
JSON
.
parse
(
productRes
).
rows
;
const
products
=
JSON
.
parse
(
productRes
).
rows
.
filter
(
item
=>
item
.
type_
==
2
)
;
if
(
products
&&
products
.
length
>
0
)
{
const
endDate
=
products
[
0
].
syll_end_date
.
split
(
"
T
"
)[
0
].
trim
();
cc
.
find
(
`Canvas/usercenter/view/content/scollpage/user_center/enddate`
).
getComponent
(
cc
.
Label
).
string
=
`有效期至:
${
endDate
}
`
;
...
...
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