Commit f0f2e16f by zhanghaozhe

限时免费

parent d48e6bf3
......@@ -101,8 +101,8 @@
"python-class.css": "/mrstatic/css/python-class.38fe0012.chunk.css",
"python-class.js": "/mrstatic/js/python-class.bfcdc4e4.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.bfcdc4e4.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.b23e3441.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.b23e3441.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.4ce8f336.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.4ce8f336.js.map",
"search.css": "/mrstatic/css/search.fab97849.chunk.css",
"search.js": "/mrstatic/js/search.ede28132.chunk.js",
"search.js.map": "/mrstatic/js/search.ede28132.chunk.js.map",
......@@ -153,8 +153,8 @@
"mrstatic/js/52.b512ac3d.chunk.js": "/mrstatic/js/52.b512ac3d.chunk.js",
"mrstatic/js/52.b512ac3d.chunk.js.map": "/mrstatic/js/52.b512ac3d.chunk.js.map",
"mrstatic/css/53.0c2dccb7.chunk.css": "/mrstatic/css/53.0c2dccb7.chunk.css",
"mrstatic/js/53.89a07d17.chunk.js": "/mrstatic/js/53.89a07d17.chunk.js",
"mrstatic/js/53.89a07d17.chunk.js.map": "/mrstatic/js/53.89a07d17.chunk.js.map",
"mrstatic/js/53.22bf4b5d.chunk.js": "/mrstatic/js/53.22bf4b5d.chunk.js",
"mrstatic/js/53.22bf4b5d.chunk.js.map": "/mrstatic/js/53.22bf4b5d.chunk.js.map",
"mrstatic/css/54.470b9744.chunk.css": "/mrstatic/css/54.470b9744.chunk.css",
"mrstatic/js/54.c4e1414f.chunk.js": "/mrstatic/js/54.c4e1414f.chunk.js",
"mrstatic/js/54.c4e1414f.chunk.js.map": "/mrstatic/js/54.c4e1414f.chunk.js.map",
......@@ -228,6 +228,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f2f4294d.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.b93284ed7afd2d973e1ec98f65eafa66.js": "/precache-manifest.b93284ed7afd2d973e1ec98f65eafa66.js",
"precache-manifest.780412f34d8d3211fbf3917d34b9a536.js": "/precache-manifest.780412f34d8d3211fbf3917d34b9a536.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{1222:function(e,t,a){},1263:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),c=a.n(n),r=a(77),l=a(4),s=a(7),i=a(5),o=a(8),m=a(9),u=(a(37),a(11)),d=a.n(u),p=a(0),E=a.n(p),v=a(3),f=(a(1222),a(26)),b=a(604),g=a(159),h=a(21),y=a(16);function N(e){d.a.info(e,2,null,!1)}var k=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={tab:{},courses:[],navItemStyle:{},tabActiveIndex:0},a.getData=function(){Promise.all([v.d.get("".concat(API.home,"/sys/category")),v.d.get("".concat(API.home,"/sys/course"))]).then(function(e){var t=Object(r.a)(e,2),n=t[0],c=t[1],l=n.data,s=l.data,i=l.code,o=l.msg,m=c.data,u=m.data,d=m.code,p=m.msg;200==i?a.setState({tab:s}):N(o),200===d?a.setState({courses:u}):N(p)})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.changeTab=function(e,t){a.state.tabActiveIndex!==t&&a.setState({tabActiveIndex:t})},a.getCourse=function(e,t){var n=a.props,c=n.user,r=n.history;c.hasError?r.push("/passport"):v.d.post("".concat(API.home,"/sys/limitFree/receive"),{course_id:e}).then(function(e){var n=e.data,c=n.code,r=n.msg;if(200===c)var l=Object(f.h)({className:"get-course-popup",closable:!1,clickMaskClose:!1,title:E.a.createElement("div",null,E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png",alt:""}),E.a.createElement("div",null,"\u8bfe\u7a0b\u6709\u6548\u671f7\u5929\uff0c\u5feb\u53bb\u5b66\u4e60\u5427~")),content:E.a.createElement("div",{className:"btns"},E.a.createElement("button",{onClick:function(){l.close(),a.getData()}},"\u77e5\u9053\u4e86"),E.a.createElement("button",{onClick:function(){a.toPlay(t),l.close()}},"\u7acb\u5373\u5b66\u4e60"))});else N(r)})},a.toPlay=function(e){a.props.history.push("/play/video?id=".concat(e))},a.formatTime=function(e){return{d:Math.floor(e/60/60/24).toString().padStart(2,"0"),h:Math.floor(e/60/60%24).toString().padStart(2,"0"),m:Math.floor(e/60%60).toString().padStart(2,"0")}},a}return Object(m.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getData()}},{key:"render",value:function(){var e=this,t=this.state,a=t.tab,n=t.courses,r=t.navItemStyle,l=t.tabActiveIndex;return E.a.createElement("div",{className:"limit-free"},E.a.createElement(f.e,{arrow:!0,title:"\u9650\u65f6\u514d\u8d39"}),E.a.createElement("div",{className:"banner"},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png",alt:""})),E.a.createElement("nav",null,E.a.createElement("div",{className:"prev-cover"}),E.a.createElement("ul",{ref:function(t){return e.nav=t}},a&&!!Object.keys(a).length&&Object.keys(a).map(function(t,n){return E.a.createElement("li",{key:n,className:n===l?"active":"",style:r,onClick:function(t){return e.changeTab(t,n)}},E.a.createElement("a",{href:"#category".concat(t),target:"_self"},a[t]))})),E.a.createElement("div",{className:"next-cover"})),E.a.createElement(c.a,null),E.a.createElement("div",{className:"course-list"},E.a.createElement("ul",null,a&&!!Object.keys(a).length&&Object.keys(a).map(function(t){return E.a.createElement("li",{key:t,className:"category"},E.a.createElement("h2",{id:"category".concat(t)},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png",alt:""}),E.a.createElement("span",null,a[t])),E.a.createElement("ul",{className:"courses"},n&&n.length&&n.map(function(a,n){if(a.category_id!=t)return null;var c,r;switch(a.course_status){case 0:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement("button",{onClick:function(t){t.stopPropagation(),e.getCourse(a.course_id,a.v_course_id)}},"\u514d\u8d39\u9886\u53d6"));break;case 1:var l=e.formatTime(a.course_expire),s=l.d,i=l.h,o=l.m;c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,s,"\u5929",i,"\u65f6",o,"\u5206\u540e\u8fc7\u671f")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(_,{id:a.course_id}));break;case 2:c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\xa5",a.price1),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(y.b,{to:"/detail?id=".concat(a.course_id)},"\u7acb\u5373\u8d2d\u4e70"));break;case 3:c=E.a.createElement("div",{className:"purchased"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",null,"\u5df2\u8d2d\u4e70"),E.a.createElement(_,{id:a.course_id}))}var m=E.a.createElement("div",{className:"info"},E.a.createElement("div",{className:"title"},a.course_title),c,r);return E.a.createElement(b.a,{img:a.image_name,handleClick:e.handleClick,id:a.course_id,info:m,key:n})})))}))),E.a.createElement("div",{className:"no-more"},"-\u6ca1\u6709\u66f4\u591a\u4e86-"))}}]),t}(p.Component);function _(e){var t=e.id;return E.a.createElement(y.b,{to:"/play/video?id=".concat(t)},"\u7acb\u5373\u5b66\u4e60")}t.default=Object(h.b)(function(e){return{user:e.user}},null)(Object(g.a)(k))},604:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(605);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},605:function(e,t,a){}}]);
//# sourceMappingURL=53.22bf4b5d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{1222:function(e,t,a){},1263:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),c=a.n(n),r=a(77),l=a(4),s=a(7),i=a(5),o=a(8),m=a(9),u=(a(37),a(11)),d=a.n(u),p=a(0),E=a.n(p),v=a(3),f=(a(1222),a(26)),b=a(604),g=a(159),h=a(21),y=a(16);function N(e){d.a.info(e,2,null,!1)}var k=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={tab:{},courses:[],navItemStyle:{},tabActiveIndex:0},a.getData=function(){Promise.all([v.d.get("".concat(API.home,"/sys/category")),v.d.get("".concat(API.home,"/sys/course"))]).then(function(e){var t=Object(r.a)(e,2),n=t[0],c=t[1],l=n.data,s=l.data,i=l.code,o=l.msg,m=c.data,u=m.data,d=m.code,p=m.msg;200==i?a.setState({tab:s}):N(o),200===d?a.setState({courses:u}):N(p)})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.changeTab=function(e,t){a.state.tabActiveIndex!==t&&a.setState({tabActiveIndex:t})},a.getCourse=function(e,t){v.d.post("".concat(API.home,"/sys/limitFree/receive"),{course_id:e}).then(function(e){var n=e.data,c=n.code,r=n.msg;if(200===c)var l=Object(f.h)({className:"get-course-popup",closable:!1,clickMaskClose:!1,title:E.a.createElement("div",null,E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png",alt:""}),E.a.createElement("div",null,"\u8bfe\u7a0b\u6709\u6548\u671f7\u5929\uff0c\u5feb\u53bb\u5b66\u4e60\u5427~")),content:E.a.createElement("div",{className:"btns"},E.a.createElement("button",{onClick:function(){l.close(),a.getData()}},"\u77e5\u9053\u4e86"),E.a.createElement("button",{onClick:function(){a.toPlay(t),l.close()}},"\u7acb\u5373\u5b66\u4e60"))});else N(r)})},a.toPlay=function(e){a.props.history.push("/play/video?id=".concat(e))},a.formatTime=function(e){return{d:Math.floor(e/60/60/24).toString().padStart(2,"0"),h:Math.floor(e/60/60%24).toString().padStart(2,"0"),m:Math.floor(e/60%60).toString().padStart(2,"0")}},a}return Object(m.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.user,a=e.history;t.hasError&&a.push("/passport"),this.getData()}},{key:"render",value:function(){var e=this,t=this.state,a=t.tab,n=t.courses,r=t.navItemStyle,l=t.tabActiveIndex;return E.a.createElement("div",{className:"limit-free"},E.a.createElement(f.e,{arrow:!0,title:"\u9650\u65f6\u514d\u8d39"}),E.a.createElement("div",{className:"banner"},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png",alt:""})),E.a.createElement("nav",null,E.a.createElement("div",{className:"prev-cover"}),E.a.createElement("ul",{ref:function(t){return e.nav=t}},a&&!!Object.keys(a).length&&Object.keys(a).map(function(t,n){return E.a.createElement("li",{key:n,className:n===l?"active":"",style:r,onClick:function(t){return e.changeTab(t,n)}},E.a.createElement("a",{href:"#category".concat(t),target:"_self"},a[t]))})),E.a.createElement("div",{className:"next-cover"})),E.a.createElement(c.a,null),E.a.createElement("div",{className:"course-list"},E.a.createElement("ul",null,a&&!!Object.keys(a).length&&Object.keys(a).map(function(t){return E.a.createElement("li",{key:t,className:"category"},E.a.createElement("h2",{id:"category".concat(t)},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png",alt:""}),E.a.createElement("span",null,a[t])),E.a.createElement("ul",{className:"courses"},n&&n.length&&n.map(function(a,n){if(a.category_id!=t)return null;var c,r;switch(a.course_status){case 0:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement("button",{onClick:function(t){t.stopPropagation(),e.getCourse(a.course_id,a.v_course_id)}},"\u514d\u8d39\u9886\u53d6"));break;case 1:var l=e.formatTime(a.course_expire),s=l.d,i=l.h,o=l.m;c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,s,"\u5929",i,"\u65f6",o,"\u5206\u540e\u8fc7\u671f")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(_,{id:a.course_id}));break;case 2:c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\xa5",a.price1),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(y.b,{to:"/detail?id=".concat(a.course_id)},"\u7acb\u5373\u8d2d\u4e70"));break;case 3:c=E.a.createElement("div",{className:"purchased"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",null,"\u5df2\u8d2d\u4e70"),E.a.createElement(_,{id:a.course_id}))}var m=E.a.createElement("div",{className:"info"},E.a.createElement("div",{className:"title"},a.course_title),c,r);return E.a.createElement(b.a,{img:a.image_name,handleClick:e.handleClick,id:a.course_id,info:m,key:n})})))}))),E.a.createElement("div",{className:"no-more"},"-\u6ca1\u6709\u66f4\u591a\u4e86-"))}}]),t}(p.Component);function _(e){var t=e.id;return E.a.createElement(y.b,{to:"/play/video?id=".concat(t)},"\u7acb\u5373\u5b66\u4e60")}t.default=Object(h.b)(function(e){return{user:e.user}},null)(Object(g.a)(k))},604:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(605);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},605:function(e,t,a){}}]);
//# sourceMappingURL=53.89a07d17.chunk.js.map
\ No newline at end of file
......@@ -20,16 +20,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.e2d4584a.chunk.js"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "7667075f1f59caece1d1",
"url": "/mrstatic/js/3.1dea8d13.chunk.js"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "d12b8d1d19583d9f6d2a",
......@@ -156,8 +156,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/aist-share.296e6235.chunk.js"
},
{
"revision": "750596d7ec514439d276",
"url": "/mrstatic/js/53.89a07d17.chunk.js"
"revision": "90405e6631d8eace59db",
"url": "/mrstatic/js/53.22bf4b5d.chunk.js"
},
{
"revision": "e73e4587ccffabf84093",
......@@ -268,8 +268,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.bfcdc4e4.chunk.js"
},
{
"revision": "e23a77296e87a702a874",
"url": "/mrstatic/js/runtime~main.b23e3441.js"
"revision": "ff99f1221703077434be",
"url": "/mrstatic/js/runtime~main.4ce8f336.js"
},
{
"revision": "04e5a608efc75de92c81",
......@@ -400,7 +400,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/blessing-preheat.30803ca5.chunk.css"
},
{
"revision": "750596d7ec514439d276",
"revision": "90405e6631d8eace59db",
"url": "/mrstatic/css/53.0c2dccb7.chunk.css"
},
{
......@@ -496,7 +496,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/1.5f5ee8e9.chunk.css"
},
{
"revision": "41c52a7ed6bff7dade918fc5d48ab0e3",
"revision": "690904193dbd67112b71473f9022f295",
"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.b93284ed7afd2d973e1ec98f65eafa66.js"
"/precache-manifest.780412f34d8d3211fbf3917d34b9a536.js"
);
workbox.clientsClaim();
......
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