Commit 5cb8b04f authored by wangwei's avatar wangwei

团购 添加手机号

     判断如果购买过了以后跳转成功页
课包 返回列表修改
     自动播放优化处理
     单词卡自适应
     视频按钮修改 添加文字
系统 切换按钮颜色修改
parent 38111484
...@@ -8,6 +8,6 @@ module.exports = merge(prodEnv, { ...@@ -8,6 +8,6 @@ module.exports = merge(prodEnv, {
MAX_FILESIZE:'1024*1024*10', MAX_FILESIZE:'1024*1024*10',
IMAGE_URL_HEAD:'"http://cdn.singsingenglish.com/"', IMAGE_URL_HEAD:'"http://cdn.singsingenglish.com/"',
BUY_URL:'"http://wechat.test.singsingenglish.com/#/buyDetail?"', BUY_URL:'"http://wechat.test.singsingenglish.com/#/buyDetail?"',
AUTHOR_UEL:'"http://wechat-test.changchangenglish.com/api/client/login?redirect_url=http://192.168.31.217:8085/#"', AUTHOR_UEL:'"http://wechat-test.changchangenglish.com/api/client/login?redirect_url=http://10.1.21.181:8085/#"',
REDIRECT_URL:'"http://localhost:8085/"', REDIRECT_URL:'"http://localhost:8085/"',
}); });
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
} }
}, },
// Various Dev Server settings // Various Dev Server settings
host: '192.168.31.217', // can be overwritten by process.env.HOST host: '10.1.21.181', // can be overwritten by process.env.HOST
port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false, autoOpenBrowser: false,
errorOverlay: true, errorOverlay: true,
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><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.1cd1eb38ba05d6a0f16d.js></script><script type=text/javascript src=/static/js/vendor.5ef5caa2a3de36ad6489.js></script><script type=text/javascript src=/static/js/app.e593e703476af4953ef6.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><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.908281acfb9b85f6ac06.js></script><script type=text/javascript src=/static/js/vendor.5ef5caa2a3de36ad6489.js></script><script type=text/javascript src=/static/js/app.e593e703476af4953ef6.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 diff is collapsed.
This diff is collapsed.
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 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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var f,d,i,u=0,s=[];u<r.length;u++)d=r[u],t[d]&&s.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);s.length;)s.shift()();if(a)for(u=0;u<a.length;u++)i=c(c.s=a[u]);return i};var r={},t={15:0};function c(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,c),t.l=!0,t.exports}c.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,c){n=t[e]=[r,c]});n[2]=r;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"67495e4c38cd60c6cb82",1:"03c3ade48ea5597d3d9c",2:"8bcdc92360b5dc72f3aa",3:"cc6ada8c3d106465261c",4:"ac1316fedeb8b0295dfb",5:"a819986f2868bc38ce36",6:"a6d04b6df10b41189dcd",7:"b10b24bf3f8e5bdcfd35",8:"f237a578a62e285fc50d",9:"3cd59c835a435a5498cc",10:"1a24aa4f2f78dae810ba",11:"c19543a1bdcdaf7349f1",12:"dabab0508a2269534756"}[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,o.appendChild(a),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="/",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.908281acfb9b85f6ac06.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap 50c5361f4f7763fb1cfe"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","15","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","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,wBAAkWnD,GAAA,MAC1a,IAAAkC,EAAAkB,WAAAC,EAAA,MAEA,SAAAA,IAEAxB,EAAAyB,QAAAzB,EAAA0B,OAAA,KACAC,aAAAtB,GACA,IAAAuB,EAAApD,EAAAL,GACA,IAAAyD,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAA1D,EAAA,aAEAK,EAAAL,QAAA2D,GAKA,OAfA9B,EAAAyB,QAAAzB,EAAA0B,OAAAF,EAaA3B,EAAAkC,YAAA/B,GAEAL,GAIAX,EAAAgD,EAAAlD,EAGAE,EAAAiD,EAAA/C,EAGAF,EAAAkD,EAAA,SAAA9C,EAAA+C,EAAAC,GACApD,EAAAqD,EAAAjD,EAAA+C,IACAzD,OAAA4D,eAAAlD,EAAA+C,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMApD,EAAA0D,EAAA,SAAArD,GACA,IAAA+C,EAAA/C,KAAAsD,WACA,WAA2B,OAAAtD,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAkD,EAAAE,EAAA,IAAAA,GACAA,GAIApD,EAAAqD,EAAA,SAAAO,EAAAC,GAAsD,OAAAnE,OAAAC,UAAAC,eAAAC,KAAA+D,EAAAC,IAGtD7D,EAAAyB,EAAA,IAGAzB,EAAA8D,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.908281acfb9b85f6ac06.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\t15: 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\":\"67495e4c38cd60c6cb82\",\"1\":\"03c3ade48ea5597d3d9c\",\"2\":\"8bcdc92360b5dc72f3aa\",\"3\":\"cc6ada8c3d106465261c\",\"4\":\"ac1316fedeb8b0295dfb\",\"5\":\"a819986f2868bc38ce36\",\"6\":\"a6d04b6df10b41189dcd\",\"7\":\"b10b24bf3f8e5bdcfd35\",\"8\":\"f237a578a62e285fc50d\",\"9\":\"3cd59c835a435a5498cc\",\"10\":\"1a24aa4f2f78dae810ba\",\"11\":\"c19543a1bdcdaf7349f1\",\"12\":\"dabab0508a2269534756\"}[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 50c5361f4f7763fb1cfe"],"sourceRoot":""}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style></style><link href=/static/css/app.89c332ff91a5a90efb3f9cf5472dacc5.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>// var vConsole = new VConsole();</script><script type=text/javascript src=/static/js/manifest.e8e13b1071b5836f20da.js></script><script type=text/javascript src=/static/js/vendor.a672980c09f89a39402c.js></script><script type=text/javascript src=/static/js/app.63d9930b56ad5d1907b5.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=screen-orientation content=portrait><meta name=x5-orientation content=portrait><title>唱唱启蒙英语</title><link rel=stylesheet href=https://at.alicdn.com/t/font_822651_g9r2j7kybxu.css><style></style><link href=/static/css/app.4b6c30cea66d0204cea2f205765c4404.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>// var vConsole = new VConsole();</script><script type=text/javascript src=/static/js/manifest.f17737e888b64fe72fea.js></script><script type=text/javascript src=/static/js/vendor.a672980c09f89a39402c.js></script><script type=text/javascript src=/static/js/app.63d9930b56ad5d1907b5.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 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 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.
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 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 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 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.
webpackJsonp([8],{LM1A:function(s,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i("Jmy5"),o=i("CCn6"),n=i("2oJL"),a=i("Au9i"),c={data:function(){return{periods_id:this.$route.query.periods_id,teacherQ2:!1,parent_category_id:Number(this.$route.query.parent_category_id),imgUrl:e.c,imgUrl2:e.a,lessonList:[],courseList:[],lesson:{},thisLessonBox:!1,total:0,teacherDetail:null,showChoose:!1,showLesson:!1,shuoming:!1,thisLesson:null}},computed:{titleName:function(){var s=this,t=this.courseList.find(function(t){return t.id===Number(s.parent_category_id)});return this.lesson=t,t},indexOfLesson:function(){var s=this;return this.courseList.findIndex(function(t){return t.id===Number(s.parent_category_id)})}},components:{bottomTab:n.a},mounted:function(){this.initPage()},methods:{starNum:function(s,t){var i=!1;return s.ele_list.forEach(function(s){s.watch_list.find(function(s){return s.page_id===t})&&(i=!0)}),i},chooseAge:function(s){var t=this.thisLessonBox.ele_list.find(function(t){return t.max_age===s});console.log(t),t?this.thisLesson=t:Object(a.MessageBox)("错误","暂无课程")},subLesson:function(){this.$router.push({name:"map",query:{periods_id:this.periods_id,parent_category_id:this.lesson.id}}),this.parent_category_id=this.lesson.id,this.showChoose=!1,this.initPage()},onValuesChange:function(s,t){this.lesson=t[0]},initPage:function(){var s=this;0===this.$route.query.course_type&&Object(o.b)(this.periods_id).then(function(t){s.courseList=t}),this.parent_category_id&&Object(o.f)(this.periods_id,{category_id:this.parent_category_id}).then(function(t){s.lessonList=t.list,s.total=t.periods_info.watch_num,t.list&&t.list.length>0&&s.$nextTick(function(){document.getElementById("nowLesson").scrollIntoView({behavior:"smooth",start:"center"})})}),Object(o.k)().then(function(t){s.teacherDetail=t})},noLesson:function(){Object(a.Toast)("课程尚未开始")},showDia:function(s){this.thisLesson=s.ele_list[0],this.thisLessonBox=s,this.showLesson=!0},showCourseList:function(){this.showChoose=!0},goToLesson:function(s){var t={periods_id:this.thisLessonBox.periods_id,category_id:this.thisLessonBox.category_id,parent_category_id:this.parent_category_id,element_id:this.thisLesson.id,type:s};this.$router.push({name:"lesson",query:t})}}},r={render:function(){var s=this,t=s.$createElement,i=s._self._c||t;return i("div",[i("div",{staticClass:"map"},[5!==s.total?i("img",{staticClass:"background",attrs:{src:s.imgUrl.background}}):s._e(),s._v(" "),5===s.total?i("img",{staticClass:"background",attrs:{src:s.imgUrl.background5}}):s._e(),s._v(" "),i("img",{staticClass:"go",attrs:{src:s.imgUrl.go},on:{click:function(t){s.shuoming=!0}}}),s._v(" "),s.courseList.length>0?i("div",{staticClass:"title",on:{click:s.showCourseList}},[s._v("\n "+s._s(s.titleName.category_name)+"\n "),i("i",{staticClass:"iconfont icon-xiala"})]):s._e(),s._v(" "),s._l(s.lessonList,function(t,e){return i("div",{class:"island-block land"+(e+1),attrs:{id:e===s.lessonList.length-1?"nowLesson":""}},[i("div",{class:{today:e===s.lessonList.length-1},on:{click:function(i){s.showDia(t)}}},[e!==s.lessonList.length-1?i("img",{staticClass:"land",attrs:{src:s.imgUrl.isLandAct}}):s._e(),s._v(" "),e===s.lessonList.length-1?i("img",{staticClass:"land",attrs:{src:s.imgUrl.islandNow}}):s._e(),s._v(" "),i("img",{staticClass:"day",attrs:{src:s.imgUrl.day[e]}}),s._v(" "),i("div",{staticClass:"star-block"},[s.starNum(t,2)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,2)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e(),s._v(" "),s.starNum(t,3)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,3)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e(),s._v(" "),s.starNum(t,4)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,4)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e()])])])}),s._v(" "),s._l(s.total-s.lessonList.length,function(t){return i("div",{class:"island-block land"+(s.total-t+1),on:{click:function(t){s.noLesson()}}},[i("img",{staticClass:"land",attrs:{src:s.imgUrl.islandDefault}}),s._v(" "),i("img",{staticClass:"day",attrs:{src:s.imgUrl.day[s.total-t]}}),s._v(" "),i("div",{staticClass:"star-block"},[i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),i("img",{attrs:{src:s.imgUrl.starDefault}})])])})],2),s._v(" "),i("img",{staticClass:"box-img",attrs:{src:s.imgUrl.box},on:{click:function(t){s.teacherQ2=!0}}}),s._v(" "),i("bottom-tab"),s._v(" "),i("mt-popup",{model:{value:s.showLesson,callback:function(t){s.showLesson=t},expression:"showLesson"}},[i("div",{staticClass:"lesson-block"},[i("img",{staticClass:"lesson-bg",attrs:{src:s.imgUrl.lessonBg}}),s._v(" "),i("img",{staticClass:"close",attrs:{src:s.imgUrl.close},on:{click:function(t){s.showLesson=!1}}}),s._v(" "),s.thisLessonBox&&s.thisLessonBox.ele_list.length>1?i("div",{staticClass:"age-choose"},[i("span",{class:{active:3===s.thisLesson.max_age},on:{click:function(t){s.chooseAge(3)}}},[s._v("0-3岁")]),s._v(" "),i("span",{class:{active:6===s.thisLesson.max_age},on:{click:function(t){s.chooseAge(6)}}},[s._v("4-6岁")])]):s._e(),s._v(" "),s.thisLesson?i("div",{staticClass:"list-block"},[i("div",{staticClass:"img-block"},[i("img",{staticClass:"look list",attrs:{src:s.imgUrl.look},on:{click:function(t){s.goToLesson("1")}}})]),s._v(" "),s.thisLesson?i("div",{staticClass:"img-block"},[i("img",{staticClass:"play list",attrs:{src:s.imgUrl.play},on:{click:function(t){s.goToLesson("2")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 1===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])]):s._e(),s._v(" "),i("div",{staticClass:"img-block"},[i("img",{staticClass:"show list",attrs:{src:s.imgUrl.show},on:{click:function(t){s.goToLesson("3")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 2===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])]),s._v(" "),i("div",{staticClass:"img-block"},[i("img",{staticClass:"jiayou list",attrs:{src:s.imgUrl.jiayou},on:{click:function(t){s.goToLesson("4")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 4===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])])]):s._e()])]),s._v(" "),i("mt-popup",{model:{value:s.shuoming,callback:function(t){s.shuoming=t},expression:"shuoming"}},[i("div",{staticClass:"shuoming-block",style:{backgroundImage:"url("+s.imgUrl.smBg+")"}},[i("img",{staticClass:"close",attrs:{src:s.imgUrl.close},on:{click:function(t){s.shuoming=!1}}}),s._v(" "),i("div",{staticClass:"content"},[i("h1",[s._v("课程介绍:")]),s._v("\n 欢迎各位来到唱唱英语训练营,我们在每一天的课程中都准备了精彩的英语学习、唱动体验内容等着您哦,通过每日坚持学习与分享打卡收集星星,更可以在课程全部完成后用星星兑换神秘奖品哦!快来带着宝贝一起愉快的在玩耍中学习英语吧!\n "),i("h1",{staticClass:"se"},[s._v("规则介绍:")]),s._v("\n 1.地图中每一个浮动标志物(岛屿、树屋、房屋等)都对应着当天进行中的课程。\n "),i("br"),s._v("\n 2.地图中显示灰色的课程是因课程还未开放,请耐心等待,我们会根据课程进度依次开放。\n "),i("br"),s._v("\n 3.每一天的课程最多可以收集3颗星星。\n "),i("br"),s._v("\n 4.完成一天的课程(即爸妈看一看和宝贝玩一玩单元)就可获得一颗星星。\n "),i("br"),s._v("\n 5.填写每日宝贝成长秀并且提交后可获得一颗星星。\n "),i("br"),s._v("\n 6.完成填写后根据页面提示分享打卡海报可获得一颗星星。\n "),i("br"),s._v("\n 7.完成地图中所有课程内容并且集齐所有星星后,请联系您的私人老师兑换什么奖品哦!\n ")])])]),s._v(" "),i("mt-popup",{model:{value:s.showChoose,callback:function(t){s.showChoose=t},expression:"showChoose"}},[i("div",{staticClass:"choose-block"},[i("mt-picker",{attrs:{slots:[{values:s.courseList,defaultIndex:s.indexOfLesson}],"value-key":"category_name"},on:{change:s.onValuesChange}}),s._v(" "),i("mt-button",{attrs:{type:"primary",size:"large",plain:""},on:{click:s.subLesson}},[s._v("确定")])],1)]),s._v(" "),i("mt-popup",{model:{value:s.teacherQ2,callback:function(t){s.teacherQ2=t},expression:"teacherQ2"}},[i("div",{staticClass:"teacher-block"},[i("img",{staticClass:"teacher-bg",attrs:{src:s.imgUrl2.teacherBg}}),s._v(" "),s.teacherDetail?i("img",{staticClass:"qr",attrs:{src:s.teacherDetail.qr}}):s._e(),s._v(" "),i("div",{staticClass:"content-text"},[i("div",{staticClass:"title-text"},[s._v("\n 请长按识别图中二维码添加老师\n ")]),s._v("\n 并截图发送领取神秘礼品哦\n ")]),s._v(" "),i("div",{staticClass:"closeBtn",on:{click:function(t){s.teacherQ2=!1}}})])])],1)},staticRenderFns:[]};var l=i("VU/8")(c,r,!1,function(s){i("jSrU")},"data-v-bb21ff74",null);t.default=l.exports},jSrU:function(s,t){}});
//# sourceMappingURL=8.033ab3b80a61ceca8480.js.map
\ No newline at end of file
This diff is collapsed.
webpackJsonp([8],{"8OGF":function(s,t){},LM1A:function(s,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=i("Jmy5"),o=i("CCn6"),n=i("2oJL"),a=i("Au9i"),c={data:function(){return{periods_id:this.$route.query.periods_id,teacherQ2:!1,parent_category_id:Number(this.$route.query.parent_category_id),imgUrl:e.c,imgUrl2:e.a,lessonList:[],courseList:[],lesson:{},thisLessonBox:!1,total:0,teacherDetail:null,showChoose:!1,showLesson:!1,shuoming:!1,thisLesson:null}},computed:{titleName:function(){var s=this,t=this.courseList.find(function(t){return t.id===Number(s.parent_category_id)});return this.lesson=t,t},indexOfLesson:function(){var s=this;return this.courseList.findIndex(function(t){return t.id===Number(s.parent_category_id)})}},components:{bottomTab:n.a},mounted:function(){this.initPage()},methods:{starNum:function(s,t){var i=!1;return s.ele_list.forEach(function(s){s.watch_list.find(function(s){return s.page_id===t})&&(i=!0)}),i},chooseAge:function(s){var t=this.thisLessonBox.ele_list.find(function(t){return t.max_age===s});console.log(t),t?this.thisLesson=t:Object(a.MessageBox)("错误","暂无课程")},subLesson:function(){this.$router.push({name:"map",query:{periods_id:this.periods_id,parent_category_id:this.lesson.id}}),this.parent_category_id=this.lesson.id,this.showChoose=!1,this.initPage()},onValuesChange:function(s,t){this.lesson=t[0]},initPage:function(){var s=this;0===this.$route.query.course_type&&Object(o.b)(this.periods_id).then(function(t){s.courseList=t}),this.parent_category_id&&Object(o.f)(this.periods_id,{category_id:this.parent_category_id}).then(function(t){s.lessonList=t.list,s.total=t.periods_info.watch_num,t.list&&t.list.length>0&&s.$nextTick(function(){document.getElementById("nowLesson").scrollIntoView({behavior:"smooth",start:"center"})})}),Object(o.k)().then(function(t){s.teacherDetail=t})},noLesson:function(){Object(a.Toast)("课程尚未开始")},showDia:function(s){this.thisLesson=s.ele_list[0],this.thisLessonBox=s,this.showLesson=!0},showCourseList:function(){this.showChoose=!0},goToLesson:function(s){var t={periods_id:this.thisLessonBox.periods_id,category_id:this.thisLessonBox.category_id,parent_category_id:this.parent_category_id,element_id:this.thisLesson.id,course_type:this.$route.query.course_type,type:s};this.$router.push({name:"lesson",query:t})}}},r={render:function(){var s=this,t=s.$createElement,i=s._self._c||t;return i("div",[i("div",{staticClass:"map"},[5!==s.total?i("img",{staticClass:"background",attrs:{src:s.imgUrl.background}}):s._e(),s._v(" "),5===s.total?i("img",{staticClass:"background",attrs:{src:s.imgUrl.background5}}):s._e(),s._v(" "),i("img",{staticClass:"go",attrs:{src:s.imgUrl.go},on:{click:function(t){s.shuoming=!0}}}),s._v(" "),s.courseList.length>0?i("div",{staticClass:"title",on:{click:s.showCourseList}},[s._v("\n "+s._s(s.titleName.category_name)+"\n "),i("i",{staticClass:"iconfont icon-xiala"})]):s._e(),s._v(" "),s._l(s.lessonList,function(t,e){return i("div",{class:"island-block land"+(e+1),attrs:{id:e===s.lessonList.length-1?"nowLesson":""}},[i("div",{class:{today:e===s.lessonList.length-1},on:{click:function(i){s.showDia(t)}}},[e!==s.lessonList.length-1?i("img",{staticClass:"land",attrs:{src:s.imgUrl.isLandAct}}):s._e(),s._v(" "),e===s.lessonList.length-1?i("img",{staticClass:"land",attrs:{src:s.imgUrl.islandNow}}):s._e(),s._v(" "),i("img",{staticClass:"day",attrs:{src:s.imgUrl.day[e]}}),s._v(" "),i("div",{staticClass:"star-block"},[s.starNum(t,2)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,2)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e(),s._v(" "),s.starNum(t,3)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,3)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e(),s._v(" "),s.starNum(t,4)?s._e():i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),s.starNum(t,4)?i("img",{attrs:{src:s.imgUrl.starSelect}}):s._e()])])])}),s._v(" "),s._l(s.total-s.lessonList.length,function(t){return i("div",{class:"island-block land"+(s.total-t+1),on:{click:function(t){s.noLesson()}}},[i("img",{staticClass:"land",attrs:{src:s.imgUrl.islandDefault}}),s._v(" "),i("img",{staticClass:"day",attrs:{src:s.imgUrl.day[s.total-t]}}),s._v(" "),i("div",{staticClass:"star-block"},[i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),i("img",{attrs:{src:s.imgUrl.starDefault}}),s._v(" "),i("img",{attrs:{src:s.imgUrl.starDefault}})])])})],2),s._v(" "),i("img",{staticClass:"box-img",attrs:{src:s.imgUrl.box},on:{click:function(t){s.teacherQ2=!0}}}),s._v(" "),i("bottom-tab"),s._v(" "),i("mt-popup",{model:{value:s.showLesson,callback:function(t){s.showLesson=t},expression:"showLesson"}},[i("div",{staticClass:"lesson-block"},[i("img",{staticClass:"lesson-bg",attrs:{src:s.imgUrl.lessonBg}}),s._v(" "),i("img",{staticClass:"close",attrs:{src:s.imgUrl.close},on:{click:function(t){s.showLesson=!1}}}),s._v(" "),s.thisLessonBox&&s.thisLessonBox.ele_list.length>1?i("div",{staticClass:"age-choose"},[i("span",{class:{active:3===s.thisLesson.max_age},on:{click:function(t){s.chooseAge(3)}}},[s._v("0-3岁")]),s._v(" "),i("span",{class:{active:6===s.thisLesson.max_age},on:{click:function(t){s.chooseAge(6)}}},[s._v("4-6岁")])]):s._e(),s._v(" "),s.thisLesson?i("div",{staticClass:"list-block"},[i("div",{staticClass:"img-block"},[i("img",{staticClass:"look list",attrs:{src:s.imgUrl.look},on:{click:function(t){s.goToLesson("1")}}})]),s._v(" "),s.thisLesson?i("div",{staticClass:"img-block"},[i("img",{staticClass:"play list",attrs:{src:s.imgUrl.play},on:{click:function(t){s.goToLesson("2")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 1===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])]):s._e(),s._v(" "),i("div",{staticClass:"img-block"},[i("img",{staticClass:"show list",attrs:{src:s.imgUrl.show},on:{click:function(t){s.goToLesson("3")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 2===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])]),s._v(" "),i("div",{staticClass:"img-block"},[i("img",{staticClass:"jiayou list",attrs:{src:s.imgUrl.jiayou},on:{click:function(t){s.goToLesson("4")}}}),s._v(" "),s.thisLesson.watch_list.find(function(s){return 4===s.page_id})?s._e():i("div",{staticClass:"disable-block"},[i("img",{attrs:{src:s.imgUrl.clock}})])])]):s._e()])]),s._v(" "),i("mt-popup",{model:{value:s.shuoming,callback:function(t){s.shuoming=t},expression:"shuoming"}},[i("div",{staticClass:"shuoming-block",style:{backgroundImage:"url("+s.imgUrl.smBg+")"}},[i("img",{staticClass:"close",attrs:{src:s.imgUrl.close},on:{click:function(t){s.shuoming=!1}}}),s._v(" "),i("div",{staticClass:"content"},[i("h1",[s._v("课程介绍:")]),s._v("\n 欢迎各位来到唱唱英语训练营,我们在每一天的课程中都准备了精彩的英语学习、唱动体验内容等着您哦,通过每日坚持学习与分享打卡收集星星,更可以在课程全部完成后用星星兑换神秘奖品哦!快来带着宝贝一起愉快的在玩耍中学习英语吧!\n "),i("h1",{staticClass:"se"},[s._v("规则介绍:")]),s._v("\n 1.地图中每一个浮动标志物(岛屿、树屋、房屋等)都对应着当天进行中的课程。\n "),i("br"),s._v("\n 2.地图中显示灰色的课程是因课程还未开放,请耐心等待,我们会根据课程进度依次开放。\n "),i("br"),s._v("\n 3.每一天的课程最多可以收集3颗星星。\n "),i("br"),s._v("\n 4.完成一天的课程(即爸妈看一看和宝贝玩一玩单元)就可获得一颗星星。\n "),i("br"),s._v("\n 5.填写每日宝贝成长秀并且提交后可获得一颗星星。\n "),i("br"),s._v("\n 6.完成填写后根据页面提示分享打卡海报可获得一颗星星。\n "),i("br"),s._v("\n 7.完成地图中所有课程内容并且集齐所有星星后,请联系您的私人老师兑换什么奖品哦!\n ")])])]),s._v(" "),i("mt-popup",{model:{value:s.showChoose,callback:function(t){s.showChoose=t},expression:"showChoose"}},[i("div",{staticClass:"choose-block"},[i("mt-picker",{attrs:{slots:[{values:s.courseList,defaultIndex:s.indexOfLesson}],"value-key":"category_name"},on:{change:s.onValuesChange}}),s._v(" "),i("mt-button",{attrs:{type:"primary",size:"large",plain:""},on:{click:s.subLesson}},[s._v("确定")])],1)]),s._v(" "),i("mt-popup",{model:{value:s.teacherQ2,callback:function(t){s.teacherQ2=t},expression:"teacherQ2"}},[i("div",{staticClass:"teacher-block"},[i("img",{staticClass:"teacher-bg",attrs:{src:s.imgUrl2.teacherBg}}),s._v(" "),s.teacherDetail?i("img",{staticClass:"qr",attrs:{src:s.teacherDetail.qr}}):s._e(),s._v(" "),i("div",{staticClass:"content-text"},[i("div",{staticClass:"title-text"},[s._v("\n 请长按识别图中二维码添加老师\n ")]),s._v("\n 并截图发送领取神秘礼品哦\n ")]),s._v(" "),i("div",{staticClass:"closeBtn",on:{click:function(t){s.teacherQ2=!1}}})])])],1)},staticRenderFns:[]};var l=i("VU/8")(c,r,!1,function(s){i("8OGF")},"data-v-7f6f3879",null);t.default=l.exports}});
//# sourceMappingURL=8.2d67934897a6a778d8b8.js.map
\ No newline at end of file
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={15: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:"846deae681374cde67c3",1:"64796fb7d33ef90bb484",2:"da64ca5100e3d5ff2e33",3:"c0273f3801d1a19c7450",4:"0e83575f8ecaa679a633",5:"20f124024fbcd9b49e83",6:"5b923a4ba0d12400c26a",7:"b2b99766b97eb034e427",8:"033ab3b80a61ceca8480",9:"e694208c13290e6c00d6",10:"87dd397658ddab5ea021",11:"fc90061970f2bdb0221e",12:"dcd090ce15c17105bc1c"}[e]+".js";var f=setTimeout(i,12e4);function i(){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=i,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}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var d,i,u,f=0,b=[];f<r.length;f++)i=r[f],t[i]&&b.push(t[i][0]),t[i]=0;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(e[d]=c[d]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(f=0;f<a.length;f++)u=o(o.s=a[f]);return u};var r={},t={15: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:"0ddb521d82767ecb08b5",1:"bb865e5ab41b01518909",2:"20d2a62bc231874ed272",3:"c0273f3801d1a19c7450",4:"e6d56d101fc89d7ad827",5:"20f124024fbcd9b49e83",6:"97e69137bac963426f53",7:"b2b99766b97eb034e427",8:"2d67934897a6a778d8b8",9:"e694208c13290e6c00d6",10:"87dd397658ddab5ea021",11:"fc90061970f2bdb0221e",12:"dcd090ce15c17105bc1c"}[e]+".js";var d=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(d);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,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.e8e13b1071b5836f20da.js.map //# sourceMappingURL=manifest.f17737e888b64fe72fea.js.map
\ No newline at end of file \ No newline at end of file
src/assets/mould/video/back.png

4.06 KB | W: | H:

src/assets/mould/video/back.png

4.91 KB | W: | H:

src/assets/mould/video/back.png
src/assets/mould/video/back.png
src/assets/mould/video/back.png
src/assets/mould/video/back.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/mould/video/next.png

4.04 KB | W: | H:

src/assets/mould/video/next.png

5.02 KB | W: | H:

src/assets/mould/video/next.png
src/assets/mould/video/next.png
src/assets/mould/video/next.png
src/assets/mould/video/next.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/mould/video/radio.png

5.51 KB | W: | H:

src/assets/mould/video/radio.png

8.3 KB | W: | H:

src/assets/mould/video/radio.png
src/assets/mould/video/radio.png
src/assets/mould/video/radio.png
src/assets/mould/video/radio.png
  • 2-up
  • Swipe
  • Onion skin
<template> <template>
<div class="group-buy"> <div class="group-buy">
<div v-if="groupDetail.is_real !== 1" class="phone-block">
<input placeholder="请输入手机号" class="phone-input" v-model="mobile"/>
</div>
<div class="address-block" v-if="groupDetail.is_real === 1"> <div class="address-block" v-if="groupDetail.is_real === 1">
<div class="add-address" v-if="!addressObj" @click="showAdd"> <div class="add-address" v-if="!addressObj" @click="showAdd">
+请输入收件人地址 +请输入收件人地址
...@@ -61,6 +64,7 @@ ...@@ -61,6 +64,7 @@
groupDetail:false, groupDetail:false,
popupVisible:true, popupVisible:true,
shopId:'', shopId:'',
mobile:'',
group_order_id:null, group_order_id:null,
addressObj:false, addressObj:false,
price:'', price:'',
...@@ -102,13 +106,21 @@ ...@@ -102,13 +106,21 @@
}) })
}, },
payOrder(){ payOrder(){
let json={
goods_id:Number(this.shopId)
};
if(this.groupDetail.is_real === 1 && !this.addressObj){ if(this.groupDetail.is_real === 1 && !this.addressObj){
Toast('请填写地址'); Toast('请填写地址');
return false return false
}else{
let mobileCheck = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;
if(this.mobile.match(mobileCheck)){
json.mobile = this.mobile
}else{
Toast('请正确填写手机号');
return false
}
} }
let json={
goods_id:Number(this.shopId)
};
if(this.groupDetail.goods_type === 2 && !this.type){ if(this.groupDetail.goods_type === 2 && !this.type){
json.buy_type = 2 json.buy_type = 2
} }
...@@ -121,7 +133,7 @@ ...@@ -121,7 +133,7 @@
this.jsApiParameters = res; this.jsApiParameters = res;
wx.miniProgram.getEnv(function(res) { wx.miniProgram.getEnv(function(res) {
if(res.miniprogram){ if(res.miniprogram){
let payParam = encodeURIComponent(JSON.stringify(json)) let payParam = encodeURIComponent(JSON.stringify(json));
window._hmt.push(['_trackEvent', 'document','miniPay','触发小程序购买']); window._hmt.push(['_trackEvent', 'document','miniPay','触发小程序购买']);
wx.miniProgram.navigateTo({url: `pages/wxPay/main?payParam=${payParam}`}) wx.miniProgram.navigateTo({url: `pages/wxPay/main?payParam=${payParam}`})
}else if (typeof WeixinJSBridge === 'undefined') { }else if (typeof WeixinJSBridge === 'undefined') {
...@@ -162,7 +174,9 @@ ...@@ -162,7 +174,9 @@
this.shopId = this.$route.query.shopId; this.shopId = this.$route.query.shopId;
this.group_order_id = this.$route.query.group_order_id; this.group_order_id = this.$route.query.group_order_id;
getStatusWechatApi({goods_id:this.shopId}).then(res=>{ getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}
}); });
getGoodsDetailApi(this.shopId).then(data=>{ getGoodsDetailApi(this.shopId).then(data=>{
data.desc = JSON.parse(data.desc); data.desc = JSON.parse(data.desc);
...@@ -182,6 +196,7 @@ ...@@ -182,6 +196,7 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@import "../../util/public";
.slide-fade-enter-active { .slide-fade-enter-active {
transition: all .5s ease; transition: all .5s ease;
} }
...@@ -193,6 +208,21 @@ ...@@ -193,6 +208,21 @@
transform: translateX(10px); transform: translateX(10px);
opacity: 0; opacity: 0;
} }
.phone-block{
padding: 10 * @toVw;
text-align: center;
background: #f8f8f8;
}
.phone-input{
width: 280 * @toVw;
height: 30*@toVw;
border-radius: 8 * @toVw;
outline: none;
padding:0 10 * @toVw;
border: 1px solid #e8e8e8;
text-align: center;
}
.group-buy{ .group-buy{
.address-block{ .address-block{
background: #f0f0f0; background: #f0f0f0;
......
...@@ -171,14 +171,14 @@ ...@@ -171,14 +171,14 @@
} }
this.groupDetail = res; this.groupDetail = res;
if(this.groupDetail.goods_type === 2){ if(this.groupDetail.goods_type === 2){
if(localStorage.getItem('cc_token')){
getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}
});
}
if(window.location.href.indexOf('groupId')>-1){ if(window.location.href.indexOf('groupId')>-1){
if(localStorage.getItem('cc_token')){
getStatusWechatApi({goods_id:this.shopId}).then(res=>{
if(res.out_trade_no){
this.$router.push({name:'success',query:{out_trade_no:res.out_trade_no}});
}
});
}
this.groupId = this.$route.query.groupId; this.groupId = this.$route.query.groupId;
getGroupDetailApi(this.groupId).then(res=>{ getGroupDetailApi(this.groupId).then(res=>{
this.groupData = res this.groupData = res
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
</style> </style>
<style scoped lang="less"> <style scoped lang="less">
.group-index{ .group-index{
overflow: auto; -webkit-overflow-scrolling:touch;
height: 100%; height: 100%;
padding-bottom: toVw(150); padding-bottom: toVw(150);
background: #f0f0f0; background: #f0f0f0;
......
...@@ -160,6 +160,7 @@ ...@@ -160,6 +160,7 @@
parent_category_id: data.periods_info.parent_category_id, parent_category_id: data.periods_info.parent_category_id,
course_type:data.goods_info.course_type course_type:data.goods_info.course_type
} }
}) })
}else{ }else{
Toast('该课程暂无期数') Toast('该课程暂无期数')
......
...@@ -107,7 +107,12 @@ ...@@ -107,7 +107,12 @@
subUserLessonApi(this.id, this.category_id, this.periods_id,json).then(()=>{}) subUserLessonApi(this.id, this.category_id, this.periods_id,json).then(()=>{})
}, },
backToList(){ backToList(){
this.$router.go(-1) let json = {
periods_id:this.$route.periods_id,
parent_category_id:this.$route.parent_category_id,
course_type:this.$route.course_type
};
this.$router.push({name:'map',query:json})
}, },
// 切换页面 // 切换页面
goNext(data) { goNext(data) {
......
...@@ -227,6 +227,7 @@ ...@@ -227,6 +227,7 @@
category_id:this.thisLessonBox.category_id, category_id:this.thisLessonBox.category_id,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
element_id:this.thisLesson.id, element_id:this.thisLesson.id,
course_type:this.$route.query.course_type,
type:type type:type
}; };
this.$router.push({name:'lesson',query:query}) this.$router.push({name:'lesson',query:query})
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<div class="bottom-block"> <div class="bottom-block">
<img :src="imgUrl.bank" @click="backToList()"/> <img :src="imgUrl.bank" @click="goNext(-1)"/>
<img :src="imgUrl.go" v-if="nowLesson.content.nextIndex !== -1 && timeCheck === 0" @click="goNext(nowLesson.content.nextIndex,true)" /> <img :src="imgUrl.go" v-if="nowLesson.content.nextIndex !== -1 && timeCheck === 0" @click="goNext(nowLesson.content.nextIndex,true)" />
<div v-if="timeCheck > 0 " class="timeout-block"> <div v-if="timeCheck > 0 " class="timeout-block">
<img :src="imgUrl.timeOut" /> <img :src="imgUrl.timeOut" />
...@@ -85,12 +85,47 @@ ...@@ -85,12 +85,47 @@
this.$refs.lookAudio.pause(); this.$refs.lookAudio.pause();
this.lookAudioType = 2 this.lookAudioType = 2
}, },
autoPlayAudio(){
backToList(){ let that = this;
this.$router.go(-1) let voice = this.$refs.lookAudio;
document.addEventListener("WeixinJSBridgeReady",function(){
voice.play();
},false);
wx.ready(function () {
that.$nextTick(()=> {
wx.ready(function () {
that.$nextTick(()=>{
if (typeof WeixinJSBridge === "object" && typeof WeixinJSBridge.invoke === "function") {
voice.play();
console.log(1)
} else {
//監聽客户端抛出事件"WeixinJSBridgeReady"
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", function(){
voice.play();
console.log(2)
}, false);
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", function(){
voice.play();
console.log(3)
});
document.attachEvent("onWeixinJSBridgeReady", function(){
voice.play();
console.log(4)
});
}
}
wx.ready(()=>{
that.$refs.lookAudio.play();
console.log(123)
})
})
})
})
})
}, },
initPage(){ initPage(){
this.timeCheck = this.nowLesson.content.timeLang; this.timeCheck = this.nowLesson.content.timeLang;
this.timeS(); this.timeS();
getwechatParam({ getwechatParam({
...@@ -107,42 +142,8 @@ ...@@ -107,42 +142,8 @@
jsApiList: res.jsApiList jsApiList: res.jsApiList
}); });
let voice = this.$refs.lookAudio; let voice = this.$refs.lookAudio;
document.addEventListener("WeixinJSBridgeReady",function(){
voice.play(); this.autoPlayAudio()
},false);
wx.ready(function () {
that.$nextTick(()=> {
wx.ready(function () {
that.$nextTick(()=>{
if (typeof WeixinJSBridge === "object" && typeof WeixinJSBridge.invoke === "function") {
voice.play();
console.log(1)
} else {
//監聽客户端抛出事件"WeixinJSBridgeReady"
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", function(){
voice.play();
console.log(2)
}, false);
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", function(){
voice.play();
console.log(3)
});
document.attachEvent("onWeixinJSBridgeReady", function(){
voice.play();
console.log(4)
});
}
}
wx.ready(()=>{
that.$refs.lookAudio.play();
console.log(123)
})
})
})
})
})
}); });
}, },
goNext(i,next){ goNext(i,next){
...@@ -154,7 +155,12 @@ ...@@ -154,7 +155,12 @@
str = str.replace(/\r/g,"<br/>"); str = str.replace(/\r/g,"<br/>");
return str return str
}, },
} },
watch:{
'nowLesson'(){
this.autoPlayAudio
}
},
} }
</script> </script>
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<div class="bg-block"> <div class="bg-block">
<img :src="imgUrl.title" class="title" > <img :src="imgUrl.title" class="title" >
<audio v-if="nowLesson.content.radio.length" :src="nowLesson.content.radio[0].url" autoplay ref="jiayouAudio"></audio> <audio v-if="nowLesson.content.radio.length" :src="nowLesson.content.radio[0].url" autoplay ref="jiayouAudio"></audio>
<div class="content-img" :style="{backgroundImage:nowLesson.content.banner[0] ? `url(${nowLesson.content.banner[0].url})`:''}"> <div class="content-img">
<img :src="nowLesson.content.banner[0].url" v-if="nowLesson.content.banner[0]" class="bg">
<img :src="imgUrl.radio" class="radio-icon" @click="playJiayou()"> <img :src="imgUrl.radio" class="radio-icon" @click="playJiayou()">
</div> </div>
</div> </div>
...@@ -27,6 +28,9 @@ ...@@ -27,6 +28,9 @@
imgUrl:refueling1 imgUrl:refueling1
} }
}, },
mounted(){
this.autoPlayAudio()
},
methods:{ methods:{
goNext(i,next){ goNext(i,next){
this.$emit('goNext',{i:i,next:!!next}) this.$emit('goNext',{i:i,next:!!next})
...@@ -39,6 +43,43 @@ ...@@ -39,6 +43,43 @@
this.$refs.jiayouAudio.pause() this.$refs.jiayouAudio.pause()
} }
}, },
autoPlayAudio(){
let voice = this.$refs.jiayouAudio;
let that = this;
wx.ready(function () {
that.$nextTick(()=> {
wx.ready(function () {
that.$nextTick(()=>{
if (typeof WeixinJSBridge === "object" && typeof WeixinJSBridge.invoke === "function") {
voice.play();
} else {
//監聽客户端抛出事件"WeixinJSBridgeReady"
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", function(){
voice.play();
}, false);
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", function(){
voice.play();
});
document.attachEvent("onWeixinJSBridgeReady", function(){
voice.play();
});
}
}
wx.ready(()=>{
that.$refs.jiayouAudio.play()
})
})
})
})
})
}
},
watch:{
'nowLesson'(){
this.autoPlayAudio()
}
} }
} }
</script> </script>
...@@ -47,6 +88,7 @@ ...@@ -47,6 +88,7 @@
@import "../../util/public"; @import "../../util/public";
.refueling1{ .refueling1{
position: absolute; position: absolute;
overflow: auto;
top: 0; top: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
...@@ -55,21 +97,18 @@ ...@@ -55,21 +97,18 @@
height: 100%; height: 100%;
.bg-block{ .bg-block{
width: 325 * @toVw; width: 325 * @toVw;
height: 520 * @toVw;
background: white; background: white;
overflow: hidden;
border-radius: 8 * @toVw; border-radius: 8 * @toVw;
padding: 10 * @toVw; padding: 10 * @toVw;
position: relative; position: relative;
top: 10 * @toVw; margin-top: 10 * @toVw;
text-align: center; text-align: center;
} }
.title{ .title{
width: 280 * @toVw ; width: 280 * @toVw ;
} }
.bottom-block{ .bottom-block{
position: fixed; margin-top: 10 * @toVw;
bottom: 10 *@toVw;
width: 100%; width: 100%;
text-align: center; text-align: center;
img{ img{
...@@ -81,12 +120,13 @@ ...@@ -81,12 +120,13 @@
} }
.content-img{ .content-img{
position: relative; position: relative;
height: 832/ 2 * @toVw;
background: #333;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin: 20/ 2 * @toVw; margin: 20/ 2 * @toVw;
border-radius: 8/ 2 * @toVw; border-radius: 8/ 2 * @toVw;
.bg{
width: 100%;
}
.radio-icon{ .radio-icon{
position: absolute; position: absolute;
width: 40 * @toVw; width: 40 * @toVw;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="content-img" :style="{backgroundImage:nowLesson.content.banner[0] ? `url(${nowLesson.content.banner[0].url}`:''}"> <div class="content-img" :style="{backgroundImage:nowLesson.content.banner[0] ? `url(${nowLesson.content.banner[0].url}`:''}">
<img :src="imgUrl.refueling2.radio" class="radio-icon" @click="playJiayou()"> <img :src="imgUrl.refueling2.radio" class="radio-icon" @click="playJiayou()">
<img :src="imgUrl.refueling2.back" class="left-icon" @click="goNext(nowLesson.content.lastIndex)"/> <img :src="imgUrl.refueling2.back" class="left-icon" @click="goNext(nowLesson.content.lastIndex)"/>
<img :src="imgUrl.refueling2.next" class="right-icon" v-if="nowLesson.content.nextIndex !== -1" @click="goNext(nowLesson.content.nextIndex,true)"/> <img :src="imgUrl.refueling2.next" class="right-icon" @click="goNext(nowLesson.content.nextIndex,true)"/>
</div> </div>
</div> </div>
<div class="bottom-block"> <div class="bottom-block">
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
} }
} }
}, },
mounted(){
this.autoPlayAudio()
},
methods:{ methods:{
goNext(i,next){ goNext(i,next){
this.$emit('goNext',{i:i,next:!!next}) this.$emit('goNext',{i:i,next:!!next})
...@@ -42,9 +45,7 @@ ...@@ -42,9 +45,7 @@
this.$refs.jiayouAudio.pause() this.$refs.jiayouAudio.pause()
} }
}, },
}, autoPlayAudio(){
watch:{
'nowLesson'(){
let voice = this.$refs.jiayouAudio; let voice = this.$refs.jiayouAudio;
let that = this; let that = this;
wx.ready(function () { wx.ready(function () {
...@@ -76,6 +77,11 @@ ...@@ -76,6 +77,11 @@
}) })
}) })
} }
},
watch:{
'nowLesson'(){
this.autoPlayAudio()
}
} }
} }
</script> </script>
...@@ -108,7 +114,7 @@ ...@@ -108,7 +114,7 @@
border-radius: 8/2 * @toVw; border-radius: 8/2 * @toVw;
background-size: 100% 100%; background-size: 100% 100%;
.radio-icon{ .radio-icon{
width: 32 * @toVw; width: 40 * @toVw;
position: absolute; position: absolute;
bottom: 20/2 * @toVw; bottom: 20/2 * @toVw;
left: 20/2 * @toVw; left: 20/2 * @toVw;
......
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
<img :src="imgUrl.jiayoubao" @click="subLog(nowLesson.content.nextIndex)"/> <img :src="imgUrl.jiayoubao" @click="subLog(nowLesson.content.nextIndex)"/>
</div> </div>
</div> </div>
<div class="share" :style="{backgroundImage:`url(${imgUrl2.background})`}" v-if="showType"> <div class="share" :style="{backgroundImage:`url(${imgUrl2.background})`}" v-show="showType">
<img :src="imgUrl2.tips" class="tips"/> <img :src="imgUrl2.tips" class="tips"/>
<img :src="dataURL" class="contentImg" v-if="dataURL"> <img :src="dataURL" class="contentImg" v-if="dataURL">
<div class="text-tips">长按图片保存哦!</div> <div class="text-tips">长按图片保存哦!</div>
<div class="content test-block" :style="{backgroundImage:`url(${imgUrl2.list[num]})`}" v-if="!dataURL" ref="imageWrapper"> <div class="content test-block" :style="{backgroundImage:`url(${imgUrl2.list[num]})`}" v-if="!dataURL && user" ref="imageWrapper">
<img :src="user.avatar" class="head"> <img :src="user.avatar" class="head">
<div class="name">{{user.nickname}}</div> <div class="name">{{user.nickname}}</div>
<div class="day">{{watchLog.total_day}}</div> <div class="day">{{watchLog.total_day}}</div>
......
...@@ -70,15 +70,15 @@ ...@@ -70,15 +70,15 @@
position: absolute; position: absolute;
right: 10 * @toVw; right: 10 * @toVw;
top: 10 * @toVw; top: 10 * @toVw;
width: 40 * @toVw; width: 45 * @toVw;
} }
.btn{ .btn{
position: absolute; position: absolute;
width: 40 * @toVw; width: 45 * @toVw;
right: 10 * @toVw; right: 10 * @toVw;
bottom: 10 * @toVw; bottom: 10 * @toVw;
&.back{ &.back{
bottom:60 * @toVw bottom:70 * @toVw
} }
} }
.video-block{ .video-block{
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
font-family:PingFang-SC-Medium; font-family:PingFang-SC-Medium;
text-align: center; text-align: center;
font-weight:normal; font-weight:normal;
color:rgba(238,238,238,1); color:#ccc;
line-height:14px; line-height:14px;
z-index: 30; z-index: 30;
background: white; background: white;
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
border-right: 1px solid #eeeeee; border-right: 1px solid #eeeeee;
} }
.actived{ .actived{
color: #CBE3FF; color: #6EB1FF;
} }
} }
......
import Vue from 'vue'; import Vue from 'vue';
import {post,fetch,patch,put,del,upload} from './index' import {post,fetch,patch,put,del,upload,ret2} from './index'
const _baseUrl=process.env.API_URL; const _baseUrl=process.env.API_URL;
Vue.prototype.$post=post; Vue.prototype.$post=post;
Vue.prototype.$fetch=fetch; Vue.prototype.$fetch=fetch;
...@@ -7,6 +7,8 @@ Vue.prototype.$patch=patch; ...@@ -7,6 +7,8 @@ Vue.prototype.$patch=patch;
Vue.prototype.$put=put; Vue.prototype.$put=put;
Vue.prototype.$del=del; Vue.prototype.$del=del;
Vue.prototype.$upload = upload; Vue.prototype.$upload = upload;
Vue.prototype.$ret2 = ret2;
// 获取banner列表 // 获取banner列表
const getBannerListUrl = `${_baseUrl}api/client/banner/list`; const getBannerListUrl = `${_baseUrl}api/client/banner/list`;
export const getBannerListApi = function () { export const getBannerListApi = function () {
...@@ -109,3 +111,7 @@ const getStatusWechatUrl = `${_baseUrl}api/client/bill/wechat/status`; ...@@ -109,3 +111,7 @@ const getStatusWechatUrl = `${_baseUrl}api/client/bill/wechat/status`;
export const getStatusWechatApi = function (json) { export const getStatusWechatApi = function (json) {
return Vue.prototype.$fetch(getStatusWechatUrl,json) return Vue.prototype.$fetch(getStatusWechatUrl,json)
}; };
export const fetchApi = function (url) {
return Vue.prototype.$ret2(url)
}
...@@ -174,7 +174,20 @@ export function fetch(url,params={}){ ...@@ -174,7 +174,20 @@ export function fetch(url,params={}){
}) })
}) })
} }
export function ret2(url){
return new Promise((resolve,reject) => {
axios.get(url)
.then(response => {
resolve(response.data);
})
.catch(err => {
reject(err);
let message = '请求失败!请检查网络';
if(err.response)message=err.response.data.message;
Toast(message)
})
})
}
/** /**
* 封装post请求 * 封装post请求
......
...@@ -225,7 +225,7 @@ export const refueling2={ ...@@ -225,7 +225,7 @@ export const refueling2={
bg:refueling1_bg, bg:refueling1_bg,
title: refueling1_title, title: refueling1_title,
back:refueling2_back, back:refueling2_back,
radio:refueling2_radio, radio:refueling1_radio,
}; };
// 主页 // 主页
export const IndexImage={ export const IndexImage={
......
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