Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
wildfirecode13
wfc13
Commits
0611d057
Commit
0611d057
authored
Aug 10, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
cf8c5925
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
424 additions
and
10 deletions
+424
-10
package.json
project/package.json
+2
-0
Main.ts
project/src/Main.ts
+13
-0
ResJson.ts
project/src/ResJson.ts
+1
-1
monitor.ts
project/src/monitor.ts
+16
-0
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+2
-0
ShareScene.ts
project/src/scenes/ShareScene.ts
+4
-1
yarn.lock
project/yarn.lock
+386
-8
No files found.
project/package.json
View file @
0611d057
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
"webpack-merge"
:
"^4.1.2"
"webpack-merge"
:
"^4.1.2"
},
},
"dependencies"
:
{
"dependencies"
:
{
"performance-sdk"
:
"^0.0.5"
,
"@spark/monitor-sdk"
:
"^1.1.3"
,
"@spark/share"
:
"^2.0.90"
,
"@spark/share"
:
"^2.0.90"
,
"@spark/utils"
:
"^2.0.46"
,
"@spark/utils"
:
"^2.0.46"
,
"duiba-utils"
:
"^1.0.9"
,
"duiba-utils"
:
"^1.0.9"
,
...
...
project/src/Main.ts
View file @
0611d057
...
@@ -11,7 +11,20 @@ import { ShareScene } from "./scenes/ShareScene";
...
@@ -11,7 +11,20 @@ import { ShareScene } from "./scenes/ShareScene";
import
{
SkinJson
}
from
"./SkinJson"
;
import
{
SkinJson
}
from
"./SkinJson"
;
import
updateShareFunc
from
"./share"
;
import
updateShareFunc
from
"./share"
;
import
{
destroyWebNetData
,
sendWebNet
,
WebNetName
}
from
"./WebNet"
;
import
{
destroyWebNetData
,
sendWebNet
,
WebNetName
}
from
"./WebNet"
;
import
'./monitor'
;
// 引入包
import
{
init
,
CustomPerformance
}
from
'performance-sdk'
;
window
[
'__loading__'
]
=
new
CustomPerformance
(
'__loading__'
);
// 执行初始化方法
init
(
window
[
'CFG'
].
projectId
,
null
,{
report
:{
interval
:[
3
],
//单位分钟
times
:[
10
]
//单位秒
},
debug
:
true
});
const
isShare
=
()
=>
{
const
isShare
=
()
=>
{
const
query
=
getQueryParams
();
const
query
=
getQueryParams
();
...
...
project/src/ResJson.ts
View file @
0611d057
...
@@ -912,5 +912,5 @@ export const ResJson = {
...
@@ -912,5 +912,5 @@ export const ResJson = {
"name"
:
"svga"
"name"
:
"svga"
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/162858
0956
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/162858
7071
/resource/"
}
}
\ No newline at end of file
project/src/monitor.ts
0 → 100644
View file @
0611d057
import
{
SentryInit
}
from
'@spark/monitor-sdk'
;
window
[
'CFG'
].
MONITOR
=
true
;
window
[
'CFG'
].
projectName
=
'三湘体验金'
;
window
[
'CFG'
].
SOURCEVERSION
=
'sanxiang_money'
;
if
(
window
[
'CFG'
]
&&
window
[
'CFG'
].
MONITOR
)
{
SentryInit
({
projectId
:
window
[
'CFG'
].
projectId
,
name
:
window
[
'CFG'
].
projectName
,
// 线上正式项目的名称
sourcemapVersion
:
window
[
'CFG'
].
SOURCEVERSION
,
users
:
[
"15068753667"
]
// 前端开发者的钉钉手机号,字符串类型,可多个, 例如 ['176xxxx', '151xxxx']
});
}
\ No newline at end of file
project/src/scenes/NewbieScene.ts
View file @
0611d057
...
@@ -30,6 +30,8 @@ export class NewbieScene extends Scene {
...
@@ -30,6 +30,8 @@ export class NewbieScene extends Scene {
async
start
(
data
)
{
async
start
(
data
)
{
super
.
start
();
super
.
start
();
window
[
'__loading__'
].
over
();
const
query
=
getQueryParams
();
const
query
=
getQueryParams
();
if
(
query
.
autoprize
==
1
)
{
if
(
query
.
autoprize
==
1
)
{
this
.
openPrize
();
this
.
openPrize
();
...
...
project/src/scenes/ShareScene.ts
View file @
0611d057
...
@@ -25,8 +25,11 @@ export class ShareScene extends Scene {
...
@@ -25,8 +25,11 @@ export class ShareScene extends Scene {
case
'200303'
:
case
'200303'
:
showToast
(
'助力机会已用完,明天再来吧~'
);
showToast
(
'助力机会已用完,明天再来吧~'
);
break
;
break
;
case
'200305'
:
showToast
(
'给当前用户的助力次数已用完~'
);
break
;
default
:
default
:
showToast
(
'
助力机会已用完,明天再来吧~
'
);
showToast
(
'
网络异常~
'
);
break
;
break
;
}
}
}
}
...
...
project/yarn.lock
View file @
0611d057
This diff is collapsed.
Click to expand it.
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