Commit 54d53b9e authored by wangwei's avatar wangwei

课包已知问题优化

parent 0b9b4e46
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
hm.src = "https://hm.baidu.com/hm.js?3d48322170d471164729cba5dfa4195f"; hm.src = "https://hm.baidu.com/hm.js?3d48322170d471164729cba5dfa4195f";
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})();</script><style></style><link href=/static/css/app.9f631d4069047acf4ee994f5d9f958c3.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script src=https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js></script><script>var vConsole = new VConsole();</script><script type=text/javascript src=/static/js/manifest.c1643f3a42efc9481bb6.js></script><script type=text/javascript src=/static/js/vendor.f2f18cf9e4f348a6b3fa.js></script><script type=text/javascript src=/static/js/app.2d7b6b600d4e231463b0.js></script></body></html> })();</script><style></style><link href=/static/css/app.9f631d4069047acf4ee994f5d9f958c3.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script src=https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js></script><script>var vConsole = new VConsole();</script><script type=text/javascript src=/static/js/manifest.d6d6ec83043087b53fff.js></script><script type=text/javascript src=/static/js/vendor.f2f18cf9e4f348a6b3fa.js></script><script type=text/javascript src=/static/js/app.1db394b05e8d8d240f01.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([16],{GHGh:function(e,n,t){var a=t("z/+d");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);t("rjj0")("64033dd0",a,!1,{})},IcnI:function(e,n,t){"use strict";var a=t("7+uW"),i=t("NYxO"),o=(t("zSLJ"),{setToken:function(e,n){e.token=n,localStorage.setItem("cc_token",n)},transitionGo:function(e){e.transitionName="slide-left"},transitionBack:function(e){e.transitionName="slide-right"},isMobile:function(e,n){e.isMobile=n}});a.default.use(i.a);n.a=new i.a.Store({state:{token:"",transitionName:"slide-left",isMobile:!1},mutations:o,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},isMobile:function(e,n){(0,e.commit)("isMobile",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=t("7+uW"),i=function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade"}},[n("router-view",{staticClass:"child-view"})],1)],1)};i._withStripped=!0;var o={render:i,staticRenderFns:[]},r=o;var l=!1;var s=t("VU/8")({name:"App",mounted:function(){}},r,!1,function(e){l||t("GHGh")},null,null);s.options.__file="src/App.vue";var c=s.exports,p=t("YaEn"),u=t("IcnI"),A=t("Au9i"),d=t.n(A);t("d8/S");a.default.config.productionTip=!1,a.default.use(d.a),new a.default({el:"#app",router:p.a,store:u.a,components:{App:c},template:"<App/>"}),Array.prototype.find||(Array.prototype.find=function(e){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n,t=Object(this),a=t.length>>>0,i=arguments[1],o=0;o<a;o++)if(n=t[o],e.call(i,n,o,t))return n})},YaEn:function(e,n,t){"use strict";var a=t("7+uW"),i=t("IcnI"),o=t("sf/l"),r=t("/ocq");a.default.use(r.a);var l=new r.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("dAjm")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("4t0V")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:0}},{path:"/myGoodsList",name:"myGoodsList",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("P3Wy")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:1}},{path:"/mine",name:"mine",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("U/b5")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:1}},{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("R7Pr")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:2}},{path:"/share",name:"share",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("Eg0l")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:2}},{path:"/author",name:"author",component:function(e){return t.e(10).then(function(){var n=[t("sA+T")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:100,noNew:!0}},{path:"/buyDetail",name:"buyDetail",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("bNYG")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_login:!0,noNew:!0,deep:10}},{path:"/buy",name:"buy",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("Y1ei")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{noNew:!0,deep:11}},{path:"/success",name:"success",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("IF8E")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{noNew:!0,deep:12}},{path:"/buySuccess",name:"buySuccess",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("w9eS")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{noNew:!0,deep:12}},{path:"/map",name:"map",component:function(e){return Promise.all([t.e(0),t.e(3)]).then(function(){var n=[t("3QU7")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:3}},{path:"/saleSuccess",name:"saleSuccess",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("wSE2")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:4}},{path:"/bindMobile",name:"bindMobile",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("/Vxk")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{deep:0}}]});l.beforeEach(function(e,n,t){var a={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1===e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};a.versions.mobile&&navigator.userAgent.toLowerCase().match(/MicroMessenger/i);i.a.dispatch("isMobile",a.versions.mobile),window._hmt.push(["_trackPageview","/#"+e.fullPath]),document.title="唱唱启蒙英语";var r=function(){if(localStorage.getItem("retUrl")&&null!==localStorage.getItem("retUrl")&&""!==localStorage.getItem("retUrl")){var e=localStorage.getItem("retUrl").toString();localStorage.removeItem("retUrl"),t(e)}else t()};if("author"===e.name||"bindMobile"===e.name)t();else if(window.location.href.indexOf("token")>-1){var l=o.a.getUrlParam().token;i.a.dispatch("setToken",l),r()}else if(localStorage.getItem("cc_token"))i.a.dispatch("setToken",localStorage.getItem("cc_token")),r();else if(e.meta.skip_login)r();else{var s={retUrl:e.fullPath};e.meta.noNew&&(s.is_new_user_url=1),t({name:"author",query:s})}}),n.a=l},"d8/S":function(e,n){},"sf/l":function(e,n,t){"use strict";n.a={dateFmt:function(e,n){var t={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var a in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return n},getUrlParam:function(){var e=location.search,n=new Object;if(-1!=e.indexOf("?"))for(var t=e.substr(1).split("&"),a=0;a<t.length;a++)n[t[a].split("=")[0]]=unescape(t[a].split("=")[1]);return n},toDataURL:function(e,n){var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.onloadend=function(){n(e.result)},e.readAsDataURL(t.response)},t.responseType="blob",t.open("GET",e,!0),t.send()}}},"z/+d":function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,'\n#app {\n height: 100%;\n font-family: "Helvetica Neue",\n Helvetica,\n "PingFang SC",\n "Hiragino Sans GB",\n "Microsoft YaHei",\n "\\5FAE\\8F6F\\96C5\\9ED1",\n Arial,\n sans-serif;\n}\nhtml,body,#app{\n width: 100%;\n height: 100%; position: fixed;top:0;left:0;\n overflow: auto;\n}\n*{\n margin: auto;\n padding: auto;\n}\n.child-view {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n -webkit-transition: all .5s;\n transition: all .5s;\n}\n.fade-enter-active, .fade-leave-active {\n -webkit-transition: opacity .5s;\n transition: opacity .5s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n opacity: 0;\n}\n',"",{version:3,sources:["D:/myproject/new-singsingH5/src/src/App.vue"],names:[],mappings:";AAiBA;EACA,aAAA;EACA;;;;;;;aAOA;CACA;AACA;IACA,YAAA;IACA,aAAA,CAAA,gBAAA,MAAA,OAAA;IACA,eAAA;CACA;AACA;IACA,aAAA;IACA,cAAA;CACA;AACA;EACA,mBAAA;EACA,QAAA;EACA,OAAA;EACA,YAAA;EACA,aAAA;EACA,4BAAA;EAAA,oBAAA;CACA;AACA;EACA,gCAAA;EAAA,wBAAA;CACA;AACA;EACA,WAAA;CACA",file:"App.vue",sourcesContent:['<template>\n <div id="app">\n <transition name="fade">\n <router-view class="child-view"/>\n </transition>\n </div>\n</template>\n\n<script>\nexport default {\n name: \'App\',\n mounted(){\n },\n}\n<\/script>\n\n<style>\n#app {\n height: 100%;\n font-family: "Helvetica Neue",\n Helvetica,\n "PingFang SC",\n "Hiragino Sans GB",\n "Microsoft YaHei",\n "微软雅黑",\n Arial,\n sans-serif;\n}\n html,body,#app{\n width: 100%;\n height: 100%; position: fixed;top:0;left:0;\n overflow: auto;\n }\n *{\n margin: auto;\n padding: auto;\n }\n.child-view {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: all .5s;\n}\n.fade-enter-active, .fade-leave-active {\n transition: opacity .5s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n opacity: 0;\n}\n</style>\n'],sourceRoot:""}])},zSLJ:function(e,n,t){"use strict"}},["NHnr"]);
//# sourceMappingURL=app.1db394b05e8d8d240f01.js.map
\ No newline at end of file
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=o(o.s=c[u]);return i};var r={},t={17:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"dcb89e07b8aa1c5aa1af",1:"5d86c82ca1c4865561fc",2:"2301cb2ba25120b4f4e0",3:"81f12bf192c94383d283",4:"2a1ed845f5ffb998c7bc",5:"bbb87395fdecb0367966",6:"816c6ddbaa833e674912",7:"fb406419a6de3d076357",8:"1f3811db85fd88b6360f",9:"5d4a39c9e1a784ee9683",10:"01437b5d24dc0988f3d5",11:"e25cf9ab8ad2ef236662",12:"ab60c4b0944ef819faa3",13:"48e5ec8966f3dc4513b2",14:"a87e2de1d70a4657abd8"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,a.appendChild(c),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.ccca122265f3de319fc3.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 6b64d546ea056ba76444"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","17","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA0ZrD,GAAA,MACle,IAAAkC,EAAAoB,WAAAC,EAAA,MAEA,SAAAA,IAEA1B,EAAA2B,QAAA3B,EAAA4B,OAAA,KACAC,aAAAxB,GACA,IAAAyB,EAAAtD,EAAAL,GACA,IAAA2D,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAA5D,EAAA,aAEAK,EAAAL,QAAA6D,GAKA,OAfAhC,EAAA2B,QAAA3B,EAAA4B,OAAAF,EAaA7B,EAAAoC,YAAAjC,GAEAL,GAIAX,EAAAkD,EAAApD,EAGAE,EAAAmD,EAAAjD,EAGAF,EAAAoD,EAAA,SAAAhD,EAAAiD,EAAAC,GACAtD,EAAAuD,EAAAnD,EAAAiD,IACA3D,OAAA8D,eAAApD,EAAAiD,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAtD,EAAA4D,EAAA,SAAAvD,GACA,IAAAiD,EAAAjD,KAAAwD,WACA,WAA2B,OAAAxD,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAoD,EAAAE,EAAA,IAAAA,GACAA,GAIAtD,EAAAuD,EAAA,SAAAO,EAAAC,GAAsD,OAAArE,OAAAC,UAAAC,eAAAC,KAAAiE,EAAAC,IAGtD/D,EAAAyB,EAAA,IAGAzB,EAAAgE,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.ccca122265f3de319fc3.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t17: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"dcb89e07b8aa1c5aa1af\",\"1\":\"5d86c82ca1c4865561fc\",\"2\":\"2301cb2ba25120b4f4e0\",\"3\":\"81f12bf192c94383d283\",\"4\":\"2a1ed845f5ffb998c7bc\",\"5\":\"bbb87395fdecb0367966\",\"6\":\"816c6ddbaa833e674912\",\"7\":\"fb406419a6de3d076357\",\"8\":\"1f3811db85fd88b6360f\",\"9\":\"5d4a39c9e1a784ee9683\",\"10\":\"01437b5d24dc0988f3d5\",\"11\":\"e25cf9ab8ad2ef236662\",\"12\":\"ab60c4b0944ef819faa3\",\"13\":\"48e5ec8966f3dc4513b2\",\"14\":\"a87e2de1d70a4657abd8\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 6b64d546ea056ba76444"],"sourceRoot":""}
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=o(o.s=a[u]);return i};var r={},t={17:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"41d7248381194d98cf91",1:"5d86c82ca1c4865561fc",2:"2301cb2ba25120b4f4e0",3:"81f12bf192c94383d283",4:"2a1ed845f5ffb998c7bc",5:"bbb87395fdecb0367966",6:"816c6ddbaa833e674912",7:"fb406419a6de3d076357",8:"a7bd058bed7ca67d0588",9:"5d4a39c9e1a784ee9683",10:"01437b5d24dc0988f3d5",11:"e25cf9ab8ad2ef236662",12:"ab60c4b0944ef819faa3",13:"48e5ec8966f3dc4513b2",14:"a87e2de1d70a4657abd8"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.d6d6ec83043087b53fff.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 54b401124685f43e09a1"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","17","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,GAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,uBAAAC,GAAA,wBAA0ZrD,GAAA,MACle,IAAAkC,EAAAoB,WAAAC,EAAA,MAEA,SAAAA,IAEA1B,EAAA2B,QAAA3B,EAAA4B,OAAA,KACAC,aAAAxB,GACA,IAAAyB,EAAAtD,EAAAL,GACA,IAAA2D,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAA5D,EAAA,aAEAK,EAAAL,QAAA6D,GAKA,OAfAhC,EAAA2B,QAAA3B,EAAA4B,OAAAF,EAaA7B,EAAAoC,YAAAjC,GAEAL,GAIAX,EAAAkD,EAAApD,EAGAE,EAAAmD,EAAAjD,EAGAF,EAAAoD,EAAA,SAAAhD,EAAAiD,EAAAC,GACAtD,EAAAuD,EAAAnD,EAAAiD,IACA3D,OAAA8D,eAAApD,EAAAiD,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMAtD,EAAA4D,EAAA,SAAAvD,GACA,IAAAiD,EAAAjD,KAAAwD,WACA,WAA2B,OAAAxD,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAoD,EAAAE,EAAA,IAAAA,GACAA,GAIAtD,EAAAuD,EAAA,SAAAO,EAAAC,GAAsD,OAAArE,OAAAC,UAAAC,eAAAC,KAAAiE,EAAAC,IAGtD/D,EAAAyB,EAAA,IAGAzB,EAAAgE,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.d6d6ec83043087b53fff.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t17: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"41d7248381194d98cf91\",\"1\":\"5d86c82ca1c4865561fc\",\"2\":\"2301cb2ba25120b4f4e0\",\"3\":\"81f12bf192c94383d283\",\"4\":\"2a1ed845f5ffb998c7bc\",\"5\":\"bbb87395fdecb0367966\",\"6\":\"816c6ddbaa833e674912\",\"7\":\"fb406419a6de3d076357\",\"8\":\"a7bd058bed7ca67d0588\",\"9\":\"5d4a39c9e1a784ee9683\",\"10\":\"01437b5d24dc0988f3d5\",\"11\":\"e25cf9ab8ad2ef236662\",\"12\":\"ab60c4b0944ef819faa3\",\"13\":\"48e5ec8966f3dc4513b2\",\"14\":\"a87e2de1d70a4657abd8\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 54b401124685f43e09a1"],"sourceRoot":""}
\ No newline at end of file
...@@ -10,14 +10,13 @@ ...@@ -10,14 +10,13 @@
export default { export default {
name: 'App', name: 'App',
mounted(){ mounted(){
}, },
} }
</script> </script>
<style> <style>
#app { #app {
height: 100%;
font-family: "Helvetica Neue", font-family: "Helvetica Neue",
Helvetica, Helvetica,
"PingFang SC", "PingFang SC",
...@@ -28,7 +27,9 @@ export default { ...@@ -28,7 +27,9 @@ export default {
sans-serif; sans-serif;
} }
html,body,#app{ html,body,#app{
height: 100%; width: 100%;
height: 100%; position: fixed;top:0;left:0;
overflow: auto;
} }
*{ *{
margin: auto; margin: auto;
......
src/assets/newLesson/luoLacoming.png

4.14 KB | W: | H:

src/assets/newLesson/luoLacoming.png

61.4 KB | W: | H:

src/assets/newLesson/luoLacoming.png
src/assets/newLesson/luoLacoming.png
src/assets/newLesson/luoLacoming.png
src/assets/newLesson/luoLacoming.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="input-block"> <div class="input-block">
<div class="tips">Picture Verification</div> <div class="tips">Picture Verification</div>
<input placeholder="请输入图片验证码" v-model="imgCode"/> <input placeholder="请输入图片验证码" v-model="imgCode"/>
<img src="/api/public/img/verify" class="right-btn" ref="imgCode" @click="$refs.imgCode.src='/api/public/img/verify?flag='+Math.random()"/> <img src="/api/public/img/verify" class="right-btn" ref="imgCode" @click="refImgCode"/>
</div> </div>
<div class="input-block"> <div class="input-block">
<div class="tips">Verification Code</div> <div class="tips">Verification Code</div>
...@@ -95,6 +95,9 @@ ...@@ -95,6 +95,9 @@
} }
}, },
methods:{ methods:{
refImgCode(){
this.$refs.imgCode.src='/api/public/img/verify?flag='+Math.random()
},
sendMobileCode(){ sendMobileCode(){
if(this.imgCode===''||!this.imgCode){ if(this.imgCode===''||!this.imgCode){
Toast('请填写图形验证码'); Toast('请填写图形验证码');
...@@ -118,8 +121,11 @@ ...@@ -118,8 +121,11 @@
Toast('验证码已发送'); Toast('验证码已发送');
}else{ }else{
this.time = 0; this.time = 0;
this.refImgCode();
Toast(res); Toast(res);
} }
}).catch(res=>{
this.refImgCode();
}) })
}, },
timeO(){ timeO(){
...@@ -147,6 +153,8 @@ ...@@ -147,6 +153,8 @@
} }
bindMobileApi(json).then(res=>{ bindMobileApi(json).then(res=>{
this.$router.push({name:'index'}) this.$router.push({name:'index'})
}).catch(res=>{
this.refImgCode();
}) })
} }
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
<div class="card-block" v-for="(data,index) in lessonList"> <div class="card-block" v-for="(data,index) in lessonList">
<img :src="data[0].cover+'?imageslim'"/> <img :src="data[0].cover+'?imageslim'"/>
<div class="card-li" v-for="(item,x) in data" @click="showDia(item,x+1)"> <div :class="'card-li cid'+item.id" v-for="(item,x) in data" @click="showDia(item,x+1)">
<div class="text-block"> <div class="text-block">
<div class="title"> <div class="title">
{{item.name | substr10}} {{item.name | substr10}}
...@@ -145,7 +145,6 @@ ...@@ -145,7 +145,6 @@
}, },
} }
}, },
mounted(){ mounted(){
this.initPage(); this.initPage();
}, },
...@@ -204,7 +203,7 @@ ...@@ -204,7 +203,7 @@
if(this.thisLesson.content.tips){ if(this.thisLesson.content.tips){
let query = { let query = {
periods_id:this.periods_id, periods_id:this.periods_id,
category_id:this.thisLesson.category_id, category_id:this.thisLesson.id,
elementId:this.thisLesson.id, elementId:this.thisLesson.id,
course_type:this.$route.query.course_type, course_type:this.$route.query.course_type,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
...@@ -238,8 +237,9 @@ ...@@ -238,8 +237,9 @@
getLessonDetailApi(this.periods_id,data.id,data.ele_id).then(res=>{ getLessonDetailApi(this.periods_id,data.id,data.ele_id).then(res=>{
res.content = JSON.parse(res.content); res.content = JSON.parse(res.content);
this.thisLesson = res; this.thisLesson = res;
this.thisLesson.id = data.id;
this.thisLesson.domTitle = data.name; this.thisLesson.domTitle = data.name;
this.thisLesson.day = i; this.thisLesson.day = i;
this.popupVisible=true; this.popupVisible=true;
Indicator.close(); Indicator.close();
}) })
...@@ -274,7 +274,6 @@ ...@@ -274,7 +274,6 @@
}else{ }else{
index = x index = x
} }
} }
}); });
this.swiper.slideTo(index, 300, false) this.swiper.slideTo(index, 300, false)
...@@ -284,6 +283,7 @@ ...@@ -284,6 +283,7 @@
getLessonList(){ getLessonList(){
this.lessonList=[]; this.lessonList=[];
getLessonListApi(this.periods_id+'/v2',{category_id:this.parent_category_id}).then(res=>{ getLessonListApi(this.periods_id+'/v2',{category_id:this.parent_category_id}).then(res=>{
this.lessonList=[];
if(res.list.length<1){ if(res.list.length<1){
this.noLesson = true this.noLesson = true
}else{ }else{
...@@ -303,17 +303,42 @@ ...@@ -303,17 +303,42 @@
} }
} }
this.$nextTick(()=>{ this.$nextTick(()=>{
let moneyDom = document.getElementsByClassName('money'); if(this.$route.query.category_id){
if(moneyDom.length>0){ let dom = document.getElementsByClassName('cid'+this.$route.query.category_id);
console.log(moneyDom) if(dom.length>0){
let top = moneyDom[0].offsetParent.offsetTop-200; this.scroll_to(dom[0].offsetTop);
for(let i = 0 ; i < 30 ; i ++){ let data = null ;
let time = i*10; let index = 0;
setTimeout(()=>{window.scrollTo(0,top/30*i)},time); this.lessonList.forEach(i=>{
i.forEach((x,i)=>{
if(x.id == this.$route.query.category_id){
data = x;
index = i+1
}
})
});
this.showDia(data,index)
}
}else if(this.$route.query.back_id){
let dom = document.getElementsByClassName('cid'+this.$route.query.back_id);
if(dom.length>0){
this.scroll_to(dom[0].offsetTop)
}
}else{
let moneyDom = document.getElementsByClassName('money');
if(moneyDom.length>0){
this.scroll_to(moneyDom[0].offsetParent.offsetTop)
} }
} }
}) })
}); });
},
scroll_to(offsetTop){
let top = offsetTop-250;
for(let i = 0 ; i < 30 ; i ++){
let time = i*10;
setTimeout(()=>{document.getElementById('app').scrollTop = top/30*i},time);
}
} }
} }
} }
...@@ -347,6 +372,12 @@ ...@@ -347,6 +372,12 @@
} }
.unit-block{ .unit-block{
box-shadow:0*@toVw 1*@toVw 4*@toVw 0*@toVw rgba(204,204,204,0.5); box-shadow:0*@toVw 1*@toVw 4*@toVw 0*@toVw rgba(204,204,204,0.5);
width: 100%;
position: fixed;
background: white;
z-index: 2;
top: 0;
left: 0;
.unit-li{ .unit-li{
width: 68 * @toVw; width: 68 * @toVw;
text-align: center; text-align: center;
...@@ -371,6 +402,7 @@ ...@@ -371,6 +402,7 @@
} }
// 课包样式 // 课包样式
.lesson-block{ .lesson-block{
padding-top: 80*@toVw;
padding-bottom: 60*@toVw; padding-bottom: 60*@toVw;
.card-block{ .card-block{
box-shadow:0* @toVw 2* @toVw 5* @toVw 1* @toVw rgba(153,153,153,0.56); box-shadow:0* @toVw 2* @toVw 5* @toVw 1* @toVw rgba(153,153,153,0.56);
......
...@@ -253,6 +253,9 @@ ...@@ -253,6 +253,9 @@
change:this.contentData.content.change change:this.contentData.content.change
} }
} }
this.playFlag = false;
this.startTime='00:00';
this.overTime='00:00'
} }
}, },
watch:{ watch:{
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
<i :class="{lessonHeader:true, defaultFun:nowShow !== 3,fun:nowShow===3}" @click="changeTitle(3)"></i> <i :class="{lessonHeader:true, defaultFun:nowShow !== 3,fun:nowShow===3}" @click="changeTitle(3)"></i>
<i class="lessonHeader home" @click="backList"></i> <i class="lessonHeader home" @click="backList"></i>
</div> </div>
<div class="header-h">
<i :class="{headerHP:true, defaultLook:nowShow !== 1,lookHP:nowShow===1}" @click="changeTitle(1)"></i>
<i :class="{headerHP:true, defaultPlay:nowShow !== 2,playHP:nowShow===2}" @click="changeTitle(2)"></i>
<i :class="{headerHP:true, defaultFun:nowShow !== 3,funHP:nowShow===3}" @click="changeTitle(3)"></i>
<i class="lessonHeader home" @click="backList"></i>
</div>
<img :src="backUrl" v-if="nowLesson.old" @click="backList" class="backImg"> <img :src="backUrl" v-if="nowLesson.old" @click="backList" class="backImg">
<div class="header-h"> <div class="header-h">
<div class="header-list active"> <div class="header-list active">
...@@ -23,7 +29,7 @@ ...@@ -23,7 +29,7 @@
</div> </div>
<div class="index-content-block"> <div class="index-content-block">
<look-block v-if="nowLesson.type === 'text'" :contentData="nowLesson"/> <look-block v-if="nowLesson.type === 'text'" :contentData="nowLesson"/>
<video-block v-if="nowLesson.type === 'video'" :contentData="nowLesson"/> <video-block v-if="nowLesson.type === 'video'" :contentData="nowLesson" :nowShow="nowShow"/>
<audio-block v-if="nowLesson.type === 'audio'" :contentData="nowLesson"/> <audio-block v-if="nowLesson.type === 'audio'" :contentData="nowLesson"/>
</div> </div>
</div> </div>
...@@ -67,6 +73,7 @@ ...@@ -67,6 +73,7 @@
periods_id:this.$route.query.periods_id, periods_id:this.$route.query.periods_id,
course_type:this.$route.query.course_type, course_type:this.$route.query.course_type,
parent_category_id:this.$route.query.parent_category_id, parent_category_id:this.$route.query.parent_category_id,
back_id:this.category_id
}; };
this.$router.push({name:'map',query:query}) this.$router.push({name:'map',query:query})
}, },
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
.old-content h3{ .old-content h3{
font-family: hanti font-family: hanti
} }
.preview img,.preview audio,.preview video{ .look-content .preview img,.look-content .preview audio,.look-content .preview video{
max-width: 100%; max-width: 100%;
} }
.audio-box { .audio-box {
...@@ -72,12 +72,6 @@ ...@@ -72,12 +72,6 @@
border: 1px solid #F1F1F1; border: 1px solid #F1F1F1;
box-shadow: 0 0 10px 0 rgba(151,160,184,0.20); box-shadow: 0 0 10px 0 rgba(151,160,184,0.20);
} }
html,body{
height:100%;
width:100%;
padding:0;
margin:0;
}
#preview{ #preview{
margin-left: auto; margin-left: auto;
margin-right:auto; margin-right:auto;
...@@ -90,7 +84,7 @@ ...@@ -90,7 +84,7 @@
margin-top: 20px; margin-top: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
img,video{ .look-content img,video{
max-width: 100%; max-width: 100%;
} }
@font-face{font-family:hanti;src:url(https://cdn.singsingenglish.com/template/SentyZHAO.ttf)} @font-face{font-family:hanti;src:url(https://cdn.singsingenglish.com/template/SentyZHAO.ttf)}
...@@ -100,8 +94,7 @@ ...@@ -100,8 +94,7 @@
} }
}*/ }*/
#preview *{font-family:sans-serif;font-size:16px;} #preview *{font-family:sans-serif;font-size:16px;}
.content img{ .look-content .content img{
margin-top: 50px;
max-width: 100% !important; max-width: 100% !important;
} }
</style> </style>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="video-page"> <div class="video-page">
<div class="content"> <div class="content">
<div class="header"> <div class="header">
<img :src="imgURL.headerLuolaUrl" class="people"> <img :src="imgURL.luolacoming" class="text" v-if="nowShow === 2">
<img :src="imgURL.luolacoming" class="text"> <img :src="imgURL.luolalaila" class="text" v-if="nowShow === 3">
</div> </div>
<div class="video-block" v-for="data in showObj.video"> <div class="video-block" v-for="data in showObj.video">
<video :src="data.url" controls :poster="data.url+'?vframe/jpg/offset/3'"></video> <video :src="data.url" controls :poster="data.url+'?vframe/jpg/offset/3'"></video>
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
</template> </template>
<script> <script>
import headerLuolaUrl from '../../assets/newLesson/playLuola.png'
import luolacoming from '../../assets/newLesson/luoLacoming.png' import luolacoming from '../../assets/newLesson/luoLacoming.png'
import luolalaila from '../../assets/newLesson/luolalaila.png'
import guideBlock from '../guide/video' import guideBlock from '../guide/video'
export default { export default {
name: "play", name: "play",
...@@ -45,13 +45,13 @@ ...@@ -45,13 +45,13 @@
change:false change:false
}, },
imgURL:{ imgURL:{
headerLuolaUrl:headerLuolaUrl, luolacoming:luolacoming,
luolacoming:luolacoming luolalaila:luolalaila
} }
} }
}, },
props:[ props:[
'contentData' 'contentData','nowShow'
], ],
mounted(){ mounted(){
this.changeAge(this.contentData.age) this.changeAge(this.contentData.age)
...@@ -106,13 +106,8 @@ ...@@ -106,13 +106,8 @@
padding: 10*@toVw; padding: 10*@toVw;
.header{ .header{
padding-top: 8*@toVw; padding-top: 8*@toVw;
.people{
width: 70*@toVw;
margin-left: 18*@toVw;
margin-right: 42*@toVw;
}
.text{ .text{
height:37*@toVw ; width:100% ;
} }
} }
.video-block{ .video-block{
......
...@@ -166,6 +166,7 @@ export function fetch(url,params={}){ ...@@ -166,6 +166,7 @@ export function fetch(url,params={}){
if(response.data.code === 200){ if(response.data.code === 200){
resolve(response.data.data); resolve(response.data.data);
}else if(response.data.code === 501){ }else if(response.data.code === 501){
reject(response.data);
router.push({ router.push({
name:'author',//从哪个页面跳转 name:'author',//从哪个页面跳转
query:{ query:{
...@@ -174,7 +175,9 @@ export function fetch(url,params={}){ ...@@ -174,7 +175,9 @@ export function fetch(url,params={}){
} }
}) })
}else if(response.data.code === 503){ }else if(response.data.code === 503){
reject(response.data);
}else{ }else{
reject(response.data);
Toast(response.data.msg) Toast(response.data.msg)
} }
}) })
...@@ -215,6 +218,7 @@ export function post(url,data = {}){ ...@@ -215,6 +218,7 @@ export function post(url,data = {}){
if(response.data.code === 200){ if(response.data.code === 200){
resolve(response.data.data); resolve(response.data.data);
}else if(response.data.code === 501){ }else if(response.data.code === 501){
reject(response.data);
router.push({ router.push({
name:'author',//从哪个页面跳转 name:'author',//从哪个页面跳转
query:{ query:{
...@@ -223,7 +227,9 @@ export function post(url,data = {}){ ...@@ -223,7 +227,9 @@ export function post(url,data = {}){
} }
}) })
}else if(response.data.code === 503){ }else if(response.data.code === 503){
reject(response.data);
}else{ }else{
reject(response.data);
Toast(response.data.msg) Toast(response.data.msg)
} }
},err => { },err => {
...@@ -249,6 +255,7 @@ export function patch(url,data = {}){ ...@@ -249,6 +255,7 @@ export function patch(url,data = {}){
if(response.data.code === 200){ if(response.data.code === 200){
resolve(response.data.data); resolve(response.data.data);
}else if(response.data.code === 501){ }else if(response.data.code === 501){
reject(response.data);
router.push({ router.push({
name:'author',//从哪个页面跳转 name:'author',//从哪个页面跳转
query:{ query:{
...@@ -257,7 +264,9 @@ export function patch(url,data = {}){ ...@@ -257,7 +264,9 @@ export function patch(url,data = {}){
} }
}) })
}else if(response.data.code === 503){ }else if(response.data.code === 503){
reject(response.data);
}else{ }else{
reject(response.data);
Toast(response.data.msg) Toast(response.data.msg)
} }
},err => { },err => {
...@@ -283,6 +292,7 @@ export function put(url,data = {}){ ...@@ -283,6 +292,7 @@ export function put(url,data = {}){
if(response.data.code === 200){ if(response.data.code === 200){
resolve(response.data.data); resolve(response.data.data);
}else if(response.data.code === 501){ }else if(response.data.code === 501){
reject(response.data);
router.push({ router.push({
name:'author',//从哪个页面跳转 name:'author',//从哪个页面跳转
query:{ query:{
...@@ -291,7 +301,9 @@ export function put(url,data = {}){ ...@@ -291,7 +301,9 @@ export function put(url,data = {}){
} }
}) })
}else if(response.data.code === 503){ }else if(response.data.code === 503){
reject(response.data);
}else{ }else{
reject(response.data);
Toast(response.data.msg) Toast(response.data.msg)
} }
},err => { },err => {
...@@ -310,6 +322,7 @@ export function del(url,data = {}){ ...@@ -310,6 +322,7 @@ export function del(url,data = {}){
if(response.data.code === 200){ if(response.data.code === 200){
resolve(response.data.data); resolve(response.data.data);
}else if(response.data.code === 501){ }else if(response.data.code === 501){
reject(response.data);
router.push({ router.push({
name:'author',//从哪个页面跳转 name:'author',//从哪个页面跳转
query:{ query:{
...@@ -318,7 +331,9 @@ export function del(url,data = {}){ ...@@ -318,7 +331,9 @@ export function del(url,data = {}){
} }
}) })
}else if(response.data.code === 503){ }else if(response.data.code === 503){
reject(response.data);
}else{ }else{
reject(response.data);
Toast(response.data.msg) Toast(response.data.msg)
} }
},err => { },err => {
......
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