Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
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
baiguangyao
mr-julyedu
Commits
2f1bfa52
Commit
2f1bfa52
authored
Nov 02, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
64ba18b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
21 deletions
+12
-21
src/components/blessingPreheat/ReserveCourse/index.scss
+0
-5
src/components/blessingPreheat/index.js
+12
-16
No files found.
src/components/blessingPreheat/ReserveCourse/index.scss
View file @
2f1bfa52
...
@@ -118,8 +118,3 @@
...
@@ -118,8 +118,3 @@
outline
:
none
;
outline
:
none
;
}
}
}
}
.demo
{
font-size
:
30px
;
color
:
red
;
}
src/components/blessingPreheat/index.js
View file @
2f1bfa52
...
@@ -34,13 +34,13 @@ class BlessingPreheat extends Component {
...
@@ -34,13 +34,13 @@ class BlessingPreheat extends Component {
this
.
navTop
=
183
this
.
navTop
=
183
this
.
prevY
=
0
this
.
prevY
=
0
this
.
state
=
{
this
.
state
=
{
userInfoList
:
[],
//
userInfoList: [],
//
userInfoList: [{
userInfoList
:
[{
//
token:'fcfef221e60ab7a2-92a80d5d30196999',
token
:
'fcfef221e60ab7a2-92a80d5d30196999'
,
//
uid:'545292',
uid
:
'545292'
,
//
uname:'xzhtest2',
uname
:
'xzhtest2'
,
//
avatar_file:''
avatar_file
:
''
//
}],
}],
isRule
:
false
,
isRule
:
false
,
isCourse
:
false
,
isCourse
:
false
,
inviteUrl
:
''
,
inviteUrl
:
''
,
...
@@ -110,7 +110,6 @@ class BlessingPreheat extends Component {
...
@@ -110,7 +110,6 @@ class BlessingPreheat extends Component {
window
[
'QQWXWBshare'
]
=
result
=>
{
window
[
'QQWXWBshare'
]
=
result
=>
{
this
.
handleToAddBlessing
(
result
);
this
.
handleToAddBlessing
(
result
);
}
}
}
}
...
@@ -129,11 +128,11 @@ class BlessingPreheat extends Component {
...
@@ -129,11 +128,11 @@ class BlessingPreheat extends Component {
let
expires
=
addDays
(
new
Date
(),
90
)
let
expires
=
addDays
(
new
Date
(),
90
)
this
.
state
.
userInfoList
.
map
((
item
,
index
)
=>
{
this
.
state
.
userInfoList
.
map
((
item
,
index
)
=>
{
Toast
.
info
(
item
.
uid
)
Toast
.
info
(
item
.
uid
)
cookie
.
set
(
"token"
,
item
.
token
,
{
expires
,
path
:
'/'
,
domain
:
'julyedu.com'
});
cookie
.
set
(
"token"
,
item
.
token
,
{
expires
,
path
:
'/'
,
domain
:
'
.
julyedu.com'
});
cookie
.
set
(
"plat"
,
item
.
plat
,
{
expires
,
path
:
'/'
,
domain
:
'julyedu.com'
});
cookie
.
set
(
"plat"
,
item
.
plat
,
{
expires
,
path
:
'/'
,
domain
:
'
.
julyedu.com'
});
cookie
.
set
(
"uid"
,
item
.
uid
,
{
expires
,
path
:
'/'
,
domain
:
'julyedu.com'
});
cookie
.
set
(
"uid"
,
item
.
uid
,
{
expires
,
path
:
'/'
,
domain
:
'
.
julyedu.com'
});
cookie
.
set
(
"uname"
,
item
.
uname
,
{
expires
,
path
:
'/'
,
domain
:
'julyedu.com'
});
cookie
.
set
(
"uname"
,
item
.
uname
,
{
expires
,
path
:
'/'
,
domain
:
'
.
julyedu.com'
});
cookie
.
set
(
"avatar_file"
,
item
.
avatar_file
,
{
expires
,
path
:
'/'
,
domain
:
'julyedu.com'
});
cookie
.
set
(
"avatar_file"
,
item
.
avatar_file
,
{
expires
,
path
:
'/'
,
domain
:
'
.
julyedu.com'
});
alert
(
cookie
.
get
(
"uid"
))
alert
(
cookie
.
get
(
"uid"
))
});
});
...
@@ -442,9 +441,6 @@ class BlessingPreheat extends Component {
...
@@ -442,9 +441,6 @@ class BlessingPreheat extends Component {
<
ListHeader
id
=
{
'lucky-value'
}
text
=
"积福气,享受更多福利"
styles
=
{{
margin
:
'60px 0 15px'
}}
/
>
<
ListHeader
id
=
{
'lucky-value'
}
text
=
"积福气,享受更多福利"
styles
=
{{
margin
:
'60px 0 15px'
}}
/
>
<
Link
className
=
"luck-draw__button"
to
=
"/blessingRank"
>
福气排行榜
><
/Link
>
<
Link
className
=
"luck-draw__button"
to
=
"/blessingRank"
>
福气排行榜
><
/Link
>
<
div
className
=
'demo'
>
{
String
(
!
this
.
props
.
user
.
hasError
)}
<
/div
>
<
CollectBlessing
<
CollectBlessing
isSign
=
{
isSign
}
isSign
=
{
isSign
}
userInfo
=
{
userInfo
}
userInfo
=
{
userInfo
}
...
...
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