Commit d4967d11 by caixinyu

修改跳转地址

parent 1f632ca5
......@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.af18e67a.chunk.css",
"python-class.js": "/mrstaticjs/python-class.b9b43a65.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.b9b43a65.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.641036ad.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.641036ad.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.d29fd9c7.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.d29fd9c7.js.map",
"search.css": "/mrstaticcss/search.b0c8ab06.chunk.css",
"search.js": "/mrstaticjs/search.aaab04ef.chunk.js",
"search.js.map": "/mrstaticjs/search.aaab04ef.chunk.js.map",
......@@ -201,8 +201,8 @@
"mrstaticjs/69.80788432.chunk.js": "/mrstaticjs/69.80788432.chunk.js",
"mrstaticjs/69.80788432.chunk.js.map": "/mrstaticjs/69.80788432.chunk.js.map",
"mrstaticcss/70.148c23dc.chunk.css": "/mrstaticcss/70.148c23dc.chunk.css",
"mrstaticjs/70.e0ed8812.chunk.js": "/mrstaticjs/70.e0ed8812.chunk.js",
"mrstaticjs/70.e0ed8812.chunk.js.map": "/mrstaticjs/70.e0ed8812.chunk.js.map",
"mrstaticjs/70.fac60b42.chunk.js": "/mrstaticjs/70.fac60b42.chunk.js",
"mrstaticjs/70.fac60b42.chunk.js.map": "/mrstaticjs/70.fac60b42.chunk.js.map",
"mrstaticcss/71.9cd15945.chunk.css": "/mrstaticcss/71.9cd15945.chunk.css",
"mrstaticjs/71.d42b5c06.chunk.js": "/mrstaticjs/71.d42b5c06.chunk.js",
"mrstaticjs/71.d42b5c06.chunk.js.map": "/mrstaticjs/71.d42b5c06.chunk.js.map",
......@@ -278,11 +278,11 @@
"mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.fa64fbc4.ttf",
"mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png",
"mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png",
"precache-manifest.7eec3d76e0440a4ff84144ee05e2066e.js": "/precache-manifest.7eec3d76e0440a4ff84144ee05e2066e.js",
"precache-manifest.bc22cf9a62e179b70e6f7fdb722f2cf8.js": "/precache-manifest.bc22cf9a62e179b70e6f7fdb722f2cf8.js",
"service-worker.js": "/service-worker.js"
},
"entrypoints": [
"mrstaticjs/runtime-main.641036ad.js",
"mrstaticjs/runtime-main.d29fd9c7.js",
"mrstaticcss/51.ee6d5e86.chunk.css",
"mrstaticjs/51.54378fc2.chunk.js",
"mrstaticcss/main.a40f1613.chunk.css",
......
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "dd8ebfc0fbcc838675d301e945d7ae7f",
"revision": "518b00d175ea6c5f3be46e3600740f0b",
"url": "/index.html"
},
{
......@@ -80,7 +80,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/69.c310b129.chunk.css"
},
{
"revision": "6b8779e229fb82493a7b",
"revision": "966ddbaaa05eccc29fb3",
"url": "/mrstaticcss/70.148c23dc.chunk.css"
},
{
......@@ -372,8 +372,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/69.80788432.chunk.js"
},
{
"revision": "6b8779e229fb82493a7b",
"url": "/mrstaticjs/70.e0ed8812.chunk.js"
"revision": "966ddbaaa05eccc29fb3",
"url": "/mrstaticjs/70.fac60b42.chunk.js"
},
{
"revision": "7ffdaed4606960c92d03",
......@@ -520,8 +520,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.b9b43a65.chunk.js"
},
{
"revision": "19317d574ddf6c91a493",
"url": "/mrstaticjs/runtime-main.641036ad.js"
"revision": "96267fc45ff34cb10388",
"url": "/mrstaticjs/runtime-main.d29fd9c7.js"
},
{
"revision": "25ba20eaf7742efc8166",
......
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.7eec3d76e0440a4ff84144ee05e2066e.js"
"/precache-manifest.bc22cf9a62e179b70e6f7fdb722f2cf8.js"
);
self.addEventListener('message', (event) => {
......
......@@ -7,19 +7,22 @@ import "./index.scss"
import { connect } from "react-redux"
import cookie from "js-cookie"
let courseObj = [{
url:'/getDetail?id=224&distcode=0&ccode=62d62d586cdd8',
// url:'/getDetail?id=224&distcode=0&ccode=62d62d586cdd8',
url:'https://www.julyedu.com/course/getDetail/224?ccode=62d62d586cdd8',
prise:"99.00",
name:'人工智能',
code:"B4C719F1D6"
},
{
url:'/getDetail?id=461&distcode=0&ccode=62d62d586cdd8',
// url:'/getDetail?id=461&distcode=0&ccode=62d62d586cdd8',
url:'https://www.julyedu.com/course/getDetail/461?ccode=62d62d586cdd8',
prise:"199.00",
name:'数据分析',
code:"7DE0F40CE5"
},
{
url:'/getDetail?id=280&distcode=0&ccode=62d62d586cdd8',
// url:'/getDetail?id=280&distcode=0&ccode=62d62d586cdd8',
url:'https://www.julyedu.com/course/getDetail/280?ccode=62d62d586cdd8',
prise:"99.00",
name:'机器学习',
code:"8AED2B4DE5"
......@@ -98,22 +101,15 @@ class PythonCourse extends Component {
Toast.info("您已成功领券,请勿重复领取")
}
console.log('进入详情页');
history.push(_this.state.CourseUrl)
window.location.href = _this.state.CourseUrl
// history.push(_this.state.CourseUrl)
})
// this.$Message.success({
// content:"领取成功,券码已复制",
// top: 50,
// duration: 3,
// onClose:function(){
// location.href = _this.CourseUrl
// }
// })
}
gotoCourseDetail=(url)=>{
const { history } = this.props
history.push(url)
// const { history } = this.props
// history.push(url)
window.location.href = url
}
close=()=>{
this.setState({
......@@ -132,7 +128,7 @@ class PythonCourse extends Component {
</div>
<div className="course-list">
<div className="course-list-title">甄选课程</div>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('/getDetail?id=224&distcode=0&ccode=62d62d586cdd8')}>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('https://www.julyedu.com/course/getDetail?id=224&distcode=0&ccode=62d62d586cdd8')}>
<div className="course-list-item-tig">0基础入门Python人工智能</div>
<div className="flex-row">
<img
......@@ -152,7 +148,7 @@ class PythonCourse extends Component {
</div>
</div>
</div>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('/getDetail?id=461&distcode=0&ccode=62d62d586cdd8')}>
<div className="course-list-item" onClick={() =>this.gotoCourseDetail('https://www.julyedu.com/course/getDetail?id=461&distcode=0&ccode=62d62d586cdd8')}>
<div className="course-list-item-tig">0python数据分析</div>
<div className="flex-row">
<img
......@@ -173,7 +169,7 @@ class PythonCourse extends Component {
</div>
</div>
<div className="course-list-item" onClick={() => {
this.gotoCourseDetail('/getDetail?id=280&distcode=0&ccode=62d62d586cdd8')
this.gotoCourseDetail('https://www.julyedu.com/course/getDetail?id=280&distcode=0&ccode=62d62d586cdd8')
}}>
<div className="course-list-item-tig">0基础入门机器学习</div>
<div className="flex-row">
......
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