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
96a6ef8d
Commit
96a6ef8d
authored
Jun 18, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'intelligent-recommend' into dev
parents
f387fba5
592cdf5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
src/App.js
+6
-6
src/components/intelligent-recommend/index.js
+2
-1
src/components/intelligent-recommend/index.scss
+2
-2
No files found.
src/App.js
View file @
96a6ef8d
...
...
@@ -69,8 +69,7 @@ class App extends Component {
this
.
getUser
()
this
.
utm
()
const
{
history
,
location
}
=
this
.
props
this
.
records
.
push
(
location
)
const
{
history
}
=
this
.
props
this
.
setNavigationRecord
(
this
.
props
.
location
,
this
.
props
.
history
.
action
)
this
.
setPreviousLocation
()
...
...
@@ -142,13 +141,12 @@ class App extends Component {
const
{
pathname
,
search
,
hash
}
=
location
let
isLastRecord
=
location
.
pathname
===
(
this
.
records
.
length
&&
this
.
records
[
this
.
records
.
length
-
1
].
pathname
)
let
needHistoryMutation
=
location
.
pathname
!==
this
.
previousLocation
.
pathname
switch
(
action
)
{
case
'POP'
:
if
(
needHistoryMutation
)
{
this
.
firstLoad
?
this
.
records
.
push
({
pathname
,
search
,
hash
})
:
this
.
records
.
pop
()
}
else
{
this
.
records
[
this
.
records
.
length
-
1
]
=
location
this
.
records
.
length
?
(
this
.
records
[
this
.
records
.
length
-
1
]
=
location
)
:
this
.
records
=
[
location
]
}
break
case
'REPLACE'
:
...
...
@@ -160,8 +158,10 @@ class App extends Component {
location
.
state
&&
location
.
state
.
records
?
(
location
.
state
.
records
=
this
.
records
)
:
location
.
state
?
location
.
state
=
{...
location
.
state
,
records
:
this
.
records
}
:
(
location
.
state
=
{
records
:
this
.
records
})
:
location
.
state
?
location
.
state
=
{
...
location
.
state
,
records
:
this
.
records
,
}
:
(
location
.
state
=
{
records
:
this
.
records
})
}
...
...
src/components/intelligent-recommend/index.js
View file @
96a6ef8d
...
...
@@ -202,7 +202,8 @@ class IntelligentRecommend extends Component {
alt
=
""
/>
<
/div
>
<
div
className
=
"info"
>
<
div
className
=
{
'title'
}
>
{
item
.
recmd_title
}
<
/div
>
{
/*<div className={'title'}>{item.recmd_title}</div>*/
}
<
div
className
=
{
'title'
}
>
Python
数据分析
升级版
[
超
6
K
,都
if
就饿哦今晚
i
哦减肥
i
哦
<
/div
>
<
div
className
=
{
'des'
}
>
{
item
.
recmd_desc
}
<
/div
>
<
div
className
=
"bar"
>
{
...
...
src/components/intelligent-recommend/index.scss
View file @
96a6ef8d
#intelligent-recommend
{
background
:
linear-gradient
(
to
right
,
#F1F0F6
,
#EBF4F9
);
padding
:
59px
10px
18px
;
height
:
100%
;
min-
height
:
100%
;
.clearfix
{
&
:
:
after
{
...
...
@@ -267,7 +267,7 @@
}
.title
{
width
:
97%
;
width
:
190px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
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