Commit 7bf9e91d by xuzhenghua

bug

parent b9a6a7b3
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
"purchased.css": "/static/css/purchased.bd80fb0a.chunk.css", "purchased.css": "/static/css/purchased.bd80fb0a.chunk.css",
"purchased.js": "/static/js/purchased.1a0cc90e.chunk.js", "purchased.js": "/static/js/purchased.1a0cc90e.chunk.js",
"purchased.js.map": "/static/js/purchased.1a0cc90e.chunk.js.map", "purchased.js.map": "/static/js/purchased.1a0cc90e.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.214d6912.js", "runtime~main.js": "/static/js/runtime~main.f6ae1941.js",
"runtime~main.js.map": "/static/js/runtime~main.214d6912.js.map", "runtime~main.js.map": "/static/js/runtime~main.f6ae1941.js.map",
"search.css": "/static/css/search.68fd6acc.chunk.css", "search.css": "/static/css/search.68fd6acc.chunk.css",
"search.js": "/static/js/search.449ffe8e.chunk.js", "search.js": "/static/js/search.449ffe8e.chunk.js",
"search.js.map": "/static/js/search.449ffe8e.chunk.js.map", "search.js.map": "/static/js/search.449ffe8e.chunk.js.map",
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
"togroup.js": "/static/js/togroup.d73bccb5.chunk.js", "togroup.js": "/static/js/togroup.d73bccb5.chunk.js",
"togroup.js.map": "/static/js/togroup.d73bccb5.chunk.js.map", "togroup.js.map": "/static/js/togroup.d73bccb5.chunk.js.map",
"video.css": "/static/css/video.a4013dc8.chunk.css", "video.css": "/static/css/video.a4013dc8.chunk.css",
"video.js": "/static/js/video.46b1913c.chunk.js", "video.js": "/static/js/video.7c320d7a.chunk.js",
"video.js.map": "/static/js/video.46b1913c.chunk.js.map", "video.js.map": "/static/js/video.7c320d7a.chunk.js.map",
"static/css/24.965d713a.chunk.css": "/static/css/24.965d713a.chunk.css", "static/css/24.965d713a.chunk.css": "/static/css/24.965d713a.chunk.css",
"static/js/24.ed68e76b.chunk.js": "/static/js/24.ed68e76b.chunk.js", "static/js/24.ed68e76b.chunk.js": "/static/js/24.ed68e76b.chunk.js",
"static/js/24.ed68e76b.chunk.js.map": "/static/js/24.ed68e76b.chunk.js.map", "static/js/24.ed68e76b.chunk.js.map": "/static/js/24.ed68e76b.chunk.js.map",
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
"static/js/31.1bf13040.chunk.js": "/static/js/31.1bf13040.chunk.js", "static/js/31.1bf13040.chunk.js": "/static/js/31.1bf13040.chunk.js",
"static/js/31.1bf13040.chunk.js.map": "/static/js/31.1bf13040.chunk.js.map", "static/js/31.1bf13040.chunk.js.map": "/static/js/31.1bf13040.chunk.js.map",
"index.html": "/index.html", "index.html": "/index.html",
"precache-manifest.da124fc0510efe678be713e3ddcf1cd5.js": "/precache-manifest.da124fc0510efe678be713e3ddcf1cd5.js", "precache-manifest.dead6f76347aa531f45a7e3706da1443.js": "/precache-manifest.dead6f76347aa531f45a7e3706da1443.js",
"service-worker.js": "/service-worker.js", "service-worker.js": "/service-worker.js",
"static/css/24.965d713a.chunk.css.map": "/static/css/24.965d713a.chunk.css.map", "static/css/24.965d713a.chunk.css.map": "/static/css/24.965d713a.chunk.css.map",
"static/css/26.73976871.chunk.css.map": "/static/css/26.73976871.chunk.css.map", "static/css/26.73976871.chunk.css.map": "/static/css/26.73976871.chunk.css.map",
......
...@@ -136,8 +136,8 @@ self.__precacheManifest = [ ...@@ -136,8 +136,8 @@ self.__precacheManifest = [
"url": "/static/js/BargainMiddlePage.c17d2450.chunk.js" "url": "/static/js/BargainMiddlePage.c17d2450.chunk.js"
}, },
{ {
"revision": "028c6b3fe04c533c9aa9", "revision": "98c7cc3b5104ac6028cf",
"url": "/static/js/runtime~main.214d6912.js" "url": "/static/js/runtime~main.f6ae1941.js"
}, },
{ {
"revision": "43dbc7a6a2095dc3c29a", "revision": "43dbc7a6a2095dc3c29a",
...@@ -172,12 +172,12 @@ self.__precacheManifest = [ ...@@ -172,12 +172,12 @@ self.__precacheManifest = [
"url": "/static/js/togroup.d73bccb5.chunk.js" "url": "/static/js/togroup.d73bccb5.chunk.js"
}, },
{ {
"revision": "51b9a4d7b4a75ae86455", "revision": "01eca3a39cbde774a343",
"url": "/static/css/video.a4013dc8.chunk.css" "url": "/static/css/video.a4013dc8.chunk.css"
}, },
{ {
"revision": "51b9a4d7b4a75ae86455", "revision": "01eca3a39cbde774a343",
"url": "/static/js/video.46b1913c.chunk.js" "url": "/static/js/video.7c320d7a.chunk.js"
}, },
{ {
"revision": "80011994e30adf599e5f47fcc81bc06d", "revision": "80011994e30adf599e5f47fcc81bc06d",
...@@ -212,16 +212,16 @@ self.__precacheManifest = [ ...@@ -212,16 +212,16 @@ self.__precacheManifest = [
"url": "/static/js/28.ab85697f.chunk.js" "url": "/static/js/28.ab85697f.chunk.js"
}, },
{ {
"revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0", "revision": "55ad4bbcfbe7879698a2538de5145a09",
"url": "/static/media/iconfont.10b7bd5b.eot" "url": "/static/media/iconfont.55ad4bbc.ttf"
}, },
{ {
"revision": "0ddb8222b83ddc441ccb", "revision": "0ddb8222b83ddc441ccb",
"url": "/static/js/29.52529984.chunk.js" "url": "/static/js/29.52529984.chunk.js"
}, },
{ {
"revision": "55ad4bbcfbe7879698a2538de5145a09", "revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0",
"url": "/static/media/iconfont.55ad4bbc.ttf" "url": "/static/media/iconfont.10b7bd5b.eot"
}, },
{ {
"revision": "e0787ad15d0a12c4d4fc", "revision": "e0787ad15d0a12c4d4fc",
...@@ -260,7 +260,7 @@ self.__precacheManifest = [ ...@@ -260,7 +260,7 @@ self.__precacheManifest = [
"url": "/static/css/24.965d713a.chunk.css" "url": "/static/css/24.965d713a.chunk.css"
}, },
{ {
"revision": "4fdceda32c4dc77a77e123d16ec3ddf3", "revision": "2b7ffa0835c8e83cfe6af7b191ccfd0b",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.da124fc0510efe678be713e3ddcf1cd5.js" "/precache-manifest.dead6f76347aa531f45a7e3706da1443.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
!function(e){function r(r){for(var n,a,i=r[0],d=r[1],f=r[2],u=0,l=[];u<i.length;u++)a=i[u],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"6d24aba4",1:"2ef92576",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c25de43a",7:"31d6cfe0",8:"71617dc9",9:"a285bc5d",10:"706b43f2",11:"fa7d91fc",12:"a97e13d0",13:"f2c7a13b",14:"2f69295d",16:"789a128d",17:"bd80fb0a",19:"68fd6acc",20:"9e774e45",21:"95315632",22:"f08bc5f3",23:"a4013dc8",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=(s=c[d]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===o))return r()}var u=document.getElementsByTagName("style");for(d=0;d<u.length;d++){var s;if((f=(s=u[d]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"c17d2450",1:"17ebd626",2:"df1427b5",3:"7fd9d55d",4:"681b3739",5:"539ac99a",6:"36a03aa7",7:"229e2d92",8:"220217be",9:"1ac4da1c",10:"21f335ee",11:"a3aa3523",12:"645eee55",13:"72b220db",14:"70bdafef",16:"fa5a3185",17:"1a0cc90e",19:"449ffe8e",20:"2842f7fe",21:"7d4b3c37",22:"d73bccb5",23:"46b1913c",25:"403aae65",26:"f842ed87",27:"33496196",28:"ab85697f",29:"52529984",30:"3e2101f4",31:"1bf13040"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],f=d.push.bind(d);d.push=r,d=d.slice();for(var u=0;u<d.length;u++)r(d[u]);var s=f;t()}([]); !function(e){function r(r){for(var a,n,i=r[0],d=r[1],f=r[2],u=0,l=[];u<i.length;u++)n=i[u],o[n]&&l.push(o[n][0]),o[n]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var d=t[n];0!==o[d]&&(a=!1)}a&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var a={},n={18:0},o={18:0},c=[];function i(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"6d24aba4",1:"2ef92576",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c25de43a",7:"31d6cfe0",8:"71617dc9",9:"a285bc5d",10:"706b43f2",11:"fa7d91fc",12:"a97e13d0",13:"f2c7a13b",14:"2f69295d",16:"789a128d",17:"bd80fb0a",19:"68fd6acc",20:"9e774e45",21:"95315632",22:"f08bc5f3",23:"a4013dc8",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[e]+".chunk.css",o=i.p+a,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=(s=c[d]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===a||f===o))return r()}var u=document.getElementsByTagName("style");for(d=0;d<u.length;d++){var s;if((f=(s=u[d]).getAttribute("data-href"))===a||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"c17d2450",1:"17ebd626",2:"df1427b5",3:"7fd9d55d",4:"681b3739",5:"539ac99a",6:"36a03aa7",7:"229e2d92",8:"220217be",9:"1ac4da1c",10:"21f335ee",11:"a3aa3523",12:"645eee55",13:"72b220db",14:"70bdafef",16:"fa5a3185",17:"1a0cc90e",19:"449ffe8e",20:"2842f7fe",21:"7d4b3c37",22:"d73bccb5",23:"7c320d7a",25:"403aae65",26:"f842ed87",27:"33496196",28:"ab85697f",29:"52529984",30:"3e2101f4",31:"1bf13040"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=a,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)i.d(t,a,function(r){return e[r]}.bind(null,a));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],f=d.push.bind(d);d.push=r,d=d.slice();for(var u=0;u<d.length;u++)r(d[u]);var s=f;t()}([]);
//# sourceMappingURL=runtime~main.214d6912.js.map //# sourceMappingURL=runtime~main.f6ae1941.js.map
\ No newline at end of file \ No newline at end of file
import React, { Component } from 'react' import React, {Component} from 'react'
import HeaderBar from '@/common/HeaderBar' import HeaderBar from '@/common/HeaderBar'
import './video.scss' import './video.scss'
import { NavLink, Route, Redirect, Switch, Link } from 'react-router-dom' import {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'
import { http, getParam } from '@/utils' import {http, getParam} from '@/utils'
import Recommendation from './recommendation' import Recommendation from './recommendation'
import VideoCatalog from './video-catalog' import VideoCatalog from './video-catalog'
import DatumCatalog from './datum-catalog' import DatumCatalog from './datum-catalog'
import { Toast } from 'antd-mobile' import {Toast} from 'antd-mobile'
import videojs from 'video.js' import videojs from 'video.js'
import 'video.js/dist/video-js.min.css' import 'video.js/dist/video-js.min.css'
import { Modal } from "antd-mobile" import {Modal} from "antd-mobile"
import { Loading } from '@/common' import {Loading} from '@/common'
import { connect } from "react-redux" import {connect} from "react-redux"
import jsCookie from 'js-cookie' import jsCookie from 'js-cookie'
import io from 'socket.io-client' import io from 'socket.io-client'
import Single from "@/components/detail/single"; import Single from "@/components/detail/single";
...@@ -100,8 +100,8 @@ class Video extends Component { ...@@ -100,8 +100,8 @@ class Video extends Component {
componentDidMount() { componentDidMount() {
const location = window.location; const location = window.location;
if(location.protocol === 'https:'){ if (location.protocol === 'https:') {
location.replace('http'+ location.href.slice(5)) location.replace('http' + location.href.slice(5))
return return
} }
...@@ -334,7 +334,14 @@ class Video extends Component { ...@@ -334,7 +334,14 @@ class Video extends Component {
getVideoList = () => { getVideoList = () => {
http.get(`${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`) let url = ''
if (getParam('video_id')) {
url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`
} else {
url = `${API.home}/m/course/play/${this.courseID}`
}
http.get(url)
.then(res => { .then(res => {
const data = res.data const data = res.data
if (data.code === 200) { if (data.code === 200) {
......
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