Commit 6037f720 by xuzhenghua

免费试学

parents dcf9696a 6a7eb21e
......@@ -99,10 +99,10 @@
"purchased.js": "/mrstatic/js/purchased.bc9fe8f0.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.bc9fe8f0.chunk.js.map",
"python-class.css": "/mrstatic/css/python-class.49baf51f.chunk.css",
"python-class.js": "/mrstatic/js/python-class.2eaa9b23.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.2eaa9b23.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.970373bb.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.970373bb.js.map",
"python-class.js": "/mrstatic/js/python-class.286eff61.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.286eff61.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a12e5bc9.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a12e5bc9.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.d4fcc9d9.chunk.js",
"search.js.map": "/mrstatic/js/search.d4fcc9d9.chunk.js.map",
......@@ -200,6 +200,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.1fdfbe618d2894cafa881055fd333b84.js": "/precache-manifest.1fdfbe618d2894cafa881055fd333b84.js",
"precache-manifest.96b7cacc736890250848cd957cbdf9ec.js": "/precache-manifest.96b7cacc736890250848cd957cbdf9ec.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
......@@ -244,16 +244,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/newyear-yearIndex.1ea3b486.chunk.js"
},
{
"revision": "bd19aefb23a289456f0f",
"url": "/mrstatic/js/runtime~main.970373bb.js"
"revision": "7c272115283fd1125455",
"url": "/mrstatic/js/runtime~main.a12e5bc9.js"
},
{
"revision": "269d2c754a8373476307",
"url": "/mrstatic/js/prize-winner-list.485c99ce.chunk.js"
},
{
"revision": "3e9a65ed9461a9f734c5",
"url": "/mrstatic/js/python-class.2eaa9b23.chunk.js"
"revision": "cc8a19e49e9b3d784c87",
"url": "/mrstatic/js/python-class.286eff61.chunk.js"
},
{
"revision": "ef83a479fedddc81eac1",
......@@ -264,7 +264,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/47.820320a6.chunk.css"
},
{
"revision": "3e9a65ed9461a9f734c5",
"revision": "cc8a19e49e9b3d784c87",
"url": "/mrstatic/css/python-class.49baf51f.chunk.css"
},
{
......@@ -440,7 +440,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "a50e736f2a2d0ebf117a23b546409d77",
"revision": "2c3f1d07aae13f0e71d6f878672278c8",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.1fdfbe618d2894cafa881055fd333b84.js"
"/precache-manifest.96b7cacc736890250848cd957cbdf9ec.js"
);
workbox.clientsClaim();
......
......@@ -119,13 +119,20 @@ class PythonDes extends Component {
}
toLearn = () => {
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
SendMessageToApp("toLearn")
}
http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {
const {code, msg} = res.data
if (code == 200) {
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
SendMessageToApp("toLearn")
}
} else {
Toast.info(msg, 2)
}
})
}
closePop = () => {
......
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