Commit b8089100 by zhanghaozhe

智能选课

parent 877784fe
#intelligent-recommend { #intelligent-recommend {
background: linear-gradient(to right, #F1F0F6, #EBF4F9); background: linear-gradient(to right, #F1F0F6, #EBF4F9);
padding: 59px 10px 0; padding: 59px 10px 18px;
height: 100%;
.clearfix { .clearfix {
&::after { &::after {
...@@ -172,9 +173,7 @@ ...@@ -172,9 +173,7 @@
} }
.result { .result {
width: 355px; padding: 0 15px 30px;
height: 614px;
padding: 0 15px;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border: 1px solid rgba(0, 153, 255, 1); border: 1px solid rgba(0, 153, 255, 1);
border-radius: 8px; border-radius: 8px;
...@@ -218,6 +217,10 @@ ...@@ -218,6 +217,10 @@
font-size: 18px; font-size: 18px;
line-height: 36px; line-height: 36px;
font-weight: 600; font-weight: 600;
&.project {
font-size: 14px;
}
} }
.salary { .salary {
...@@ -257,9 +260,11 @@ ...@@ -257,9 +260,11 @@
.course { .course {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 20px;
.info { .info {
flex: 1 1 auto; flex: 1 1 auto;
position: relative;
} }
.title { .title {
...@@ -282,9 +287,13 @@ ...@@ -282,9 +287,13 @@
} }
.bar { .bar {
position: absolute;
left: 0;
bottom: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 100%;
height: 24px; height: 24px;
font-size: 0; font-size: 0;
...@@ -321,7 +330,7 @@ ...@@ -321,7 +330,7 @@
text-decoration: line-through; text-decoration: line-through;
} }
.study{ .study {
background-color: #09f; background-color: #09f;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
......
export const ADD_MESSAGE = 'ADD_MESSAGE'
export const ADD_RESULT = 'ADD_RESULT'
export const RESELECT = 'RESELECT'
export const addMessage = payload => {
return {
type: ADD_MESSAGE,
payload,
}
}
export const addResult = payload => {
return {
type: ADD_RESULT,
payload,
}
}
export const reselect = () => {
return {
type: RESELECT
}
}
const initialState = {
processing: [],
result: {},
}
export default function intelligentRecommend(state = initialState, action) {
switch (action.type) {
case ADD_MESSAGE:
return {
processing: [...state.processing, action.payload],
result: state.result,
}
case ADD_RESULT:
return {
processing: state.processing,
result: action.payload,
}
case RESELECT:
return initialState
default:
return state
}
}
\ No newline at end of file
...@@ -3,13 +3,15 @@ import myCourses from '@/components/study/myCourses/reducers' ...@@ -3,13 +3,15 @@ import myCourses from '@/components/study/myCourses/reducers'
import courseInfo from '@/components/detail/reducers' import courseInfo from '@/components/detail/reducers'
import user from './userReducer' import user from './userReducer'
import country from '@/components/country/countryRedux' import country from '@/components/country/countryRedux'
import intelligentRecommend from "@components/intelligent-recommend/store"
const reducer = combineReducers({ const reducer = combineReducers({
myCourses, myCourses,
courseInfo, courseInfo,
user, user,
country country,
intelligentRecommend
}); });
export default reducer; export default reducer;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment