Commit 0892fdb6 by xuzhenghua

免费

parents 6037f720 0776c5fc
......@@ -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.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",
"python-class.js": "/mrstatic/js/python-class.48af4d37.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.48af4d37.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.25bf015a.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.25bf015a.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.96b7cacc736890250848cd957cbdf9ec.js": "/precache-manifest.96b7cacc736890250848cd957cbdf9ec.js",
"precache-manifest.1b126753178e186ae09cbccc856426c5.js": "/precache-manifest.1b126753178e186ae09cbccc856426c5.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": "7c272115283fd1125455",
"url": "/mrstatic/js/runtime~main.a12e5bc9.js"
"revision": "01d32d9635f5837df39d",
"url": "/mrstatic/js/runtime~main.25bf015a.js"
},
{
"revision": "269d2c754a8373476307",
"url": "/mrstatic/js/prize-winner-list.485c99ce.chunk.js"
},
{
"revision": "cc8a19e49e9b3d784c87",
"url": "/mrstatic/js/python-class.286eff61.chunk.js"
"revision": "dab4301a3d279593f0dd",
"url": "/mrstatic/js/python-class.48af4d37.chunk.js"
},
{
"revision": "ef83a479fedddc81eac1",
......@@ -264,7 +264,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/47.820320a6.chunk.css"
},
{
"revision": "cc8a19e49e9b3d784c87",
"revision": "dab4301a3d279593f0dd",
"url": "/mrstatic/css/python-class.49baf51f.chunk.css"
},
{
......@@ -440,7 +440,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "2c3f1d07aae13f0e71d6f878672278c8",
"revision": "5e414d6d76d204e90aa195d6364f81d7",
"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.96b7cacc736890250848cd957cbdf9ec.js"
"/precache-manifest.1b126753178e186ae09cbccc856426c5.js"
);
workbox.clientsClaim();
......
......@@ -119,17 +119,21 @@ class PythonDes extends Component {
}
toLearn = () => {
alert('免费试学')
http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {
const {code, msg} = res.data
if (code == 200) {
alert('code == 200')
if (!getParam('version')) { // H5
this.setState({
toApp: true
})
} else { // APP
alert('app')
SendMessageToApp("toLearn")
}
} else {
alert('code != 200')
Toast.info(msg, 2)
}
})
......
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