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
f05b612c
Commit
f05b612c
authored
Dec 24, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2c5e04c3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
20 deletions
+36
-20
index.js
project/mock/e-family/index.js
+1
-1
rule.jsx
project/src/components/rule/rule.jsx
+6
-6
rule.less
project/src/components/rule/rule.less
+2
-1
sign.jsx
project/src/components/sign/sign.jsx
+5
-4
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+4
-5
main3.jsx
project/src/pages/main3/main3.jsx
+17
-3
main3.less
project/src/pages/main3/main3.less
+1
-0
No files found.
project/mock/e-family/index.js
View file @
f05b612c
...
@@ -15,7 +15,7 @@ export const updateUinfo = {
...
@@ -15,7 +15,7 @@ export const updateUinfo = {
"code"
:
null
,
"code"
:
null
,
"data"
:
1
,
"data"
:
1
,
"message"
:
'dfs'
,
"message"
:
'dfs'
,
"success"
:
fals
e
"success"
:
tru
e
}
}
export
const
doshare
=
{
export
const
doshare
=
{
"code"
:
null
,
"code"
:
null
,
...
...
project/src/components/rule/rule.jsx
View file @
f05b612c
...
@@ -2,14 +2,17 @@
...
@@ -2,14 +2,17 @@
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
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
netErrMsg
,
Role
,
Store
}
from
'../../dataCenter'
;
import
'./rule.less'
;
import
'./rule.less'
;
class
Rule
extends
Component
{
class
Rule
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
const
ruledata
=
dataCenter
.
getData
(
Store
.
ruledata
);
console
.
log
(
'ruledata'
,
ruledata
)
this
.
state
=
{
this
.
state
=
{
resList
:
resList
,
resList
:
resList
,
ruledata
};
};
}
}
...
@@ -22,10 +25,7 @@ class Rule extends Component {
...
@@ -22,10 +25,7 @@ class Rule extends Component {
src=
{
this
.
state
.
resList
[
'8fbd72d3-7dcf-40b4-a22d-0ec8499725f8'
].
url
}
src=
{
this
.
state
.
resList
[
'8fbd72d3-7dcf-40b4-a22d-0ec8499725f8'
].
url
}
/>
/>
<
span
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
<
span
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
1.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
{
this
.
state
.
ruledata
}
2.活动规则活动规则活动规则活动规则活动规则活动规则活动规则
3.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
4.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
</
span
>
</
span
>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
onClick=
{
this
.
props
.
onClose
}
...
...
project/src/components/rule/rule.less
View file @
f05b612c
...
@@ -14,12 +14,13 @@
...
@@ -14,12 +14,13 @@
position: absolute;
position: absolute;
}
}
.rule_txt {
.rule_txt {
width: 4
5
2px;
width: 4
6
2px;
height: 515px;
height: 515px;
left: 70px;
left: 70px;
top: 183px;
top: 183px;
position: absolute;
position: absolute;
font-size: 26px;
font-size: 26px;
overflow: scroll;
color: #535353;
color: #535353;
}
}
.rule_close {
.rule_close {
...
...
project/src/components/sign/sign.jsx
View file @
f05b612c
'use strict'
;
'use strict'
;
import
{
Toast
}
from
'@spark/ui'
;
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
API
from
'../../api'
;
import
{
getHomeInfo
}
from
'../../dataCenter'
;
import
{
Aup
}
from
'../../pop'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
'./sign.less'
;
import
'./sign.less'
;
import
{
Toast
,
Loading
,
Badge
,
CountDownButton
,
InputNumber
}
from
'@spark/ui'
;
import
API
from
'../../api'
;
class
Sign
extends
Component
{
class
Sign
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -29,7 +30,7 @@ class Sign extends Component {
...
@@ -29,7 +30,7 @@ class Sign extends Component {
API
.
dosign
().
then
((
res
)
=>
{
API
.
dosign
().
then
((
res
)
=>
{
const
continuousDays
=
this
.
state
.
continuousDays
+
1
;
const
continuousDays
=
this
.
state
.
continuousDays
+
1
;
this
.
setState
({
todaySigned
:
true
,
continuousDays
:
continuousDays
});
this
.
setState
({
todaySigned
:
true
,
continuousDays
:
continuousDays
});
this
.
props
.
ctx
.
fresh
HomeInfo
();
get
HomeInfo
();
if
(
res
.
data
.
type
!==
'joyBean'
){
if
(
res
.
data
.
type
!==
'joyBean'
){
Aup
.
show
(
'PrizeRule'
,
res
.
data
,
this
);
Aup
.
show
(
'PrizeRule'
,
res
.
data
,
this
);
...
...
project/src/components/userinfo/userinfo.jsx
View file @
f05b612c
'use strict'
;
'use strict'
;
import
{
Toast
}
from
'@spark/ui'
;
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Aup
}
from
'../../pop'
;
import
API
from
'../../api'
;
import
{
getHomeInfo
}
from
'../../dataCenter'
;
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
import
'./userinfo.less'
;
import
'./userinfo.less'
;
import
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
netErrMsg
,
Role
,
Store
}
from
'../../dataCenter'
;
import
{
Toast
,
Loading
,
Badge
,
CountDownButton
,
InputNumber
}
from
'@spark/ui'
;
import
API
from
'../../api'
;
class
Userinfo
extends
Component
{
class
Userinfo
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -26,7 +25,7 @@ class Userinfo extends Component {
...
@@ -26,7 +25,7 @@ class Userinfo extends Component {
API
.
updateUinfo
({
type
:
2
,
nickName
:
planame
}).
then
(
res
=>
{
API
.
updateUinfo
({
type
:
2
,
nickName
:
planame
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
);
console
.
log
(
'res'
,
res
);
if
(
res
&&
res
.
success
)
{
if
(
res
&&
res
.
success
)
{
this
.
props
.
ctx
.
fresh
HomeInfo
();
get
HomeInfo
();
this
.
props
.
onClose
();
this
.
props
.
onClose
();
}
else
{
}
else
{
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
...
...
project/src/pages/main3/main3.jsx
View file @
f05b612c
...
@@ -11,6 +11,7 @@ import { getStepData, widgetConfig } from './widgetConfig';
...
@@ -11,6 +11,7 @@ import { getStepData, widgetConfig } from './widgetConfig';
import
{
GDispatcher
}
from
"spark-wrapper-fyge"
import
{
GDispatcher
}
from
"spark-wrapper-fyge"
import
dataCenter
,
{
Store
}
from
'../../dataCenter'
;
import
dataCenter
,
{
Store
}
from
'../../dataCenter'
;
let
_widget
;
let
_widget
;
class
Main3
extends
Component
{
class
Main3
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
...
@@ -24,8 +25,16 @@ class Main3 extends Component {
...
@@ -24,8 +25,16 @@ class Main3 extends Component {
};
};
}
}
freshHomeInfo
()
{
gotoURL
=
(
type
)
=>
{
this
.
freshHomeInfo
();
const
urlmap
=
{
ganji
:
'https://baidu.com?ganji'
,
equnongchang
:
'https://baidu.com?equnongchang'
,
renwudating
:
'https://baidu.com?renwudating'
,
xiaomaibu
:
'https://baidu.com?xiaomaibu'
,
wodeejia
:
'https://baidu.com?wodeejia'
,
}
console
.
log
(
'goto'
,
urlmap
[
type
])
location
.
href
=
urlmap
[
type
]
}
}
onClick_userinfo
=
()
=>
{
onClick_userinfo
=
()
=>
{
...
@@ -224,26 +233,31 @@ class Main3 extends Component {
...
@@ -224,26 +233,31 @@ class Main3 extends Component {
/>
/>
</
div
>
</
div
>
<
img
<
img
onClick=
{
()
=>
this
.
gotoURL
(
'wodeejia'
)
}
className=
"main3_btn5 md9"
className=
"main3_btn5 md9"
uuid=
"72de3087-a678-4c8e-90f0-98174bb08c70"
uuid=
"72de3087-a678-4c8e-90f0-98174bb08c70"
src=
{
this
.
state
.
resList
[
'bd2d0b8b-f567-4146-be92-dc1704f06b4a'
].
url
}
src=
{
this
.
state
.
resList
[
'bd2d0b8b-f567-4146-be92-dc1704f06b4a'
].
url
}
/>
/>
<
img
<
img
onClick=
{
()
=>
this
.
gotoURL
(
'xiaomaibu'
)
}
className=
"main3_btn4 md8"
className=
"main3_btn4 md8"
uuid=
"031a922c-6690-49a4-9659-2055ef8c174f"
uuid=
"031a922c-6690-49a4-9659-2055ef8c174f"
src=
{
this
.
state
.
resList
[
'197b83b3-3d8a-47ed-bede-dd07bf533edc'
].
url
}
src=
{
this
.
state
.
resList
[
'197b83b3-3d8a-47ed-bede-dd07bf533edc'
].
url
}
/>
/>
<
img
<
img
className=
"md7"
onClick=
{
()
=>
this
.
gotoURL
(
'renwudating'
)
}
className=
"main3_btn3 md7"
uuid=
"06d08e49-d168-4d83-93cb-422e8053ffa1"
uuid=
"06d08e49-d168-4d83-93cb-422e8053ffa1"
src=
{
this
.
state
.
resList
[
'febc6038-d4f1-48ad-a855-b45656bdc9f9'
].
url
}
src=
{
this
.
state
.
resList
[
'febc6038-d4f1-48ad-a855-b45656bdc9f9'
].
url
}
/>
/>
<
img
<
img
onClick=
{
()
=>
this
.
gotoURL
(
'equnongchang'
)
}
className=
"main3_btn2 md6"
className=
"main3_btn2 md6"
uuid=
"7bd21565-f46e-4c72-ad2c-d978d90ff4b3"
uuid=
"7bd21565-f46e-4c72-ad2c-d978d90ff4b3"
src=
{
this
.
state
.
resList
[
'b1c1b1ea-7d5e-40b5-b95f-e66ed468ac18'
].
url
}
src=
{
this
.
state
.
resList
[
'b1c1b1ea-7d5e-40b5-b95f-e66ed468ac18'
].
url
}
/>
/>
<
img
<
img
onClick=
{
()
=>
this
.
gotoURL
(
'ganji'
)
}
className=
"main3_btn1 md5"
className=
"main3_btn1 md5"
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
}
...
...
project/src/pages/main3/main3.less
View file @
f05b612c
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
.main3_btn1 {
.main3_btn1 {
width: 283px;
width: 283px;
height: 303px;
height: 303px;
left:0;
top: 308px;
top: 308px;
position: absolute;
position: absolute;
opacity: 0;
opacity: 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