Commit 13e18840 by wangshuo

no message

parent 61039d7e
......@@ -25,8 +25,8 @@
"Country.js": "/mrstaticjs/Country.47e79f3e.chunk.js",
"Country.js.map": "/mrstaticjs/Country.47e79f3e.chunk.js.map",
"CourseList.css": "/mrstaticcss/CourseList.03ca1bb8.chunk.css",
"CourseList.js": "/mrstaticjs/CourseList.94c40aab.chunk.js",
"CourseList.js.map": "/mrstaticjs/CourseList.94c40aab.chunk.js.map",
"CourseList.js": "/mrstaticjs/CourseList.ac7c2c0a.chunk.js",
"CourseList.js.map": "/mrstaticjs/CourseList.ac7c2c0a.chunk.js.map",
"DrawDocument.css": "/mrstaticcss/DrawDocument.3cc126d9.chunk.css",
"DrawDocument.js": "/mrstaticjs/DrawDocument.f3fd745e.chunk.js",
"DrawDocument.js.map": "/mrstaticjs/DrawDocument.f3fd745e.chunk.js.map",
......@@ -47,8 +47,8 @@
"PayOrder.js": "/mrstaticjs/PayOrder.7c432b67.chunk.js",
"PayOrder.js.map": "/mrstaticjs/PayOrder.7c432b67.chunk.js.map",
"Preferential.css": "/mrstaticcss/Preferential.c580d52c.chunk.css",
"Preferential.js": "/mrstaticjs/Preferential.1a485abb.chunk.js",
"Preferential.js.map": "/mrstaticjs/Preferential.1a485abb.chunk.js.map",
"Preferential.js": "/mrstaticjs/Preferential.0ac6ba42.chunk.js",
"Preferential.js.map": "/mrstaticjs/Preferential.0ac6ba42.chunk.js.map",
"SearchResult.css": "/mrstaticcss/SearchResult.e81aad7a.chunk.css",
"SearchResult.js": "/mrstaticjs/SearchResult.9597908e.chunk.js",
"SearchResult.js.map": "/mrstaticjs/SearchResult.9597908e.chunk.js.map",
......@@ -89,8 +89,8 @@
"intelligent-recommend.js": "/mrstaticjs/intelligent-recommend.516dee6a.chunk.js",
"intelligent-recommend.js.map": "/mrstaticjs/intelligent-recommend.516dee6a.chunk.js.map",
"main.css": "/mrstaticcss/main.a1acb4d0.chunk.css",
"main.js": "/mrstaticjs/main.08bdd8cf.chunk.js",
"main.js.map": "/mrstaticjs/main.08bdd8cf.chunk.js.map",
"main.js": "/mrstaticjs/main.a75be06f.chunk.js",
"main.js.map": "/mrstaticjs/main.a75be06f.chunk.js.map",
"ml.css": "/mrstaticcss/ml.15e06c2d.chunk.css",
"ml.js": "/mrstaticjs/ml.77e15191.chunk.js",
"ml.js.map": "/mrstaticjs/ml.77e15191.chunk.js.map",
......@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.02d22ffa.chunk.css",
"python-class.js": "/mrstaticjs/python-class.909a9941.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.909a9941.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.1f286ea2.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.1f286ea2.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.4033c3a9.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.4033c3a9.js.map",
"search.css": "/mrstaticcss/search.90117399.chunk.css",
"search.js": "/mrstaticjs/search.aa374f34.chunk.js",
"search.js.map": "/mrstaticjs/search.aa374f34.chunk.js.map",
......@@ -274,14 +274,14 @@
"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.3d487fcf27ab96b604728b7fc737b018.js": "/precache-manifest.3d487fcf27ab96b604728b7fc737b018.js",
"precache-manifest.793c1820b32b26a18b7fedd6f42b5ee7.js": "/precache-manifest.793c1820b32b26a18b7fedd6f42b5ee7.js",
"service-worker.js": "/service-worker.js"
},
"entrypoints": [
"mrstaticjs/runtime-main.1f286ea2.js",
"mrstaticjs/runtime-main.4033c3a9.js",
"mrstaticcss/51.93a9580a.chunk.css",
"mrstaticjs/51.3594b5c0.chunk.js",
"mrstaticcss/main.a1acb4d0.chunk.css",
"mrstaticjs/main.08bdd8cf.chunk.js"
"mrstaticjs/main.a75be06f.chunk.js"
]
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "6523c45b4c903b8c352bb7c34b4778aa",
"revision": "9c37c2dc7065fce75e34fdc2f035445a",
"url": "/index.html"
},
{
......@@ -100,7 +100,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/Country.5ef34577.chunk.css"
},
{
"revision": "3fb25c89f0c028d35a5a",
"revision": "e5f95b02122ffadf520c",
"url": "/mrstaticcss/CourseList.03ca1bb8.chunk.css"
},
{
......@@ -124,7 +124,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/PayOrder.184a3e34.chunk.css"
},
{
"revision": "edf1ac0532cad8fd862a",
"revision": "acfd59f6e1de28ead5ab",
"url": "/mrstaticcss/Preferential.c580d52c.chunk.css"
},
{
......@@ -180,7 +180,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/intelligent-recommend.19b3a957.chunk.css"
},
{
"revision": "6614b79f345267325478",
"revision": "f2136d4f1b699640955d",
"url": "/mrstaticcss/main.a1acb4d0.chunk.css"
},
{
......@@ -388,8 +388,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/Country.47e79f3e.chunk.js"
},
{
"revision": "3fb25c89f0c028d35a5a",
"url": "/mrstaticjs/CourseList.94c40aab.chunk.js"
"revision": "e5f95b02122ffadf520c",
"url": "/mrstaticjs/CourseList.ac7c2c0a.chunk.js"
},
{
"revision": "1bb5c628063608e4d8a8",
......@@ -420,8 +420,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/PayOrder.7c432b67.chunk.js"
},
{
"revision": "edf1ac0532cad8fd862a",
"url": "/mrstaticjs/Preferential.1a485abb.chunk.js"
"revision": "acfd59f6e1de28ead5ab",
"url": "/mrstaticjs/Preferential.0ac6ba42.chunk.js"
},
{
"revision": "6dc505ddbd76bc9328f9",
......@@ -476,8 +476,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/intelligent-recommend.516dee6a.chunk.js"
},
{
"revision": "6614b79f345267325478",
"url": "/mrstaticjs/main.08bdd8cf.chunk.js"
"revision": "f2136d4f1b699640955d",
"url": "/mrstaticjs/main.a75be06f.chunk.js"
},
{
"revision": "24af764d30d8f8576567",
......@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.909a9941.chunk.js"
},
{
"revision": "c0dc84998d45e645d83b",
"url": "/mrstaticjs/runtime-main.1f286ea2.js"
"revision": "12c3e6caf9dc87f5eaef",
"url": "/mrstaticjs/runtime-main.4033c3a9.js"
},
{
"revision": "3ca4d28e44f29e553d1d",
......
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.3d487fcf27ab96b604728b7fc737b018.js"
"/precache-manifest.793c1820b32b26a18b7fedd6f42b5ee7.js"
);
self.addEventListener('message', (event) => {
......
......@@ -30,7 +30,7 @@ class TeacherList extends Component {
render() {
return (
<div className="teacher">
<p className="cont">超强师资内容</p>
<p className="cont">超强师资团队</p>
<div className="teabox">
{this.state.data.map((item, i) => {
return <div key={i} className="tealist">
......
......@@ -22,7 +22,9 @@ class Classify extends Component {
this.state = {
ispull: false,
display: "none",
arr: [{ basics: [] }, { advanced: [] }],
// arr: [{ basics: [] }, { advanced: [] }],
arr: [{ basics: [] }],
allClass: [],
data: [],
activeTab: decodeURIComponent(getParam("name")),
......@@ -46,6 +48,37 @@ class Classify extends Component {
}
// 获取tabs接口
// getTabs = () => {
// let data = 0
// http
// .get(`${API.home}/m/course/classify/${data}`)
// .then((res) => {
// const _this = this
// if (res.data.code === 200) {
// if (res.data.data.common.length > 0) {
// console.log(res.data.data.common)
// let arr = ["basics", "advanced"]
// let arr2 = [{ basics: [] }, { advanced: [] }]
// let arr3 = []
// arr.forEach(function (item, index) {
// arr2[item] = res.data.data.common[index]
// res.data.data.common[index].list.forEach(function (item, index) {
// arr3.push({ title: item.c_name, id: item.c_id })
// })
// })
// _this.setState({
// arr: arr2,
// allClass: arr3,
// })
// }
// } else {
// Toast.info(res.data.msg, 2)
// }
// })
// .catch((err) => {
// console.log(err)
// })
// }
getTabs = () => {
let data = 0
http
......@@ -54,8 +87,9 @@ class Classify extends Component {
const _this = this
if (res.data.code === 200) {
if (res.data.data.common.length > 0) {
let arr = ["basics", "advanced"]
let arr2 = [{ basics: [] }, { advanced: [] }]
console.log(res.data.data.common[0].list)
let arr = ["basics"]
let arr2 = [{ basics: [] }]
let arr3 = []
arr.forEach(function (item, index) {
arr2[item] = res.data.data.common[index]
......@@ -64,10 +98,12 @@ class Classify extends Component {
})
})
_this.setState({
arr: arr2,
arr: res.data.data.common,
allClass: arr3,
})
}
console.log(this.state.arr.basics,999)
} else {
Toast.info(res.data.msg, 2)
}
......@@ -261,20 +297,20 @@ class Classify extends Component {
<WhiteSpace />
</div>
<div className="mbc-box" style={{ display: this.state.display }}>
{this.state.arr.basics && (
{this.state.arr!==[] && (
<div className="tabcontent">
<ClassCourse
activeTab={this.state.activeTab}
data={this.state.arr.basics.list}
title={this.state.arr.basics.name}
data={this.state.arr[0].list}
title={this.state.arr[0].name}
labelclick={this.labelclick}
/>
<ClassCourse
{/* <ClassCourse
activeTab={this.state.activeTab}
data={this.state.arr.advanced.list}
title={this.state.arr.advanced.name}
labelclick={this.labelclick}
/>
/> */}
</div>
)}
</div>
......
......@@ -101,7 +101,7 @@ class Preferential extends Component {
<Loading isLoading={this.state.isLoading}>
<div className="class-content">
<WhiteSpace />
{console.log(tabs)}
<Tabs
tabs={tabs}
animated={false}
......
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