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
b8369783
Commit
b8369783
authored
Nov 24, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:到期日期
parent
010032cf
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1695 additions
and
1587 deletions
+1695
-1587
NJ_usercenter.fire
assets/NJ_usercenter/scene/NJ_usercenter.fire
+1682
-1584
NJ_usercenter.ts
assets/NJ_usercenter/scene/NJ_usercenter.ts
+11
-2
project.json
project.json
+2
-1
No files found.
assets/NJ_usercenter/scene/NJ_usercenter.fire
View file @
b8369783
This diff is collapsed.
Click to expand it.
assets/NJ_usercenter/scene/NJ_usercenter.ts
View file @
b8369783
...
...
@@ -82,6 +82,15 @@ export default class SceneComponent extends MyCocosSceneComponent_NJ_usercenter
const
gameNames
=
userInfo
.
last_game_str
.
split
(
"
~!
"
);
cc
.
find
(
"
Canvas/usercenter/view/content/scollpage/learning
"
).
getComponent
(
cc
.
RichText
).
string
=
`<color=#138977>当前正在学习</c> <color=#ef8d36>
${
gameNames
[
0
]}
-
${
gameNames
[
1
]}
</color>`
;
}
// 购买的有效期
const
productRes
:
any
=
await
asyncCallNetworkApiGet
(
'
/api/oxford/v1/product/list
'
,
{
token
:
this
.
token
});
const
products
=
JSON
.
parse
(
productRes
).
rows
;
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
}
`
;
}
}
// 学习小节
...
...
project.json
View file @
b8369783
...
...
@@ -4,5 +4,6 @@
"name"
:
"play"
,
"id"
:
"9af72fd2-44a6-4131-8ea3-3e1b3fa22231"
,
"version"
:
"2.4.5"
,
"isNew"
:
false
"isNew"
:
false
,
"description"
:
""
}
\ No newline at end of file
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