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
35b2e517
Commit
35b2e517
authored
Sep 27, 2021
by
lujinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-a
parent
7e482974
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
31 deletions
+48
-31
ResJson.ts
project/src/ResJson.ts
+1
-1
ShareMask.ts
project/src/common/ShareMask.ts
+1
-1
ShareHintPanel.ts
project/src/panels/ShareHintPanel.ts
+31
-16
assist.ts
project/src/panels/assist.ts
+2
-1
prize.ts
project/src/panels/prize.ts
+2
-2
IndexScene.ts
project/src/scenes/IndexScene.ts
+6
-7
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+5
-3
No files found.
project/src/ResJson.ts
View file @
35b2e517
...
...
@@ -934,5 +934,5 @@ export const ResJson = {
"name"
:
"svga"
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16327
10518
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16327
24226
/resource/"
}
\ No newline at end of file
project/src/common/ShareMask.ts
View file @
35b2e517
...
...
@@ -2,7 +2,7 @@ import { RES } from "../../module/RES";
import
{
layers
}
from
"../../module/views/layers"
;
import
centerTextField
from
"./centerTextField"
;
import
TestLabel
from
"./TestLabel"
;
let
mask
;
let
mask
;
export
default
class
ShareMask
extends
FYGE
.
Sprite
{
constructor
(
color
=
0
,
alpha
=
.
7
,
container
?)
{
...
...
project/src/panels/ShareHintPanel.ts
View file @
35b2e517
...
...
@@ -7,28 +7,43 @@ import { WEIXIN_URL } from "../datas";
import
{
Tools
}
from
"../Tools"
;
import
{
sendLog
}
from
"../WebNet"
;
export
class
ShareHintPanel
extends
Panel
{
let
mask
;
initUi
()
{
super
.
initUi
();
let
btn
=
this
.
addChild
(
Tools
.
getRect
(
750
,
1624
))
btn
.
alpha
=
0
;
btn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,()
=>
{
this
.
btnDelay
(
btn
)
this
.
hidePanel
()
},
this
)
export
class
ShareHintPanel
extends
FYGE
.
Sprite
{
constructor
()
{
super
()
this
.
initUi
();
}
initUi
()
{
let
btn
=
this
.
addChild
(
Tools
.
getRect
(
750
,
1624
,
0x000000
))
btn
.
alpha
=
0.7
;
let
bg
=
this
.
addChild
(
Tools
.
getSprite
(
'share.png'
))
bg
.
position
.
set
(
250
,
80
+
layers
.
stageOffsetY
)
bg
.
position
.
set
(
250
,
1
80
+
layers
.
stageOffsetY
)
bg
.
mouseChildren
=
false
;
bg
.
mouseEnable
=
false
;
bg
.
addChild
(
Tools
.
getText
(
'点击分享'
,
30
,
"#ffffff"
)).
position
.
set
(
120
,
240
)
let
callback
;
callback
=
()
=>
{
this
.
parent
&&
this
.
parent
.
removeChild
(
this
);
this
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
callback
,
this
);
mask
=
null
;
};
btn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
callback
,
this
)
}
}
get
groupNames
()
{
return
[
"share_success"
]
}
export
const
showShareHintPanel
=
()
=>
{
if
(
mask
)
return
;
mask
=
new
ShareHintPanel
();
layers
.
shareLayer
.
addChild
(
mask
);
}
export
const
hideShareHintPanel
=
()
=>
{
if
(
!
mask
)
return
;
layers
.
shareLayer
.
removeChild
(
mask
);
mask
=
null
;
}
async
start
(
data
)
{
super
.
start
();
sendLog
(
"exposure"
,
7
);
}
}
\ No newline at end of file
export
{
mask
}
\ No newline at end of file
project/src/panels/assist.ts
View file @
35b2e517
...
...
@@ -8,7 +8,8 @@ import { sendLog } from "../WebNet";
export
class
AssistPanel
extends
Panel
{
onClick_share_go
(){
sendLog
(
"click"
,
11
);
location
.
href
=
getAutoPrizeUrl
()
// location.href=getAutoPrizeUrl()
window
[
"miniJump"
](
getAutoPrizeUrl
())
}
initUi
()
{
super
.
initUi
();
...
...
project/src/panels/prize.ts
View file @
35b2e517
...
...
@@ -8,7 +8,7 @@ import { MAX_MONEY, MONEY_PERCENT } from "../datas";
import
{
IndexScene
}
from
"../scenes/IndexScene"
;
import
updateShareFunc
from
"../share"
;
import
{
getPxTokenSave
,
sendLog
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
import
{
ShareHintPanel
}
from
"./ShareHintPanel"
;
import
{
ShareHintPanel
,
showShareHintPanel
}
from
"./ShareHintPanel"
;
const
createMask
=
(
w
,
h
)
=>
{
const
s
=
new
FYGE
.
Shape
();
...
...
@@ -134,7 +134,7 @@ export class PrizePanel extends Panel {
onClick_inviteBtn
()
{
// showShareMask();
show
Panel
(
ShareHintPanel
)
show
ShareHintPanel
();
sendLog
(
"click"
,
2
);
}
...
...
project/src/scenes/IndexScene.ts
View file @
35b2e517
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
'@spark/utils'
;
import
{
hideWaiting
,
showPanel
,
showToast
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
closeAllPanels
,
hideWaiting
,
showPanel
,
showToast
,
showWaiting
}
from
"../../module/ctrls"
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
centerTextField
from
'../common/centerTextField'
;
...
...
@@ -7,12 +7,12 @@ import getObject, { getObjects } from '../common/getObject';
import
getQueryParams
from
'../common/getQueryParams'
;
import
Marquee
from
'../common/Marquee'
;
import
{
ProgressBarS
}
from
'../common/ProgressBarS'
;
import
{
hideShareMask
,
showShareMask
,
mask
}
from
'../common/ShareMask'
;
//
import { hideShareMask, showShareMask,mask } from '../common/ShareMask';
import
{
getStageHeight
,
getStageOffset
}
from
'../common/stage'
;
import
{
KAIHU_URL
,
MAX_MONEY
,
MONEY_PERCENT
}
from
'../datas'
;
import
{
DrawPanel
}
from
'../panels/draw'
;
import
{
RulePanel
}
from
'../panels/rule'
;
import
{
ShareHintPanel
}
from
'../panels/ShareHintPanel'
;
import
{
hideShareHintPanel
,
mask
,
ShareHintPanel
,
show
ShareHintPanel
}
from
'../panels/ShareHintPanel'
;
import
{
ShareFailPanel
}
from
'../panels/share_fail'
;
import
{
ShareSuccessPanel
}
from
'../panels/share_success'
;
import
updateShareFunc
from
'../share'
;
...
...
@@ -59,7 +59,7 @@ export class IndexScene extends Scene {
onclick_index_inviteBtn
()
{
// showShareMask();
show
Panel
(
ShareHintPanel
)
show
ShareHintPanel
(
)
sendLog
(
"click"
,
4
);
}
/**
...
...
@@ -120,8 +120,6 @@ export class IndexScene extends Scene {
async
start
(
data
)
{
super
.
start
(
data
);
sendLog
(
"exposure"
,
3
);
sendLog
(
"exposure"
,
4
);
sendLog
(
"exposure"
,
5
);
...
...
@@ -188,7 +186,8 @@ export class IndexScene extends Scene {
console
.
log
(
'有弹窗就不重复弹分享弹窗了'
);
if
(
visible
&&
!
current
)
{
if
(
mask
){
hideShareMask
();
hideShareHintPanel
();
// closeAllPanels()
this
.
showSharePanel
();
}
...
...
project/src/scenes/NewbieScene.ts
View file @
35b2e517
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
"@spark/utils"
;
import
{
changeScene
,
closeCurrentPanel
,
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
changeScene
,
close
AllPanels
,
close
CurrentPanel
,
hideWaiting
,
showPanel
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
...
...
@@ -10,6 +10,7 @@ import Mask from "../common/Mask";
import
{
hideShareMask
}
from
"../common/ShareMask"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
{
hideShareHintPanel
}
from
"../panels/ShareHintPanel"
;
import
updateShareFunc
from
"../share"
;
import
{
getPxTokenSave
,
sendLog
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
import
{
IndexScene
}
from
"./IndexScene"
;
...
...
@@ -22,8 +23,9 @@ export class NewbieScene extends Scene {
console
.
log
(
'没有领体验金'
);
return
;
};
if
(
visible
)
{
hideShareMask
();
closeCurrentPanel
();
// hideShareMask();
hideShareHintPanel
();
changeScene
(
IndexScene
,
{
from
:
'NewbieScene'
,
action
:
'showSharePanel'
});
}
}
...
...
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