Commit 05c71f51 by zhanghaozhe

学习页面

parent 4cf28a36
...@@ -8894,9 +8894,9 @@ ...@@ -8894,9 +8894,9 @@
} }
}, },
"lodash": { "lodash": {
"version": "4.17.11", "version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
}, },
"lodash-es": { "lodash-es": {
"version": "4.17.11", "version": "4.17.11",
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"less": "^3.9.0", "less": "^3.9.0",
"less-loader": "^4.1.0", "less-loader": "^4.1.0",
"lodash": "^4.17.11", "lodash": "^4.17.15",
"mini-css-extract-plugin": "0.5.0", "mini-css-extract-plugin": "0.5.0",
"node-sass": "^4.11.0", "node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "5.0.1", "optimize-css-assets-webpack-plugin": "5.0.1",
......
.v-list-base-item { .v-list-base-item {
height: 130px; height: 130px;
padding: 10px 10px 0; padding: 10px 10px 0;
position: relative;
.content { .content {
display: flex; display: flex;
......
...@@ -114,22 +114,35 @@ class MyCourses extends PureComponent { ...@@ -114,22 +114,35 @@ class MyCourses extends PureComponent {
const Info = ( const Info = (
<div className="info"> <div className="info">
<div className='title'>{item.course_title}</div> <div className='title'>{item.course_title}</div>
<div className='contact'>QQ群:{item.course_qq}</div> {
{/*<div className="process-status"> item.is_aist
? <div className='contact'>助教微信:{item.assist_weixin}</div>
: <div className='contact'>QQ群:{item.course_qq}</div>
}
{
item.is_aist && item.aist_schedule &&
<div className="process-status">
<div className="process-wrapper"> <div className="process-wrapper">
<div className="process-bar" style={{width: '50%'}}/> <div className="process-bar"
style={{width: `${parseFloat(item.aist_schedule)}%`}}/>
</div>
<div className="process-text">{item.aist_schedule}</div>
</div> </div>
<div className="process-text">50%</div> }
</div>*/}
<Bottom item={item}/> <Bottom item={item}/>
</div> </div>
) )
const status = (
item.is_aist && <span className='status'>返现</span>
)
return ( return (
<VList img={item.image_name} <VList img={item.image_name}
handleClick={this.handleClick} handleClick={this.handleClick}
{...item} {...item}
key={index} key={index}
info={Info} info={Info}
status={status}
id={item['course_id']} id={item['course_id']}
/> />
) )
......
.info { #study {
.info {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
width: 55%; width: 55%;
...@@ -19,13 +20,14 @@ ...@@ -19,13 +20,14 @@
width: 100%; width: 100%;
} }
.process{ .process {
&-status{ &-status {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
&-wrapper{
&-wrapper {
position: relative; position: relative;
width: 147px; width: 147px;
height: 6px; height: 6px;
...@@ -33,7 +35,8 @@ ...@@ -33,7 +35,8 @@
border-radius: 4px; border-radius: 4px;
margin-right: 14px; margin-right: 14px;
} }
&-bar{
&-bar {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -41,7 +44,8 @@ ...@@ -41,7 +44,8 @@
background-color: $active; background-color: $active;
border-radius: 4px; border-radius: 4px;
} }
&-text{
&-text {
color: $active; color: $active;
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
...@@ -73,9 +77,9 @@ ...@@ -73,9 +77,9 @@
color: $white; color: $white;
border-radius: 3px; border-radius: 3px;
} }
} }
.add-course { .add-course {
padding: 10px 12px; padding: 10px 12px;
button.add { button.add {
...@@ -91,9 +95,9 @@ ...@@ -91,9 +95,9 @@
border: 1px dashed $active; border: 1px dashed $active;
background: transparent; background: transparent;
} }
} }
.my-course-uid { .my-course-uid {
width: 375px; width: 375px;
height: 30px; height: 30px;
background: $bg_FFF4CE; background: $bg_FFF4CE;
...@@ -101,9 +105,9 @@ ...@@ -101,9 +105,9 @@
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
color: $color_333; color: $color_333;
} }
.empty { .empty {
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -135,4 +139,16 @@ ...@@ -135,4 +139,16 @@
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
} }
}
.status {
position: absolute;
top: 0;
right: 0;
padding: 2px 6px;
border-radius: 11px 0 0 11px;
font-size: 14px;
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
} }
\ 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