Commit b1a28608 by caixinyu

更换python课程文案和验证登录方式

parent e6f02af2
......@@ -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.32c24eb2.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.32c24eb2.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.b1b967da.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.b1b967da.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.ae8e4217.chunk.js": "/mrstaticjs/70.ae8e4217.chunk.js",
"mrstaticjs/70.ae8e4217.chunk.js.map": "/mrstaticjs/70.ae8e4217.chunk.js.map",
"mrstaticjs/70.e0ed8812.chunk.js": "/mrstaticjs/70.e0ed8812.chunk.js",
"mrstaticjs/70.e0ed8812.chunk.js.map": "/mrstaticjs/70.e0ed8812.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.d816e06b42bccc7ffb6d13ae4cd3a0f1.js": "/precache-manifest.d816e06b42bccc7ffb6d13ae4cd3a0f1.js",
"precache-manifest.003294f43cea986887468053700081e7.js": "/precache-manifest.003294f43cea986887468053700081e7.js",
"service-worker.js": "/service-worker.js"
},
"entrypoints": [
"mrstaticjs/runtime-main.32c24eb2.js",
"mrstaticjs/runtime-main.b1b967da.js",
"mrstaticcss/51.ee6d5e86.chunk.css",
"mrstaticjs/51.54378fc2.chunk.js",
"mrstaticcss/main.a40f1613.chunk.css",
......
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "769a643e697973d657228fb699c08156",
"revision": "8c230ca44efe027b1740a510e78e71b3",
"url": "/index.html"
},
{
......@@ -80,7 +80,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/69.c310b129.chunk.css"
},
{
"revision": "b280ce50521bf9bcfc5c",
"revision": "6b8779e229fb82493a7b",
"url": "/mrstaticcss/70.148c23dc.chunk.css"
},
{
......@@ -372,8 +372,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/69.80788432.chunk.js"
},
{
"revision": "b280ce50521bf9bcfc5c",
"url": "/mrstaticjs/70.ae8e4217.chunk.js"
"revision": "6b8779e229fb82493a7b",
"url": "/mrstaticjs/70.e0ed8812.chunk.js"
},
{
"revision": "7ffdaed4606960c92d03",
......@@ -520,8 +520,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.b9b43a65.chunk.js"
},
{
"revision": "13715755135339d7650b",
"url": "/mrstaticjs/runtime-main.32c24eb2.js"
"revision": "8ddc2db884cd1d296af4",
"url": "/mrstaticjs/runtime-main.b1b967da.js"
},
{
"revision": "25ba20eaf7742efc8166",
......
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.d816e06b42bccc7ffb6d13ae4cd3a0f1.js"
"/precache-manifest.003294f43cea986887468053700081e7.js"
);
self.addEventListener('message', (event) => {
......
......@@ -5,6 +5,7 @@ import { HeaderBar, CallApp } from "src/common"
import { http, getParam } from "src/utils"
import "./index.scss"
import { connect } from "react-redux"
import cookie from "js-cookie"
let courseObj = [{
url:'/getDetail?id=224&distcode=0&ccode=62d62d586cdd8',
prise:"99.00",
......@@ -43,13 +44,19 @@ class PythonCourse extends Component {
componentDidMount() {
const { user } = this.props
const uid = user && user.data && user.data.uid
if (!uid) {
console.log(cookie.get("token"));
if (cookie.get("token") && cookie.get("uid")) {
console.log("已经登录")
}else{
console.log('未登录');
this.props.history.push("/passport")
}else{
console.log('登了');
}
// if (!uid) {
// console.log('未登录');
// this.props.history.push("/passport")
// }else{
// console.log('登了');
// }
}
showQuan=(id)=> {
// this.getUser()
......@@ -195,7 +202,7 @@ class PythonCourse extends Component {
<div className="course-des-content-row">
<span className="course-des-icon">01</span>
<span className="course-des-text">
点击上方课程按钮领取优惠券--点“直接购买”即可0元购课
点击上方课程按钮领取优惠券--点“立即报名”--选优惠券-0元购课
</span>
</div>
<div className="course-des-content-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