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
263cda1c
Commit
263cda1c
authored
Dec 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:wildfirecode13/icbcrpg
parents
bf481ce5
5efcd2f4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
293 additions
and
22 deletions
+293
-22
app.less
project/src/app.less
+9
-0
select.jsx
project/src/components/select/select.jsx
+1
-1
select.less
project/src/components/select/select.less
+6
-8
loading.jsx
project/src/pages/loading/loading.jsx
+1
-1
loading.less
project/src/pages/loading/loading.less
+4
-3
bundle.js
project/src/pages/main3/bundle.js
+20
-3
main3.jsx
project/src/pages/main3/main3.jsx
+248
-3
main3.less
project/src/pages/main3/main3.less
+4
-3
No files found.
project/src/app.less
View file @
263cda1c
...
...
@@ -63,4 +63,13 @@ body {
.btn_heartbeats {
transform-origin: center center;
animation: heartbeats 0.775s infinite;
}
.diacontmidpos {
position: fixed;
top: 0%;
left: 0%;
bottom: 0%;
right: 0%;
margin: auto;
}
\ No newline at end of file
project/src/components/select/select.jsx
View file @
263cda1c
...
...
@@ -124,7 +124,7 @@ class Select extends Component {
render
()
{
const
{
nshowidx
,
changed
,
selected
}
=
this
.
state
;
return
(
<
div
className=
"select "
uuid=
"298ea3b7-efbb-42ac-adea-ee68aa1db627"
>
<
div
className=
"select
diacontmidpos
"
uuid=
"298ea3b7-efbb-42ac-adea-ee68aa1db627"
>
<
div
className=
"cardone"
uuid=
"36334c7a-26df-4f9e-83d3-6ac81e49d6db"
ref=
"cardone"
>
<
img
className=
"select_role1 "
...
...
project/src/components/select/select.less
View file @
263cda1c
.select {
width: 656px;
height: 1140px;
left: 47px;
top: 50%;
margin-top: -570px;
position: absolute;
// left: 47px;
// top: 228px;
// position: absolute;
.cardone {
transform-origin: 50% 50%;
...
...
@@ -106,15 +104,15 @@
animation: opacurAnilat 0.5 ease 0s 1 normal;
}
.planame{
width:
405
px;
height: 6
3
px;
width:
380
px;
height: 6
5
px;
position: absolute;
top:930px;
left: 125px;
appearance: none;
font-size: 28px;
border-radius: 100px;
border:
1
px solid #c8cccf;
border:
0
px solid #c8cccf;
color: #6a6f77;
outline: 0;
margin: auto;
...
...
project/src/pages/loading/loading.jsx
View file @
263cda1c
...
...
@@ -100,7 +100,7 @@ class Loading extends Component {
render
()
{
return
(
<
div
className=
"loading "
uuid=
"b325d068-5750-48c1-8447-29b6f572e955"
>
<
div
className=
"loading
diacontmidpos
"
uuid=
"b325d068-5750-48c1-8447-29b6f572e955"
>
<
img
className=
"loading_bg "
uuid=
"caa1574c-edd4-4b5c-8332-18002df91464"
...
...
project/src/pages/loading/loading.less
View file @
263cda1c
.loading {
width: 750px;
height: 1624px;
position: absolute;
// width: 750px;
// height: 1624px;
// position: absolute;
.loading_bg {
width: 750px;
height: 1624px;
...
...
project/src/pages/main3/bundle.js
View file @
263cda1c
...
...
@@ -61,7 +61,7 @@ var GameStage = /** @class */ (function (_super) {
this
.
guideconfig
=
this
.
props
[
'guideconfig'
];
this
.
skipbtn
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
skipGuide
,
this
);
this
.
touchrect
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
toNextLevel
,
this
);
this
.
setGuideShow
(
);
this
.
dispatchOutEvent
(
"canvasready"
,
null
);
};
/**
* 事件回调
...
...
@@ -69,16 +69,33 @@ var GameStage = /** @class */ (function (_super) {
* @param payload
*/
GameStage
.
prototype
.
onEvent
=
function
(
type
,
payload
)
{
console
.
error
(
"游戏内监听===》"
,
type
,
payload
);
switch
(
type
)
{
case
"setStepData"
:
var
step
=
payload
.
step
;
var
stepdata
=
payload
.
stepdata
;
this
.
setStepData
(
payload
);
break
;
case
"setStepConfig"
:
this
.
setStepConfig
(
payload
);
break
;
case
"startGuide"
:
this
.
step
=
1
;
this
.
setGuideShow
();
break
;
default
:
console
.
error
(
"为定义监听类型===》"
,
payload
);
break
;
}
};
//设定单个关卡
GameStage
.
prototype
.
setStepData
=
function
(
payload
)
{
var
step
=
payload
.
step
;
var
stepdata
=
payload
.
stepdata
;
this
.
guideconfig
[
step
]
=
stepdata
;
};
//一次设定所有的引导数据
GameStage
.
prototype
.
setStepConfig
=
function
(
payload
)
{
this
.
guideconfig
=
payload
;
};
/**
* 销毁回调
*/
...
...
project/src/pages/main3/main3.jsx
View file @
263cda1c
...
...
@@ -73,17 +73,262 @@ class Main3 extends Component {
needguide
:
needguide
});
}
//引导数据
guideconfig
=
{};
onReady
(
widget
)
{
_widget
=
widget
;
}
//新手引导的位置设定
setGuideConfig
()
{
let
clientWidth
=
document
.
body
.
clientWidth
;
let
clientHeight
=
document
.
body
.
clientHeight
;
let
canvaswid
=
750
;
let
canvashei
=
clientHeight
*
750
/
clientWidth
;
console
.
log
(
"CANVAS宽高===》"
,
canvaswid
,
canvashei
);
let
holedata
=
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
}
let
txtdata
=
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
}
let
roledata
=
[
{
rolex
:
375
,
roley
:
911
,
roletex
:
"guide2_1"
}
];
let
nextbtndata
=
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
}
let
skipbtndata
=
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
9
,
skiptex
:
"skipbtn"
,
};
let
touchdata
=
{
touchx
:
0
,
touchy
:
0
,
touchsize
:
[
canvaswid
,
canvashei
]
}
this
.
guideconfig
[
1
]
=
{
hole
:
null
,
txt
:
null
,
role
:
[
{
rolex
:
40
,
roley
:
(
canvashei
-
764
)
/
2
,
roletex
:
"guide1"
}
],
nextbtn
:
null
,
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
1
,
stepdata
:
this
.
guideconfig
[
1
]
});
this
.
guideconfig
[
2
]
=
{
hole
:
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
},
txt
:
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
2
,
stepdata
:
this
.
guideconfig
[
2
]
});
this
.
guideconfig
[
3
]
=
{
hole
:
{
holetype
:
"cirect"
,
holex
:
600
,
holey
:
26
,
holesize
:
[
135
,
440
,
40
]
},
txt
:
{
text
:
"点击图标您可查看规则、进行分享和签到
\n
\n
偷偷告诉您,连签7天可获得大额欢趣豆哦~"
,
txtwidth
:
455
,
txtx
:
100
,
txty
:
245
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
100
,
btny
:
520
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
3
,
stepdata
:
this
.
guideconfig
[
3
]
});
this
.
guideconfig
[
4
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
185
,
holey
:
465
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"欢趣豆可以兑换立减金,
\n
进入趣赶集即可进行
\n
兑换哦~"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
357
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
375
,
btny
:
536
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
4
,
stepdata
:
this
.
guideconfig
[
4
]
});
this
.
guideconfig
[
5
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
540
,
holey
:
600
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"农场主集结~在这里
\n
就是向往的生活!
\n
收获成果的同时还可
\n
以兑换丰厚礼物哦"
,
txtwidth
:
320
,
txtx
:
55
,
txty
:
580
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
55
,
btny
:
780
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
5
,
stepdata
:
this
.
guideconfig
[
5
]
});
this
.
startGuide
();
}
startGuide
()
{
_widget
&&
_widget
.
dispatchInEvent
(
"startGuide"
);
}
onEvent
(
type
,
payload
)
{
console
.
log
(
type
,
payload
);
switch
(
type
)
{
case
"canvasready"
:
this
.
setGuideConfig
();
break
;
case
"guidecomplete"
:
dataCenter
.
setData
(
Store
.
needguide
,
false
);
break
;
default
:
break
;
}
...
...
@@ -99,7 +344,7 @@ class Main3 extends Component {
render
()
{
const
{
avatar
,
nickname
,
num
,
needguide
}
=
this
.
state
;
return
(
<
div
className=
"main3 "
uuid=
"8754a9d1-7453-474b-b722-7cb71483ae85"
>
<
div
className=
"main3
diacontmidpos
"
uuid=
"8754a9d1-7453-474b-b722-7cb71483ae85"
>
<
img
className=
"main3_bg "
uuid=
"25a6c3f8-3f78-4758-b2ab-5bcbfaa0d8bc"
...
...
project/src/pages/main3/main3.less
View file @
263cda1c
.main3 {
width: 750px;
height: 1624px;
position: absolute;
// width: 750px;
// height: 1624px;
// position: absolute;
overflow-x: hidden;
.main3_bg {
width: 750px;
height: 1624px;
...
...
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