Commit 3e358f28 by caixinyu

添加python活动页面

parent 2cbf5e70
...@@ -19569,20 +19569,25 @@ ...@@ -19569,20 +19569,25 @@
"@babel/highlight": "^7.8.3" "@babel/highlight": "^7.8.3"
} }
}, },
"@babel/helper-validator-identifier": {
"version": "7.18.6",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz",
"integrity": "sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g=="
},
"@babel/highlight": { "@babel/highlight": {
"version": "7.10.4", "version": "7.18.6",
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz",
"integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==",
"requires": { "requires": {
"@babel/helper-validator-identifier": "^7.10.4", "@babel/helper-validator-identifier": "^7.18.6",
"chalk": "^2.0.0", "chalk": "^2.0.0",
"js-tokens": "^4.0.0" "js-tokens": "^4.0.0"
} }
}, },
"ansi-regex": { "ansi-regex": {
"version": "5.0.0", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
}, },
"browserslist": { "browserslist": {
"version": "4.10.0", "version": "4.10.0",
...@@ -19595,11 +19600,6 @@ ...@@ -19595,11 +19600,6 @@
"pkg-up": "^3.1.0" "pkg-up": "^3.1.0"
} }
}, },
"caniuse-lite": {
"version": "1.0.30001109",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001109.tgz",
"integrity": "sha512-4JIXRodHzdS3HdK8nSgIqXYLExOvG+D2/EenSvcub2Kp3QEADjo2v2oUn5g0n0D+UNwG9BtwKOyGcSq2qvQXvQ=="
},
"cli-width": { "cli-width": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz",
...@@ -19665,9 +19665,9 @@ ...@@ -19665,9 +19665,9 @@
}, },
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "4.1.0", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz",
"integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g=="
}, },
"strip-ansi": { "strip-ansi": {
"version": "5.2.0", "version": "5.2.0",
...@@ -19729,13 +19729,23 @@ ...@@ -19729,13 +19729,23 @@
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="
}, },
"string-width": { "string-width": {
"version": "4.2.0", "version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"requires": { "requires": {
"emoji-regex": "^8.0.0", "emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0", "is-fullwidth-code-point": "^3.0.0",
"strip-ansi": "^6.0.0" "strip-ansi": "^6.0.1"
},
"dependencies": {
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"requires": {
"ansi-regex": "^5.0.1"
}
}
} }
}, },
"strip-ansi": { "strip-ansi": {
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"react-ace": "^8.1.0", "react-ace": "^8.1.0",
"react-app-polyfill": "^1.0.6", "react-app-polyfill": "^1.0.6",
"react-copy-to-clipboard": "^5.0.2", "react-copy-to-clipboard": "^5.0.2",
"react-dev-utils": "^10.2.1", "react-dev-utils": "10.2.1",
"react-dom": "^16.13.1", "react-dom": "^16.13.1",
"react-infinite-scroller": "^1.2.4", "react-infinite-scroller": "^1.2.4",
"react-lazy-load": "^3.1.13", "react-lazy-load": "^3.1.13",
......
...@@ -306,7 +306,7 @@ function GorupContent(props) { ...@@ -306,7 +306,7 @@ function GorupContent(props) {
}) })
if (flag) { if (flag) {
tip = ( tip = (
<p className="tip">{`拼团省¥${round( <p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price, data.price1 - pdd_price,
2 2
)}元`}</p> )}元`}</p>
...@@ -320,7 +320,7 @@ function GorupContent(props) { ...@@ -320,7 +320,7 @@ function GorupContent(props) {
} else { } else {
if (getParam("is_originator") == 1) { if (getParam("is_originator") == 1) {
tip = ( tip = (
<p className="tip">{`拼团省¥${round( <p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price, data.price1 - pdd_price,
2 2
)}元`}</p> )}元`}</p>
...@@ -336,7 +336,7 @@ function GorupContent(props) { ...@@ -336,7 +336,7 @@ function GorupContent(props) {
) )
} else { } else {
tip = ( tip = (
<p className="tip">{`拼团省¥${round( <p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price, data.price1 - pdd_price,
2 2
)}元`}</p> )}元`}</p>
......
/* eslint-disable eqeqeq */
import React, { Component } from "react"
import { Accordion, Toast } from "antd-mobile"
import { HeaderBar, CallApp } from "src/common"
import { http, getParam } from "src/utils"
import "./index.scss"
import { connect } from "react-redux"
let courseObj = [{
url:'/getDetail?id=224',
prise:"99.00",
name:'人工智能',
code:"B4C719F1D6"
},
{
url:'/getDetail?id=328',
prise:"199.00",
name:'数据分析',
code:"7DE0F40CE5"
},
{
url:'/getDetail?id=280',
prise:"99.00",
name:'机器学习',
code:"8AED2B4DE5"
}]
class PythonCourse extends Component {
constructor(props) {
super(props)
this.state = {
CourseUrl: null,
modelBool: false,
courseName: "课程专用",
prise: "100.00",
code: null
}
}
componentDidMount() {
this.getUser()
}
componentDidMount() {
this.getUser()
}
showQuan=(id)=> {
this.setState({
CourseUrl:courseObj[id].url,
courseName:courseObj[id].name,
prise:courseObj[id].prise,
modelBool:true,
code:courseObj[id].code,
})
}
getUser=() => {
http.get(`${API.home}/m/user_info_sample/0`).then((res) => {
if(res.code === 200){
}else{
//为登录,去登录
this.props.history.push("/passport")
}
})
}
gotoCourse=()=>{
const _this = this
const { history } = this.props
http
.post(`${API.home}/m/coupon/exchange`, {
code: _this.state.code,
type: "order",
})
.then((res) => {
const data = res.data
if (data.code === 200) {
Toast.info('领取成功',2)
history.push(_this.CourseUrl)
} else {
Toast.info(data.msg)
}
})
// this.$Message.success({
// content:"领取成功,券码已复制",
// top: 50,
// duration: 3,
// onClose:function(){
// location.href = _this.CourseUrl
// }
// })
}
gotoCourseDetail=(url)=>{
const { history } = this.props
history.push(url)
}
close=()=>{
this.setState({
modelBool:false
})
}
render() {
const { user } = this.props
const uid = user && user.data && user.data.uid
const { CourseUrl, modelBool, courseName, prise,code } = this.state
return (
<div id="python-box" className="python-study">
<div className="content">
<div className="banner">
<img src="https://www.julyedu.com/Public/img/banner.3cbdc9ef.png" alt="" />
</div>
<div className="course-list">
<div className="course-list-title">甄选课程</div>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('/getDetail?id=224')}>
<div className="course-list-item-tig">0基础入门Python人工智能</div>
<div className="flex-row">
<img
className="course-list-item-img"
src="https://www.julyedu.com/Public/img/img1@3x.84afbc45.png"
alt=""
/>
<div className="course-list-item-content">
<div className="course-list-item-title">Python图文课</div>
<div className="course-list-item-des">课时:17节闯关训练+17实操</div>
<div>
<a
className="course-list-item-btn"
onClick={(e) =>{e.stopPropagation();this.showQuan(0)}}
>领劵0元购</a>
</div>
</div>
</div>
</div>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('/getDetail?id=328')}>
<div className="course-list-item-tig">0python数据分析</div>
<div className="flex-row">
<img
className="course-list-item-img"
src="https://www.julyedu.com/Public/img/img2@3x.e9395148.png"
alt=""
/>
<div className="course-list-item-content">
<div className="course-list-item-title">Python数据分析</div>
<div className="course-list-item-des">课时:31节课</div>
<div>
<a
className="course-list-item-btn"
onClick={(e) =>{e.stopPropagation();this.showQuan(1)}}
>领劵0元购</a>
</div>
</div>
</div>
</div>
<div className="course-list-item" onClick={() => {
this.gotoCourseDetail('/getDetail?id=280')
}}>
<div className="course-list-item-tig">0基础入门机器学习</div>
<div className="flex-row">
<img
className="course-list-item-img"
src="https://www.julyedu.com/Public/img/img3@3x.d7a07310.png"
alt=""
/>
<div className="course-list-item-content">
<div className="course-list-item-title">机器学习图文课</div>
<div className="course-list-item-des">课时:31节闯关课</div>
<div>
<a
className="course-list-item-btn"
onClick={(e) =>{e.stopPropagation();this.showQuan(2)}}
>领劵0元购</a>
</div>
</div>
</div>
</div>
</div>
<div className="course-des">
<div className="course-des-tilte">上课方式</div>
<div className="course-des-content">
<div className="course-des-container">
<div className="course-des-content-row">
<span className="course-des-icon">01</span>
<span className="course-des-text">
点击上方课程按钮领取优惠券--点“直接购买”即可0元购课
</span>
</div>
<div className="course-des-content-row">
<span className="course-des-icon">02</span>
<span className="course-des-text">
登陆七月在线官网或七月在线APP一学习,可看到已购买的课程
</span>
</div>
<div className="course-des-content-row">
<span className="course-des-icon">03</span>
<span className="course-des-text">
课程随到随学,购买后加班主任进群领课件、代码及享受答疑服务
</span>
</div>
</div>
</div>
</div>
</div>
{modelBool &&
<div className="python-model">
<div className="python-course-model-box">
<img className="quan" src="https://www.julyedu.com/Public/img/tanchuang@3x.8f8490fd.png" onClick={() =>{this.gotoCourse()}} alt="" />
<div className="course-prise">
<div className="course-prise-first-child">
{this.state.prise}
</div>
<div className="course-prise-last-child">
{this.state.courseName}
</div>
</div>
<img onClick={() =>this.close()} className="CloseCircle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABSCAYAAAGwK7MNAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAUqADAAQAAAABAAAAUgAAAACfHI/oAAARMklEQVR4Ae2ceawX1RXHeewor4C2gIBprUEaATGW4sYitnWtGAVZTCONtFpttSpWo3/Utn+471VbTTRqGlkqGGmDaK3siEq1glgBscYCCgGRAmV9j36+P+cMd+7cmd/6KMY3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UBVgTQgAO4MmBmAzeyhpoveEtK3ovvnWgc2Ctx52NcHWwPNZxYFy3xeIZyX9wohq6zPr0kgXaP0Uv2Dc23itccr9dI/oZiL8mLoCuaoFTw2rmWe2kq+QUYIjE6u6zkP7Yl9/cq7D+yToMOgZfnC/gR63zTZrdVV80C6wAiq3oU/AE+V/n9eapxfELwXmwpEkwbSBU3P0cZev+/6EfcI8qk3k65+pWl6sN7z6MDlSfaAs8jnbqQr9eOXO2CB9B1bXgFmyPZlsv82afVcDdujCUAnaD20XrqkNcy3QjUNrIa1ArqCxe7vTAHLSR+QgAlL89UcgeYIfGki8D+xvRgxYbzHGwAAAABJRU5ErkJggg==" alt="" />
</div>
</div>
}
</div>
)
}
}
export default connect((state) => ({ user: state.user }), null)(PythonCourse)
@import "src/assets/css/variable";
*,
body {
padding: 0;
margin: 0;
font-family: PingFangSC-Regular;
}
body{
pointer-events: initial!important;
}
.python-model {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
}
.python-course-model-box {
width: 100%;
height: 100%;
top: calc(50% - 180px);
position: relative;
}
.python-course-model-box img.quan {
display: block;
width: 375px;
margin: 0 auto;
}
.CloseCircle{
display: block;
margin:0 auto;
width:40px;
height:40px;
}
.course-prise{
position: absolute;
top: 195px;
left: 80px;
width: 170px;
height: 74px;
}
.course-prise-first-child{
font-weight: bold;
line-height: 40px;
text-align: center;
font-size: 26px;
color: #f00;
}
.course-prise-last-child{
color: #fff;
text-align: center;
line-height: 28px;
}
div {
box-sizing: border-box;
}
.content {
background-color: #3fa9ff;
padding-bottom: 30px;
}
.banner {
width: 100%;
}
.banner img {
display: block;
width: 100%;
height: auto;
}
.course-list {
padding: 0 12px;
}
.course-list-title {
font-size: 20px;
color: #fff;
font-weight: 700;
text-align: center;
margin-bottom: 38px;
}
.course-list-item {
min-height: 73px;
background-color: #fff;
border-radius: 8px;
margin-bottom: 32px;
position: relative;
padding: 28px 4px 16px 20px;
}
.course-list-item-tig {
position: absolute;
top: -12px;
left: 20px;
font-size: 11px;
min-width: 142px;
padding: 0 4px;
height: 24px;
line-height: 24px;
background-image: linear-gradient(180deg, #ffbf69 0%, #fa8d15 100%);
border-radius: 4px;
text-align: center;
color: #fff;
font-weight: 500;
}
.course-list-item-img {
display: block;
width: 142px;
height: 102px;
margin-right: 15px;
border-radius: 4px;
}
.course-list-item-title {
font-family: SourceHanSansCN-Bold;
font-size: 18px;
color: #333333;
letter-spacing: 0.03px;
line-height: 18px;
font-weight: 700;
padding-top: 6px;
}
.course-list-item-des {
width: 154px;
font-family: SourceHanSansCN-Normal;
font-size: 12px;
color: #666666;
letter-spacing: 0.02px;
line-height: 12px;
font-weight: 400;
padding-top: 12px;
padding-bottom: 16px;
}
.course-list-item-btn {
display: block;
width: 102px;
height: 32px;
background-image: linear-gradient(179deg, #ff7874 0%, #f5212d 100%);
border-radius: 4px;
text-align: center;
line-height: 32px;
font-size: 16px;
color: #fff;
text-decoration: none;
font-weight: 700;
}
.course-des {
margin-top: 32px;
width: 351px;
margin: 0 auto;
background: #fff;
border-radius: 8px;
padding-right: 20px;
padding-bottom: 16px;
}
.course-des-tilte {
width: 351px;
height: 40px;
line-height: 40px;
text-align: center;
background: #ffe7ba;
border-radius: 8px 8px 0 0;
font-family: SourceHanSansCN-Bold;
font-size: 20px;
color: #2297fe;
letter-spacing: 0.03px;
font-weight: 700;
}
.course-des-container {
padding-left: 52px;
padding-top: 20px;
}
.course-des-content-row {
margin-bottom: 12px;
position: relative;
}
.course-des-content-row:last-child{
margin-bottom:0;
}
.course-des-icon {
display: block;
position: absolute;
left: -32px;
top: 10px;
width: 24px;
height: 24px;
line-height: 24px;
background: #009aff;
border-radius: 50%;
color: #fff;
text-align: center;
font-weight: 700;
}
.course-des-text {
font-size: 14px;
color: #333333;
letter-spacing: 0.02px;
text-align: justify;
line-height: 22px;
}
.flex-row {
display: flex;
}
...@@ -531,4 +531,10 @@ export default [ ...@@ -531,4 +531,10 @@ export default [
import(/* webpackChunkName: 'ts-test' */ "src/components/ts-test") import(/* webpackChunkName: 'ts-test' */ "src/components/ts-test")
), ),
}, },
{
path: "/python-course",
component: loadable(() =>
import("src/components/pythonCourse")
),
},
] ]
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