Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
22468990
Commit
22468990
authored
Dec 30, 2020
by
李志军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
a40ad2e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
30 deletions
+39
-30
index.html
public/index.html
+1
-1
app.less
src/app.less
+1
-0
comrulep.jsx
src/components/comrulep/comrulep.jsx
+19
-13
comrulep.less
src/components/comrulep/comrulep.less
+18
-16
No files found.
public/index.html
View file @
22468990
...
...
@@ -9,7 +9,7 @@
<script
id=
"scriptjs"
src=
"//yun.duiba.com.cn/js-libs/px-token/0.0.4/px-token.min.js"
></script>
<script
src =
"//yun.duiba.com.cn/js-libs/rem/1.1.0/rem.min.js"
>
</script>
<script
src=
"//yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"
></script>
<title>
瑞华集步
</title>
<title>
微众小康
</title>
<script>
var
vConsole
=
new
VConsole
();
</script>
...
...
src/app.less
View file @
22468990
...
...
@@ -7,4 +7,5 @@ body {
font-size: 24px;
width: 100%;
height: 100%;
user-select: none;
}
src/components/comrulep/comrulep.jsx
View file @
22468990
'use strict'
;
"use strict"
;
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
import
React
,
{
Component
}
from
"react"
;
import
resList
from
"../../resconfig/resList"
;
import
'./comrulep.less'
;
import
"./comrulep.less"
;
class
Comrulep
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
componentDidMount
(){
let
msg
=
this
.
props
.
rule
document
.
getElementsByClassName
(
"rule"
)[
0
].
innerHTML
=
msg
componentDidMount
()
{
console
.
log
(
'rule'
)
// let msg = this.props.rule
// document.getElementsByClassName("rule")[0].innerHTML = msg
}
render
()
{
const
{
rule
,
onClose
}
=
this
.
props
;
return
(
<
div
className=
"rulep"
>
<
div
className=
"bgModal"
/>
<
img
className=
"rulebg"
src=
{
this
.
state
.
resList
[
'bf406e35-b4dc-49bb-aaec-1a97a58474d4'
].
url
}
/>
<
label
className=
"rule"
>
{
/* {rule} */
}
</
label
>
<
img
className=
"ruleclo"
onClick=
{
onClose
}
src=
{
this
.
state
.
resList
[
'c9098829-9dc3-4561-887d-e2a9b3a60e43'
].
url
}
/>
<
div
className=
"bgModal"
/>
<
img
className=
"rulebg"
src=
{
this
.
state
.
resList
[
"bf406e35-b4dc-49bb-aaec-1a97a58474d4"
].
url
}
/>
<
div
className=
"rule"
dangerouslySetInnerHTML=
{
{
__html
:
rule
}
}
/>
<
img
className=
"ruleclo"
onClick=
{
onClose
}
src=
{
this
.
state
.
resList
[
"c9098829-9dc3-4561-887d-e2a9b3a60e43"
].
url
}
/>
</
div
>
);
}
...
...
src/components/comrulep/comrulep.less
View file @
22468990
.rulep {
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width: 630px;
height: 775px;
opacity: 1;
.bgModal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: black;
opacity: 0.8;
width: 750px;
height: 1624px;
top: 0px;
left: 0px;
}
// top: 363px;
...
...
@@ -31,13 +35,12 @@
.rule {
width: 518px;
max-height: 54
0px;
opacity: 1
;
top: 582px
;
left: 120px
;
height: 55
0px;
top: 170px
;
left: 50%
;
transform: translateX(-50%)
;
overflow: scroll;
position: absolute;
transform-origin: 0px 0px 0px;
font-size: 24px;
color: rgba(41, 41, 41, 1);
}
...
...
@@ -46,9 +49,8 @@
width: 62px;
height: 62px;
opacity: 0.4;
top:
312
px;
left: 640px
;
top:
-50
px;
right: 0
;
position: absolute;
transform-origin: 0px 0px 0px;
}
}
\ No newline at end of file
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