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
842aba95
Commit
842aba95
authored
Dec 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1f01001c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
27 deletions
+37
-27
launch.json
project/.vscode/launch.json
+15
-0
index.js
project/mock/e-family/index.js
+1
-1
detail2.less
project/src/pages/detail2/detail2.less
+10
-16
loading.jsx
project/src/pages/loading/loading.jsx
+7
-1
main3.jsx
project/src/pages/main3/main3.jsx
+4
-9
No files found.
project/.vscode/launch.json
0 → 100644
View file @
842aba95
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit
:
https
:
//go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"chrome"
,
"request"
:
"launch"
,
"name"
:
"Launch Chrome against localhost"
,
"url"
:
"http://localhost:8088/"
,
"webRoot"
:
"${workspaceFolder}"
}
]
}
\ No newline at end of file
project/mock/e-family/index.js
View file @
842aba95
...
@@ -13,7 +13,7 @@ export const homeInfo = {
...
@@ -13,7 +13,7 @@ export const homeInfo = {
"figureId"
:
"3"
"figureId"
:
"3"
}
}
],
],
"newUser"
:
fals
e
,
"newUser"
:
tru
e
,
"userInfo"
:
{
"userInfo"
:
{
"figureId"
:
"1"
,
"figureId"
:
"1"
,
"joyBeans"
:
10000
,
"joyBeans"
:
10000
,
...
...
project/src/pages/detail2/detail2.less
View file @
842aba95
...
@@ -48,36 +48,30 @@
...
@@ -48,36 +48,30 @@
position: relative;
position: relative;
box-sizing: border-box;
box-sizing: border-box;
width: 618px;
width: 618px;
height: 91px;
height: 109px;
padding: 25px 0 0 ;
// width: 618px;
// height: 91px;
// left: 65px;
// top: 235px;
// position: absolute;
.detail2_item_title {
.detail2_item_title {
width: 193px;
//
width: 193px;
height: 23px;
//
height: 23px;
left: 53px;
left: 53px;
top:20px;
position: absolute;
position: absolute;
font-size: 24px;
font-size: 24px;
color: #474747;
color: #474747;
}
}
.detail2_item_day {
.detail2_item_day {
width: 284px;
//
width: 284px;
height: 16px;
//
height: 16px;
left: 52px;
left: 52px;
top:
4
2px;
top:
6
2px;
position: absolute;
position: absolute;
font-size: 20px;
font-size: 20px;
color: #949494;
color: #949494;
}
}
.detail2_item_num {
.detail2_item_num {
width: 88px;
//
width: 88px;
height: 31px;
//
height: 31px;
left: 455px;
left: 455px;
top:
8
px;
top:
23
px;
position: absolute;
position: absolute;
font-size: 40px;
font-size: 40px;
color: #474747;
color: #474747;
...
...
project/src/pages/loading/loading.jsx
View file @
842aba95
...
@@ -91,8 +91,14 @@ class Loading extends Component {
...
@@ -91,8 +91,14 @@ class Loading extends Component {
if
(
homeinfo
){
if
(
homeinfo
){
const
{
newUser
}
=
homeinfo
;
const
{
newUser
}
=
homeinfo
;
if
(
newUser
){
if
(
newUser
){
//新用户,走选择,然后再走引导,引导结束后,走签到
Aup
.
show
(
'Select'
,
{},
this
);
Aup
.
show
(
'Select'
,
{},
this
);
}
else
{
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
if
(
needPopup
)
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
})
}
}
}
}
}
}
...
...
project/src/pages/main3/main3.jsx
View file @
842aba95
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
API
from
'../../api'
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
'./main3.less'
;
import
'./main3.less'
;
import
{
CanvasWidget
}
from
'spark-utils'
;
import
{
CanvasWidget
}
from
'spark-utils'
;
...
@@ -29,7 +29,9 @@ class Main3 extends Component {
...
@@ -29,7 +29,9 @@ class Main3 extends Component {
}
}
onClick_signBtn
=
()
=>
{
onClick_signBtn
=
()
=>
{
Aup
.
show
(
'Sign'
,
{},
this
);
API
.
signInfo
().
then
((
res
)
=>
{
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
})
// console.log('onClick_signBtn')
// console.log('onClick_signBtn')
}
}
...
@@ -48,13 +50,6 @@ class Main3 extends Component {
...
@@ -48,13 +50,6 @@ class Main3 extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
initEvent
();
this
.
initEvent
();
// if (this.props.data) {
// setTimeout(() => {
// // Aup.show('PopRule', {}, this)
// // Aup.show('Userinfo', {}, this);
// // Aup.show('Sign', {}, this); // Aup.show('Select', {}, this);
// }, 200);
// }
}
}
initEvent
()
{
initEvent
()
{
GDispatcher
.
addEventListener
(
Store
.
homeinfo
,
this
.
freshHomeInfo
,
this
);
GDispatcher
.
addEventListener
(
Store
.
homeinfo
,
this
.
freshHomeInfo
,
this
);
...
...
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