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
0b717947
Commit
0b717947
authored
Dec 24, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d6d9b4ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
11 deletions
+39
-11
detail2.jsx
project/src/pages/detail2/detail2.jsx
+1
-1
main3.jsx
project/src/pages/main3/main3.jsx
+15
-4
main3.less
project/src/pages/main3/main3.less
+23
-6
No files found.
project/src/pages/detail2/detail2.jsx
View file @
0b717947
...
@@ -18,7 +18,7 @@ class Detail2 extends Component {
...
@@ -18,7 +18,7 @@ class Detail2 extends Component {
componentDidMount
()
{
componentDidMount
()
{
API
.
pageList
({
API
.
pageList
({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
20
pageSize
:
999999
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
'pagelist '
,
res
)
console
.
log
(
'pagelist '
,
res
)
this
.
setState
({
list
:
res
})
this
.
setState
({
list
:
res
})
...
...
project/src/pages/main3/main3.jsx
View file @
0b717947
...
@@ -26,6 +26,13 @@ class Main3 extends Component {
...
@@ -26,6 +26,13 @@ class Main3 extends Component {
};
};
}
}
onclick_main3_role
=
()
=>
{
this
.
setState
({
rolepop
:
1
})
setTimeout
(()
=>
{
this
.
setState
({
rolepop
:
0
})
},
3000
);
}
gotoURL
=
(
type
)
=>
{
gotoURL
=
(
type
)
=>
{
const
urlmap
=
{
const
urlmap
=
{
ganji
:
'https://baidu.com?ganji'
,
ganji
:
'https://baidu.com?ganji'
,
...
@@ -70,6 +77,8 @@ class Main3 extends Component {
...
@@ -70,6 +77,8 @@ class Main3 extends Component {
this
.
initEvent
();
this
.
initEvent
();
getSVGA
(
'//yun.duiba.com.cn/spark/assets/37b62d421a7d224b291960c898bdc9fd1824f561.svga'
,
'.main3_role'
)
getSVGA
(
'//yun.duiba.com.cn/spark/assets/37b62d421a7d224b291960c898bdc9fd1824f561.svga'
,
'.main3_role'
)
getSVGA
(
'//yun.duiba.com.cn/spark/assets/8928d4a90feb4614b76753de25ad3694f85c11d6.svga'
,
'.main3_btn_jingcai2'
)
getSVGA
(
'//yun.duiba.com.cn/spark/assets/327e6a094060ad20d67bfccc16ffe42f20adc1d1.svga'
,
'.main3_cursor '
)
if
(
this
.
props
.
data
&&!
this
.
props
.
data
.
isnewUser
)
{
//不是新用户
if
(
this
.
props
.
data
&&!
this
.
props
.
data
.
isnewUser
)
{
//不是新用户
API
.
signInfo
().
then
((
res
)
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
...
@@ -89,6 +98,7 @@ class Main3 extends Component {
...
@@ -89,6 +98,7 @@ class Main3 extends Component {
//首页信息显示更新
//首页信息显示更新
freshHomeInfo
()
{
freshHomeInfo
()
{
let
homeinfo
=
dataCenter
.
getData
(
Store
.
homeinfo
);
let
homeinfo
=
dataCenter
.
getData
(
Store
.
homeinfo
);
if
(
!
homeinfo
)
return
;
console
.
log
(
'freshHomeInfo'
,
homeinfo
.
userInfo
);
console
.
log
(
'freshHomeInfo'
,
homeinfo
.
userInfo
);
if
(
homeinfo
.
userInfo
)
if
(
homeinfo
.
userInfo
)
this
.
setState
({
this
.
setState
({
...
@@ -229,12 +239,14 @@ class Main3 extends Component {
...
@@ -229,12 +239,14 @@ class Main3 extends Component {
uuid=
"def4d721-bfe0-4c42-970c-40d99e1c2944"
uuid=
"def4d721-bfe0-4c42-970c-40d99e1c2944"
src=
{
this
.
state
.
resList
[
'82a28387-28f0-4e49-856a-dbe5e981bbb1'
].
url
}
src=
{
this
.
state
.
resList
[
'82a28387-28f0-4e49-856a-dbe5e981bbb1'
].
url
}
/>
/>
<
div
className=
"main3_btn_jingcai2 "
/>
<
img
<
img
onClick=
{
this
.
onclick_jingcai
}
onClick=
{
this
.
onclick_jingcai
}
className=
"main3_btn_jingcai md4"
className=
"main3_btn_jingcai md4"
uuid=
"de6b0150-9221-439d-adf7-ec3e3ad5466e"
uuid=
"de6b0150-9221-439d-adf7-ec3e3ad5466e"
src=
{
this
.
state
.
resList
[
'8d1cc843-b298-42e1-a092-954edfcf93e2'
].
url
}
src=
{
this
.
state
.
resList
[
'8d1cc843-b298-42e1-a092-954edfcf93e2'
].
url
}
/>
/>
</
div
>
</
div
>
<
img
<
img
onClick=
{
()
=>
this
.
gotoURL
(
'wodeejia'
)
}
onClick=
{
()
=>
this
.
gotoURL
(
'wodeejia'
)
}
...
@@ -266,12 +278,11 @@ class Main3 extends Component {
...
@@ -266,12 +278,11 @@ class Main3 extends Component {
uuid=
"cbdb75d5-b009-403b-98b2-056b8bdfaa71"
uuid=
"cbdb75d5-b009-403b-98b2-056b8bdfaa71"
src=
{
this
.
state
.
resList
[
'3e030f90-a5de-4c99-b717-9b9e89b7eaa1'
].
url
}
src=
{
this
.
state
.
resList
[
'3e030f90-a5de-4c99-b717-9b9e89b7eaa1'
].
url
}
/>
/>
<
img
<
div
className=
"main3_cursor "
className=
"main3_cursor "
uuid=
"58323460-dc19-4377-b25c-fb1cabf8a29b"
src=
{
this
.
state
.
resList
[
'd86e633a-b211-4d24-b56b-90da3da4a4e5'
].
url
}
/>
/>
<
div
className=
"main3_role "
/>
<
div
className=
"main3_role "
onClick=
{
this
.
onclick_main3_role
}
/>
{
rolepop
&&
<
img
{
rolepop
&&
<
img
className=
"main3_rolepop "
className=
"main3_rolepop "
uuid=
"c27fef65-4506-42f8-85df-207999e11de1"
uuid=
"c27fef65-4506-42f8-85df-207999e11de1"
...
...
project/src/pages/main3/main3.less
View file @
0b717947
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
top: 38px;
top: 38px;
position: fixed;
position: fixed;
display: block;
display: block;
z-index: 99999;
.main3_userinfo {
.main3_userinfo {
width: 375px;
width: 375px;
height: 97px;
height: 97px;
...
@@ -95,6 +96,16 @@
...
@@ -95,6 +96,16 @@
left: 11px;
left: 11px;
top: 130px;
top: 130px;
position: absolute;
position: absolute;
opacity: 0;
}
.main3_btn_jingcai2 {
touch-action: none;
pointer-events: none;
width: 300px;
height: 300px;
left: -70px;
top: 10px;
position: absolute;
}
}
}
}
.main3_btn5 {
.main3_btn5 {
...
@@ -135,15 +146,21 @@
...
@@ -135,15 +146,21 @@
opacity: 0;
opacity: 0;
}
}
.main3_cursor {
.main3_cursor {
width: 88px;
touch-action: none;
height: 104px;
pointer-events: none;
left: 540px;
width: 200px;
top: 610px;
height: 200px;
left: 490px;
top: 600px;
position: absolute;
position: absolute;
canvas{
touch-action: none;
pointer-events: none;
}
}
}
.main3_role {
.main3_role {
width:
124
px;
width:
200
px;
height:
165
px;
height:
200
px;
left: 417px;
left: 417px;
top: 1337px;
top: 1337px;
position: absolute;
position: absolute;
...
...
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