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
e215c559
Commit
e215c559
authored
Feb 10, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件名
parent
d128be74
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
58 additions
and
56 deletions
+58
-56
NJ_usercenter.fire
assets/NJ_usercenter/scene/NJ_usercenter.fire
+48
-48
NJ_usercenter.ts
assets/NJ_usercenter/scene/NJ_usercenter.ts
+2
-2
MyCocosSceneComponent_NJ_usercenter.ts
..._usercenter/script/MyCocosSceneComponent_NJ_usercenter.ts
+1
-1
chartEvent_NJ_usercenter.ts
assets/NJ_usercenter/script/chartEvent_NJ_usercenter.ts
+1
-1
clickEvent_NJ_usercenter.ts
assets/NJ_usercenter/script/clickEvent_NJ_usercenter.ts
+3
-3
defaultData_NJ_usercenter.ts
assets/NJ_usercenter/script/defaultData_NJ_usercenter.ts
+0
-0
defaultData_NJ_usercenter.ts.meta
...ts/NJ_usercenter/script/defaultData_NJ_usercenter.ts.meta
+0
-0
util_NJ_usercenter.ts
assets/NJ_usercenter/script/util_NJ_usercenter.ts
+2
-0
util_NJ_usercenter.ts.meta
assets/NJ_usercenter/script/util_NJ_usercenter.ts.meta
+0
-0
videoHandler_NJ_usercenter.ts
assets/NJ_usercenter/script/videoHandler_NJ_usercenter.ts
+1
-1
No files found.
assets/NJ_usercenter/scene/NJ_usercenter.fire
View file @
e215c559
This diff is collapsed.
Click to expand it.
assets/NJ_usercenter/scene/NJ_usercenter.ts
View file @
e215c559
import
{
import
{
asyncCallNetworkApiGet
,
asyncCallNetworkApiGet
,
jumpToLogin
,
jumpToLogin
,
}
from
"
../script/util
"
;
}
from
"
../script/util
_NJ_usercenter
"
;
import
{
MyCocosSceneComponent_NJ_usercenter
}
from
"
../script/MyCocosSceneComponent_NJ_usercenter
"
;
import
{
MyCocosSceneComponent_NJ_usercenter
}
from
"
../script/MyCocosSceneComponent_NJ_usercenter
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
AUTH_TOKEN
=
"
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6M
iwicGhvbmUiOiIxNTUwMDAwMDAwMiIsInNpZ24iOiI1ODUxYjVkMS1lYzIwLTQzN2ItOGM3ZS1mYjM3YmExZGI2MWYiLCJ1bmlfc2lnbiI6ImI4MThlODg0LTFkNjgtNGRhYy05NDRjLTQyMjYwMTU1NTc5YyIsImlhdCI6MTY3Mzk0MTM2MSwiZXhwIjoxNjc2NTMzMzYxfQ.eFkRVqof15WOyi_jFgFOg7ym5QMV76t-1ZwupxfX_lg
"
const
AUTH_TOKEN
=
"
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6M
SwicGhvbmUiOiIxNTUwMDAwMDAwMSIsInNpZ24iOiI0NDQxOWNlZi1mMzk2LTQ3YzgtYmFkNC1kZjkyMTBkMWZlYjkiLCJ1bmlfc2lnbiI6bnVsbCwiaWF0IjoxNjc1OTk2NjUwLCJleHAiOjE2Nzg1ODg2NTB9._9CqQo0OvagRxNqZVZjnu0t0NkW-_jSzoaL1UtcyoCk
"
@
ccclass
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent_NJ_usercenter
{
export
default
class
SceneComponent
extends
MyCocosSceneComponent_NJ_usercenter
{
...
...
assets/NJ_usercenter/script/MyCocosSceneComponent_NJ_usercenter.ts
View file @
e215c559
import
{
defaultData
}
from
"
../script/defaultData
"
;
import
{
defaultData
}
from
"
../script/defaultData
_NJ_usercenter
"
;
import
{
initDate
}
from
"
./common_NJ_usercenter
"
;
import
{
initDate
}
from
"
./common_NJ_usercenter
"
;
export
class
MyCocosSceneComponent_NJ_usercenter
extends
cc
.
Component
{
export
class
MyCocosSceneComponent_NJ_usercenter
extends
cc
.
Component
{
...
...
assets/NJ_usercenter/script/chartEvent_NJ_usercenter.ts
View file @
e215c559
import
{
asyncDelay
}
from
"
./util
"
;
import
{
asyncDelay
}
from
"
./util
_NJ_usercenter
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
@
ccclass
...
...
assets/NJ_usercenter/script/clickEvent_NJ_usercenter.ts
View file @
e215c559
import
{
jumpToLogin
,
asyncCallNetworkApiGet
,
getSpriteFrimeByUrl
,
playAudioByUrl
}
from
"
./util
"
;
import
{
jumpToLogin
,
asyncCallNetworkApiGet
,
getSpriteFrimeByUrl
,
playAudioByUrl
}
from
"
./util
_NJ_usercenter
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
levels
=
{
const
levels
=
{
...
@@ -640,7 +640,7 @@ export default class NewClass extends cc.Component {
...
@@ -640,7 +640,7 @@ export default class NewClass extends cc.Component {
async
onPlayRecordAudio
(
evt
:
cc
.
Event
)
{
async
onPlayRecordAudio
(
evt
:
cc
.
Event
)
{
const
node
=
evt
.
currentTarget
;
const
node
=
evt
.
currentTarget
;
if
(
!
node
.
audio_url
)
{
if
(
!
node
.
audio_url
)
{
this
.
showTips
(
"
录音不存在
"
);
//
this.showTips("录音不存在");
return
;
return
;
}
}
...
@@ -660,7 +660,7 @@ export default class NewClass extends cc.Component {
...
@@ -660,7 +660,7 @@ export default class NewClass extends cc.Component {
async
onPlayAttrRecordAudio
(
evt
:
cc
.
Event
)
{
async
onPlayAttrRecordAudio
(
evt
:
cc
.
Event
)
{
const
node
=
evt
.
currentTarget
;
const
node
=
evt
.
currentTarget
;
if
(
!
node
.
audio_url
)
{
if
(
!
node
.
audio_url
)
{
this
.
showTips
(
"
录音不存在
"
);
//
this.showTips("录音不存在");
return
;
return
;
}
}
playAudioByUrl
(
node
.
audio_url
,
()
=>
{
playAudioByUrl
(
node
.
audio_url
,
()
=>
{
...
...
assets/NJ_usercenter/script/defaultData.ts
→
assets/NJ_usercenter/script/defaultData
_NJ_usercenter
.ts
View file @
e215c559
File moved
assets/NJ_usercenter/script/defaultData.ts.meta
→
assets/NJ_usercenter/script/defaultData
_NJ_usercenter
.ts.meta
View file @
e215c559
File moved
assets/NJ_usercenter/script/util.ts
→
assets/NJ_usercenter/script/util
_NJ_usercenter
.ts
View file @
e215c559
...
@@ -464,6 +464,7 @@ export function callNetworkApiPost(uri, data, callBack) {
...
@@ -464,6 +464,7 @@ export function callNetworkApiPost(uri, data, callBack) {
middleLayer
.
callNetworkApiPost
(
uri
,
data
,
callBack
);
middleLayer
.
callNetworkApiPost
(
uri
,
data
,
callBack
);
return
;
return
;
}
}
uri
=
uri
.
replace
(
/oxford/g
,
'
oxfordlite
'
)
const
baseUrl
=
'
http://staging-openapi.iteachabc.com
'
;
const
baseUrl
=
'
http://staging-openapi.iteachabc.com
'
;
const
xhr
=
new
XMLHttpRequest
();
const
xhr
=
new
XMLHttpRequest
();
const
url
=
`
${
baseUrl
}${
uri
}
`
;
const
url
=
`
${
baseUrl
}${
uri
}
`
;
...
@@ -483,6 +484,7 @@ export function callNetworkApiGet(uri, data, callBack) {
...
@@ -483,6 +484,7 @@ export function callNetworkApiGet(uri, data, callBack) {
middleLayer
.
callNetworkApiGet
(
uri
,
data
,
callBack
);
middleLayer
.
callNetworkApiGet
(
uri
,
data
,
callBack
);
return
;
return
;
}
}
uri
=
uri
.
replace
(
/oxford/g
,
'
oxfordlite
'
)
const
baseUrl
=
'
http://staging-openapi.iteachabc.com
'
;
const
baseUrl
=
'
http://staging-openapi.iteachabc.com
'
;
let
queryStr
=
'
?
'
;
let
queryStr
=
'
?
'
;
const
params
=
[];
const
params
=
[];
...
...
assets/NJ_usercenter/script/util.ts.meta
→
assets/NJ_usercenter/script/util
_NJ_usercenter
.ts.meta
View file @
e215c559
File moved
assets/NJ_usercenter/script/videoHandler_NJ_usercenter.ts
View file @
e215c559
import
{
import
{
getVideoUrl
,
buttonOnClick
,
playAudioByUrl
,
getVideoUrl
,
buttonOnClick
,
playAudioByUrl
,
}
from
"
../script/util
"
;
}
from
"
../script/util
_NJ_usercenter
"
;
import
{
MyCocosSceneComponent_NJ_usercenter
}
from
"
./MyCocosSceneComponent_NJ_usercenter
"
;
import
{
MyCocosSceneComponent_NJ_usercenter
}
from
"
./MyCocosSceneComponent_NJ_usercenter
"
;
...
...
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