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
f5a7032c
Commit
f5a7032c
authored
Aug 13, 2021
by
shunx 马
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svga
parent
7b41d090
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
13 deletions
+42
-13
index.do.json
project/mock/webNet/dazzle/index.do.json
+11
-0
盲盒开启-打开-输出.svga
project/resource/svga/盲盒开启-打开-输出.svga
+0
-0
盲盒选中-输出.svga
project/resource/svga/盲盒选中-输出.svga
+0
-0
首页元素循环-输出.svga
project/resource/svga/首页元素循环-输出.svga
+0
-0
SkinJson.ts
project/src/SkinJson.ts
+6
-6
WebNetName.ts
project/src/WebNetName.ts
+5
-1
RulePanel.ts
project/src/panels/RulePanel.ts
+0
-0
IndexScene.ts
project/src/scenes/IndexScene.ts
+19
-5
StartScene.ts
project/src/template/StartScene.ts
+1
-1
No files found.
project/mock/webNet/dazzle/index.do.json
0 → 100644
View file @
f5a7032c
{
"code"
:
null
,
"data"
:
{
"surplusCount"
:
1
,
"credits"
:
100
,
"needCredits"
:
10
,
"type"
:
2
},
"message"
:
null
,
"success"
:
true
}
\ No newline at end of file
project/resource/svga/盲盒开启-打开-输出.svga
0 → 100644
View file @
f5a7032c
File added
project/resource/svga/盲盒选中-输出.svga
0 → 100644
View file @
f5a7032c
File added
project/resource/svga/首页元素循环-输出.svga
0 → 100644
View file @
f5a7032c
File added
project/src/SkinJson.ts
View file @
f5a7032c
...
@@ -242,10 +242,10 @@ export const SkinJson ={
...
@@ -242,10 +242,10 @@ export const SkinJson ={
{
{
"name"
:
"index_moneytips2"
,
"name"
:
"index_moneytips2"
,
"x"
:
608
,
"x"
:
608
,
"y"
:
11
33
,
"y"
:
11
27
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX
"
,
"text"
:
"
0
"
,
"size"
:
32
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
@@ -266,10 +266,10 @@ export const SkinJson ={
...
@@ -266,10 +266,10 @@ export const SkinJson ={
{
{
"name"
:
"index_timestips2"
,
"name"
:
"index_timestips2"
,
"x"
:
255
,
"x"
:
255
,
"y"
:
11
32
,
"y"
:
11
27
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX
"
,
"text"
:
"
0
"
,
"size"
:
32
,
"size"
:
32
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
@@ -290,10 +290,10 @@ export const SkinJson ={
...
@@ -290,10 +290,10 @@ export const SkinJson ={
{
{
"name"
:
"index_costtips"
,
"name"
:
"index_costtips"
,
"x"
:
322
,
"x"
:
322
,
"y"
:
43
4
,
"y"
:
43
0
,
"type"
:
"text"
,
"type"
:
"text"
,
"props"
:
{
"props"
:
{
"text"
:
"
XX
积分/次"
,
"text"
:
"
0
积分/次"
,
"size"
:
30
,
"size"
:
30
,
"fillColor"
:
"#000000"
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
"textAlpha"
:
1
...
...
project/src/WebNetName.ts
View file @
f5a7032c
...
@@ -19,5 +19,9 @@
...
@@ -19,5 +19,9 @@
/**
/**
* 获取规则
* 获取规则
*/
*/
projectRule
=
"/projectx/{projectId}/projectRule.query"
projectRule
=
"/projectx/{projectId}/projectRule.query"
,
/**
* 获取首页数据
*/
projectIndex
=
"/projectx/{projectId}/dazzle/index.do"
}
}
\ No newline at end of file
project/src/
template
/RulePanel.ts
→
project/src/
panels
/RulePanel.ts
View file @
f5a7032c
File moved
project/src/scenes/IndexScene.ts
View file @
f5a7032c
...
@@ -10,10 +10,12 @@ import { notEnoughMoneyPanel } from "../panels/notEnoughMoney";
...
@@ -10,10 +10,12 @@ import { notEnoughMoneyPanel } from "../panels/notEnoughMoney";
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
PrizePanel
}
from
"../panels/prize"
;
import
{
SharePanel
}
from
"../panels/share"
;
import
{
SharePanel
}
from
"../panels/share"
;
import
{
timesNotEnoughPanel
}
from
"../panels/timesNotEnough"
;
import
{
timesNotEnoughPanel
}
from
"../panels/timesNotEnough"
;
import
{
RulePanel
}
from
"../
template
/RulePanel"
;
import
{
RulePanel
}
from
"../
panels
/RulePanel"
;
import
{
Box
}
from
"./Box"
;
import
{
Box
}
from
"./Box"
;
import
{
BoxGroup
}
from
"./BoxGroup"
;
import
{
BoxGroup
}
from
"./BoxGroup"
;
import
{
ScrollItem
}
from
"./ScrollItem"
;
import
{
ScrollItem
}
from
"./ScrollItem"
;
import
{
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
let
boxGroup
;
let
boxGroup
;
...
@@ -29,8 +31,8 @@ export class IndexScene extends Scene {
...
@@ -29,8 +31,8 @@ export class IndexScene extends Scene {
start
()
{
start
()
{
super
.
start
();
super
.
start
();
this
.
getIndex
();
showPanel
(
SharePanel
);
//
showPanel(SharePanel);
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
getObject
(
this
,
'index_sharetips'
).
visible
=
false
;
this
.
initContainer
();
this
.
initContainer
();
this
.
initmask
();
this
.
initmask
();
...
@@ -71,8 +73,20 @@ export class IndexScene extends Scene {
...
@@ -71,8 +73,20 @@ export class IndexScene extends Scene {
}
}
toRule
()
{
toRule
()
{
// showPanel(SharePanel);
showPanel
(
RulePanel
);
console
.
log
(
"1111111"
)
}
getIndex
=
async
()
=>
{
const
result
=
await
sendWebNet
(
WebNetName
.
projectIndex
);
if
(
!
result
.
success
)
return
;
if
(
result
&&
result
.
data
&&
result
.
data
.
type
==
2
)
{
const
reDegree
=
getObject
(
this
,
'index_timestips2'
);
reDegree
.
text
=
result
.
data
.
surplusCount
;
const
credits
=
getObject
(
this
,
'index_moneytips2'
);
credits
.
text
=
result
.
data
.
credits
;
const
needCredits
=
getObject
(
this
,
'index_costtips'
);
needCredits
.
text
=
result
.
data
.
needCredits
+
"积分/次"
;
}
}
}
}
}
project/src/template/StartScene.ts
View file @
f5a7032c
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
showPanel
,
showWaiting
,
hideWaiting
,
showToast
,
changeScene
}
from
"../../module/ctrls"
;
import
{
showPanel
,
showWaiting
,
hideWaiting
,
showToast
,
changeScene
}
from
"../../module/ctrls"
;
import
{
RulePanel
}
from
"./RulePanel"
;
import
{
RulePanel
}
from
".
./panels
/RulePanel"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
GDispatcher
}
from
"../Main"
;
import
{
GDispatcher
}
from
"../Main"
;
...
...
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