Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
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
icbcRPG
Commits
8fe860be
Commit
8fe860be
authored
Dec 22, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loading引导选人暂存
parent
926081df
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
12 deletions
+23
-12
index.js
project/mock/e-family/index.js
+4
-1
package.json
project/package.json
+1
-1
select.jsx
project/src/components/select/select.jsx
+6
-6
dataCenter.js
project/src/dataCenter.js
+1
-0
bundle.js
project/src/pages/main3/bundle.js
+8
-4
widgetConfig.js
project/src/pages/main3/widgetConfig.js
+3
-0
No files found.
project/mock/e-family/index.js
View file @
8fe860be
...
...
@@ -14,7 +14,10 @@ export const homeInfo = {
export
const
updateUinfo
=
{
"code"
:
null
,
"data"
:
true
,
"data"
:
{
result
:
true
,
joyBeans
:
0
},
"message"
:
null
,
"success"
:
true
}
...
...
project/package.json
View file @
8fe860be
...
...
@@ -10,7 +10,7 @@
},
"dependencies"
:
{
"@spark/api-base"
:
"^1.0.11"
,
"@spark/guideact"
:
"^1.0.
2
"
,
"@spark/guideact"
:
"^1.0.
10
"
,
"@spark/projectx"
:
"^1.0.3"
,
"@spark/ui"
:
"^1.0.25"
,
"axios"
:
"^0.19.2"
,
...
...
project/src/components/select/select.jsx
View file @
8fe860be
...
...
@@ -130,13 +130,13 @@ class Select extends Component {
nickName
:
planame
,
figureId
:
Role
[
this
.
nshowidx
].
figureid
});
// updateuinfo = {
// "code": null,
// "data": true,
// "message": null,
// "success": true
// }
if
(
updateuinfo
&&
updateuinfo
.
success
){
if
(
updateuinfo
.
data
){
const
{
result
,
joyBeans
}
=
updateuinfo
.
data
;
if
(
result
){
dataCenter
.
setData
(
Store
.
newgoldnum
,
joyBeans
);
}
}
getHomeInfo
();
this
.
props
.
onClose
();
dataCenter
.
setData
(
Store
.
needguide
,
true
);
...
...
project/src/dataCenter.js
View file @
8fe860be
...
...
@@ -11,6 +11,7 @@ export const Store = {
//新手引导
needguide
:
"needguide"
,
newgoldnum
:
"newgoldnum"
,
}
//人物角色对应
export
let
Role
=
{
...
...
project/src/pages/main3/bundle.js
View file @
8fe860be
...
...
@@ -193,7 +193,7 @@ var GameStage = /** @class */ (function (_super) {
//步数渲染
GameStage
.
prototype
.
setGuideShow
=
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
stepdata
,
hole
,
txt
,
role
,
nextbtn
,
skipbtn
,
touch
,
holetype
,
holex
,
holey
,
holesize
,
cirectwid
,
cirecthei
,
cirectrad
,
dot1
,
dot2
,
dot3
,
dot4
,
dot5
,
dot6
,
dot7
,
dot8
,
text
,
txtwidth
,
txtx
,
txty
,
txtalign
,
_a
,
rolex
,
roley
,
_b
,
firstcont
,
svga
,
btnx
,
btny
,
btntex
,
skipx
,
skipy
,
skiptex
,
touchx
,
touchy
,
touchsize
;
var
stepdata
,
hole
,
txt
,
role
,
nextbtn
,
skipbtn
,
touch
,
holetype
,
holex
,
holey
,
holesize
,
cirectwid
,
cirecthei
,
cirectrad
,
dot1
,
dot2
,
dot3
,
dot4
,
dot5
,
dot6
,
dot7
,
dot8
,
text
,
txtwidth
,
txtx
,
txty
,
txtalign
,
_a
,
rolex
,
roley
,
_b
,
goldprize
,
firstcont
,
svga
,
btnx
,
btny
,
btntex
,
skipx
,
skipy
,
skiptex
,
touchx
,
touchy
,
touchsize
;
return
__generator
(
this
,
function
(
_c
)
{
switch
(
_c
.
label
)
{
case
0
:
...
...
@@ -281,7 +281,8 @@ var GameStage = /** @class */ (function (_super) {
_c
.
label
=
3
;
case
3
:
if
(
this
.
step
==
1
)
{
firstcont
=
this
.
getFirstTcont
();
goldprize
=
stepdata
.
goldprize
;
firstcont
=
this
.
getFirstTcont
(
goldprize
);
this
.
rolecont
.
addChild
(
firstcont
);
console
.
log
(
"添加firstCont===>"
,
firstcont
);
firstcont
.
x
=
rolex
-
300
;
...
...
@@ -345,7 +346,7 @@ var GameStage = /** @class */ (function (_super) {
});
});
};
GameStage
.
prototype
.
getFirstTcont
=
function
()
{
GameStage
.
prototype
.
getFirstTcont
=
function
(
goldprize
)
{
this
.
firstTcont
=
new
Container
();
this
.
firstTcont
.
addChild
(
new
Sprite
(
TextureCache
[
"guide1"
]));
this
.
firstTcont
.
width
=
633
;
...
...
@@ -355,7 +356,10 @@ var GameStage = /** @class */ (function (_super) {
this
.
firstTxt
.
size
=
30
;
this
.
firstTxt
.
x
=
266
;
this
.
firstTxt
.
y
=
186
;
this
.
firstTxt
.
text
=
"1000欢趣豆"
;
if
(
!
goldprize
)
{
goldprize
=
0
;
}
this
.
firstTxt
.
text
=
goldprize
+
"欢趣豆"
;
this
.
firstTcont
.
addChild
(
this
.
firstTxt
);
this
.
firstTcont
.
anchorX
=
390
;
this
.
firstTcont
.
anchorY
=
410
;
...
...
project/src/pages/main3/widgetConfig.js
View file @
8fe860be
import
dataCenter
,
{
Store
}
from
"../../dataCenter"
;
let
clientWidth
=
document
.
body
.
clientWidth
;
let
clientHeight
=
document
.
body
.
clientHeight
;
...
...
@@ -60,6 +62,7 @@ function getstep1() {
txt
:
null
,
role
:
roledata
,
nextbtn
:
null
,
goldprize
:
dataCenter
.
getData
(
Store
.
newgoldnum
)
||
0
,
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
...
...
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