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
360b7bd5
Commit
360b7bd5
authored
Aug 09, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
5e928fba
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
921 additions
and
27 deletions
+921
-27
ResJson.ts
project/src/ResJson.ts
+898
-14
SkinJson.ts
project/src/SkinJson.ts
+2
-2
ShareScene.ts
project/src/scenes/ShareScene.ts
+21
-11
No files found.
project/src/ResJson.ts
View file @
360b7bd5
This diff is collapsed.
Click to expand it.
project/src/SkinJson.ts
View file @
360b7bd5
...
...
@@ -1065,7 +1065,7 @@ export const SkinJson ={
"y"
:
1294
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"
今日剩余助力次数:6次
"
,
"text"
:
""
,
"size"
:
26
,
"fillColor"
:
"#c75b2b"
,
"textAlpha"
:
1
...
...
@@ -1077,7 +1077,7 @@ export const SkinJson ={
"y"
:
1070
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"
****元体验金,预期收益**元
\
r
"
,
"text"
:
""
,
"size"
:
40
,
"fillColor"
:
"#c75b2b"
,
"textAlpha"
:
1
...
...
project/src/scenes/ShareScene.ts
View file @
360b7bd5
...
...
@@ -4,6 +4,7 @@ import Marquee from "../common/Marquee";
import
getObject
from
"../getObject"
;
import
getQueryParams
from
"../getQueryParams"
;
import
{
AssistPanel
}
from
"../panels/assist"
;
import
{
RulePanel
}
from
"../panels/rule"
;
import
{
getPxTokenSave
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
export
class
ShareScene
extends
Scene
{
...
...
@@ -16,48 +17,57 @@ export class ShareScene extends Scene {
})
}
get
groupNames
()
{
return
[
"share"
]
}
get
skinName
()
{
return
"share"
}
initUi
()
{
super
.
initUi
();
onClick_share_rule
(){
showPanel
(
RulePanel
);
}
async
start
(
data
)
{
super
.
start
();
console
.
log
(
'ShareScene query>>'
,
JSON
.
stringify
(
data
.
query
));
getPxTokenSave
().
then
(
token
=>
{
sendWebNet
(
WebNetName
.
shareInfo
,{
code
:
getQueryParams
().
code
,
token
:
token
}).
then
(
res
=>
{});
sendWebNet
(
WebNetName
.
shareInfo
,{
code
:
getQueryParams
().
code
,
token
:
token
}).
then
(
res
=>
{
const
{
experienceAmount
,
preIncom
,
remainAssist
}
=
res
.
data
;
getObject
(
this
,
'share_tips1'
).
text
=
`
${
experienceAmount
}
元体验金,预期收益
${
preIncom
}
元`
getObject
(
this
,
'share_tips2'
).
text
=
`今日剩余助力次数:
${
remainAssist
}
次`
});
})
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
console
.
log
(
'carouselInfo '
,
res
);
const
template
=
'{phone}邀请
了{friend}
位好友,获得了{amount}体验金'
;
const
template
=
'{phone}邀请
1
位好友,获得了{amount}体验金'
;
const
datas
=
res
.
data
.
map
(
item
=>
{
let
str
=
template
.
replace
(
'{phone}'
,
item
.
nickname
);
str
=
str
.
replace
(
'{friend}'
,
item
.
friend
);
str
=
str
.
replace
(
'{amount}'
,
item
.
amount
);
return
str
});
const
q
=
this
.
addChild
(
new
Marquee
(
datas
));
q
.
y
=
50
;
q
.
x
=
50
;
q
.
x
=
135
;
q
.
y
=
448
;
window
[
'q'
]
=
q
;
});
}
initEvents
()
{
super
.
initEvents
();
getObject
(
this
,
'share_rule'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_rule
,
this
);
getObject
(
this
,
'share_assist'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_assist
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
getObject
(
this
,
'share_rule'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_rule
,
this
);
getObject
(
this
,
'share_assist'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_share_assist
,
this
);
}
get
groupNames
()
{
return
[
"share"
]
}
get
skinName
()
{
return
"share"
}
initUi
()
{
super
.
initUi
();
}
}
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