4.24

parent c12b8e16
......@@ -6,4 +6,4 @@
overflow: hidden;
position: fixed;
background: #f4f4f4;
}</style><link href=static/css/app.f016ba765d8b5ed4f51f80904de686cd.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 type=text/javascript src=static/js/manifest.84e842ac9dd93d81cfd8.js></script><script type=text/javascript src=static/js/vendor.17e5a2aa52ade559a92c.js></script><script type=text/javascript src=static/js/app.489b6fc96dcec28933c7.js></script></body></html>
\ No newline at end of file
}</style><link href=static/css/app.f016ba765d8b5ed4f51f80904de686cd.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 type=text/javascript src=static/js/manifest.9a7ecb9873d67751c530.js></script><script type=text/javascript src=static/js/vendor.17e5a2aa52ade559a92c.js></script><script type=text/javascript src=static/js/app.489b6fc96dcec28933c7.js></script></body></html>
\ 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 diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,b){for(var f,o,d,i=0,u=[];i<c.length;i++)o=c[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(a&&a(c,t,b);u.length;)u.shift()();if(b)for(i=0;i<b.length;i++)d=r(r.s=b[i]);return d};var c={},n={35:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript",b.charset="utf-8",b.async=!0,b.timeout=12e4,r.nc&&b.setAttribute("nonce",r.nc),b.src=r.p+"static/js/"+e+"."+{0:"2df2feb345d639bbe415",1:"5957001eea30fb7dfb71",2:"16245f5bcb88b5b640bf",3:"cb0e919d300a9a3004be",4:"40ccdf99fbcc9c94ba7d",5:"35c21a9a684a2d8d4534",6:"6f35c92041883e5c1bfe",7:"1444bb19139da4653bc3",8:"171ad2d0bb154c78ab7f",9:"1c9fa255f310bb8b4e6a",10:"7ee33d51aede03d926f0",11:"ce77bd250e489483340e",12:"5bb1519d95fb708106bb",13:"43f421c3eb64a990eab2",14:"e918345baacdc3d391bf",15:"e89ab9ff03d59f4e5f9f",16:"26a9709871520a9ec7b7",17:"03884613461070c0d522",18:"c64d73a608befb9174d1",19:"19c2c1ab5f332872664e",20:"4d03512be3a553567e4a",21:"b644a689bc2d4448de66",22:"745c1006843f340293d6",23:"86d0c93bb0fbf0ba3de4",24:"afb3e5a1f610d054d5c9",25:"e812e07cad278df1a1b8",26:"b4406470b13f68492997",27:"583040ea68d3ff135d64",28:"8cc4eeaaf96c01468092",29:"ad4b46fab1994ed7162c",30:"9c8059c86b001e208880",31:"ba8fdeff65da8bae41c1",32:"1a9d2b3e922c1bb2c4a9"}[e]+".js";var f=setTimeout(o,12e4);function o(){b.onerror=b.onload=null,clearTimeout(f);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return b.onerror=b.onload=o,t.appendChild(b),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,b){for(var f,o,d,i=0,u=[];i<c.length;i++)o=c[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(a&&a(c,t,b);u.length;)u.shift()();if(b)for(i=0;i<b.length;i++)d=r(r.s=b[i]);return d};var c={},n={35:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript",b.charset="utf-8",b.async=!0,b.timeout=12e4,r.nc&&b.setAttribute("nonce",r.nc),b.src=r.p+"static/js/"+e+"."+{0:"c64ebb84a20389d05ca9",1:"5957001eea30fb7dfb71",2:"16245f5bcb88b5b640bf",3:"cb0e919d300a9a3004be",4:"40ccdf99fbcc9c94ba7d",5:"35c21a9a684a2d8d4534",6:"2f3ea682e1b5db82e08d",7:"078dcc048e072f594d95",8:"171ad2d0bb154c78ab7f",9:"1c9fa255f310bb8b4e6a",10:"7ee33d51aede03d926f0",11:"ce77bd250e489483340e",12:"5bb1519d95fb708106bb",13:"43f421c3eb64a990eab2",14:"e918345baacdc3d391bf",15:"e89ab9ff03d59f4e5f9f",16:"26a9709871520a9ec7b7",17:"03884613461070c0d522",18:"c64d73a608befb9174d1",19:"19c2c1ab5f332872664e",20:"4d03512be3a553567e4a",21:"b644a689bc2d4448de66",22:"745c1006843f340293d6",23:"86d0c93bb0fbf0ba3de4",24:"afb3e5a1f610d054d5c9",25:"e812e07cad278df1a1b8",26:"b4406470b13f68492997",27:"583040ea68d3ff135d64",28:"8cc4eeaaf96c01468092",29:"ad4b46fab1994ed7162c",30:"9c8059c86b001e208880",31:"ba8fdeff65da8bae41c1",32:"1a9d2b3e922c1bb2c4a9"}[e]+".js";var f=setTimeout(o,12e4);function o(){b.onerror=b.onload=null,clearTimeout(f);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return b.onerror=b.onload=o,t.appendChild(b),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="",r.oe=function(e){throw console.error(e),e}}([]);
\ 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>*{
-webkit-overflow-scrolling:touch;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.84bb2b9715be7f2e1f33efd66c672883.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></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.d16975301eb4647c1936.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.47e0ad0c3f0de448dc49.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.2837127b18871188f310.js></script></body></html>
\ No newline at end of file
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.05bc8ba13eecc737eaeacb682bab9d28.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></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/manifest.61a3a53592394b585cee.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.47e0ad0c3f0de448dc49.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.8d4f18b24c657ca33744.js></script></body></html>
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(a,f,r){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],c[d]&&u.push(c[d][0]),c[d]=0;for(o in f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(n&&n(a,f,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=t(t.s=r[i]);return b};var a={},c={35:0};function t(n){if(a[n])return a[n].exports;var c=a[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var a=new Promise(function(a,t){n=c[e]=[a,t]});n[2]=a;var f=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,t.nc&&r.setAttribute("nonce",t.nc),r.src=t.p+"static/js/"+e+"."+{0:"7ec98bfdf29d8f373f46",1:"bb2a302a4beab9344041",2:"98e78476b2bf208770ca",3:"de9003ad0cd58d4933e6",4:"9e8aa6a3c22b79f2c73a",5:"1b66a01a18225a345bc2",6:"eb1e9a589113c18489e0",7:"83fc9932263c5b565ced",8:"bfa832d63f77d0d127ee",9:"245ee811d4a3ba944f78",10:"f8fb30dbb5264e6f2d22",11:"746a87de7ea3f73b88d5",12:"50545fc8db8a460df1a4",13:"4f7e7350f0ebcb13a353",14:"ef760d2a9b835c95953e",15:"f9fabe9d7c33c807d49f",16:"984684a7f02744037054",17:"19b25a1d0d45b4615402",18:"8fdc15c78d35f18205ff",19:"a55a285dc45a3f867e89",20:"98917db55f67fdea7e67",21:"3f31027b2bc9b31c23ef",22:"d0a6cb8b6a3d435048d8",23:"433fe98378cc42391942",24:"1198e7fee7b6e7141dc3",25:"e5861d8c07fc8bedff04",26:"d37b4f618cff8640d548",27:"776139f253dd23ce2dad",28:"301bc88b7a29858e77ae",29:"b592a072a8ae796cf8c2",30:"4202878b9ec667c575e2",31:"18b0f89153e4d4f91de2",32:"25b16b01e9e738d6b6de"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return r.onerror=r.onload=d,f.appendChild(r),a},t.m=e,t.c=a,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="https://static-cdn.changchangenglish.com/new-sing/",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,r,f){for(var o,d,b,i=0,u=[];i<n.length;i++)d=n[i],a[d]&&u.push(a[d][0]),a[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(n,r,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=t(t.s=f[i]);return b};var n={},a={35:0};function t(c){if(n[c])return n[c].exports;var a=n[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var n=new Promise(function(n,t){c=a[e]=[n,t]});c[2]=n;var r=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,t.nc&&f.setAttribute("nonce",t.nc),f.src=t.p+"static/js/"+e+"."+{0:"269bb80d0fb5727b0b99",1:"bb2a302a4beab9344041",2:"98e78476b2bf208770ca",3:"de9003ad0cd58d4933e6",4:"9e8aa6a3c22b79f2c73a",5:"340c5e09c7942a180c49",6:"4f660985e9ee5cd662e1",7:"83fc9932263c5b565ced",8:"bfa832d63f77d0d127ee",9:"245ee811d4a3ba944f78",10:"f8fb30dbb5264e6f2d22",11:"746a87de7ea3f73b88d5",12:"50545fc8db8a460df1a4",13:"4f7e7350f0ebcb13a353",14:"ef760d2a9b835c95953e",15:"f9fabe9d7c33c807d49f",16:"984684a7f02744037054",17:"19b25a1d0d45b4615402",18:"8fdc15c78d35f18205ff",19:"a55a285dc45a3f867e89",20:"98917db55f67fdea7e67",21:"3f31027b2bc9b31c23ef",22:"d0a6cb8b6a3d435048d8",23:"433fe98378cc42391942",24:"1198e7fee7b6e7141dc3",25:"e5861d8c07fc8bedff04",26:"d37b4f618cff8640d548",27:"776139f253dd23ce2dad",28:"301bc88b7a29858e77ae",29:"b592a072a8ae796cf8c2",30:"4202878b9ec667c575e2",31:"18b0f89153e4d4f91de2",32:"25b16b01e9e738d6b6de"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return f.onerror=f.onload=d,r.appendChild(f),n},t.m=e,t.c=n,t.d=function(e,c,n){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="https://static-cdn.changchangenglish.com/new-sing/",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -316,13 +316,14 @@
this.actions.push(item)
}
if(this.userCourse.periods_list){
// debugger
this.userCourse.periods_list.forEach(el =>{
el.name = el.course_title
this.actions.push(el)
if(this.$route.query.item){
this.secActions = this.$route.query.item
}else{
if(this.userCourse.start_periods_id==0){
if(this.userCourse.start_periods_id&&this.userCourse.start_periods_id==0){
this.secActions = this.userCourse.periods_list[0]
}else if(el.id==this.userCourse.start_periods_id){
this.secActions = el
......@@ -330,11 +331,10 @@
}
})
}else{
// debugger
this.$router.replace({
name: "secMap",
query: {
periods_id: this.userCourse.start_periods_id,
course_type: this.userCourse.start_periods_course_type
}
});
}
......@@ -364,8 +364,6 @@
this.$router.replace({
name: "secMap",
query: {
periods_id: this.userCourse.start_periods_id,
course_type: this.userCourse.start_periods_course_type
}
});
}else{
......
......@@ -11,7 +11,7 @@
<img :src="errorURL">
<div>暂无课程</div>
</div>-->
<div v-if="lessonList1&&lessonList1.length" class="card-block">
<div v-if="lessonList1.length" class="card-block">
<img :src="lessonList1[0].cover+'?imageslim'">
<!-- {{lessonList1[0].name}} -->
<div :class="'card-li cid'+item.id" v-for="(item,x) in lessonList1" @click="showDia(item,x+1)">
......@@ -37,7 +37,6 @@
</div>
</div>
<div class="couponBox" @click="tobuy" v-if="couponInfo.coupon_list&&lessonList2.length&&lessonList2[0].open&&!userCourse.periods_list">
<!-- <div class="couponBox" v-if="couponInfo.coupon_list" @click="tobuy" > -->
<img class="bg" :src="couponBg" alt>
<div class="content">
<div class="top" v-if="couponInfo.coupon_list[0].deadline_at!='0000-00-00 00:00:00'">
......@@ -70,7 +69,7 @@
</div>
</div>
</div>
<div v-if="lessonList2&&lessonList2.length&&card2" class="card-block">
<div v-if="lessonList2.length>0&&card2" class="card-block">
<img :src="lessonList2[0].cover+'?imageslim'">
<div class="shadowbox" @click="goToBuyPage" v-if="!lessonList2[0].open&&oneGoodinfo.goods_desc" >
<div class="shadow"></div>
......@@ -90,7 +89,7 @@
<span v-if="!item.open">解锁后即可听课~</span>
</div>
</div>
<div class="star-block" >
<div class="star-block" v-if="item.star_num">
<img class="star-img" :src="star_act" v-for="s in item.star_num">
<img class="star-img" :src="star_def" v-for="s in 3-item.star_num">
</div>
......@@ -195,9 +194,9 @@ export default {
errorURL: errorURL,
couponBg: couponBg,
popupVisible: false,
lessonList: [],
lessonList1: [],
lessonList2: [],
lessonList:[],
lessonList1:[],
lessonList2:[],
lesson: "",
classID: "",
noLesson: false,
......@@ -336,7 +335,59 @@ export default {
if(!this.userCourse.periods_list){
this.getAutomationCoupon();
}
},
// 获取课程
getLessonList(res) {
if (this.userCourse.can_buy_goods_id&&this.userCourse.can_buy_goods_id.length) {
getAutomationApi("goods", this.userCourse.can_buy_goods_id[0]).then(
res => {
this.lessonList2 = res.can_watch_list;
console.log(this.lessonList2);
// debugger
});
getGoodsDetailApi(this.userCourse.can_buy_goods_id).then(res=>{
this.oneGoodinfo = res
this.oneGoodinfo.goods_desc = JSON.parse(res.goods_desc)
// debugger
})
if(this.userCourse.periods_list){
this.card2=false
}
}
if (this.userCourse.automation_id) {
this.userCourse.automation_id.forEach((el, index) => {
getAutomationApi("automation", el).then(res => {
// debugger
if (index == 1) {
// 解锁01元课的情况
this.lessonList2 = res.can_watch_list;
this.lessonList2.forEach(el=>{
el.open=true
})
debugger
} else {
// 1元激活后所有课都可以看
if(this.userCourse.automation_id.length==2){
this.lessonList1 = res.can_watch_list;
this.lessonList1.forEach(el=>{
el.open=true
})
}else{
this.lessonList1 = res.can_watch_list;
this.lessonList1.forEach((el,index)=>{
if(index==0){
el.open=true
}
if(el.star_num==2&&this.lessonList1[index+1]){
this.lessonList1[index+1].open=true
}
})
}
}
// debugger
});
});
}
},
tobuy(){
this.$router.push({name:'buyDetail', query: {
......@@ -358,7 +409,6 @@ export default {
}
},500)
}
this.leftTimer();
})
},
......@@ -368,16 +418,12 @@ export default {
this.$router.replace({
name: "secMap",
query: {
periods_id: this.userCourse.start_periods_id,
course_type: this.userCourse.start_periods_course_type
}
});
} else {
this.$router.replace({
name: "map",
query: {
periods_id: this.userCourse.start_periods_id,
course_type: this.userCourse.start_periods_course_type,
item:item
}
});
......@@ -498,58 +544,7 @@ export default {
Toast("课程还未开始哦");
}
},
// 获取课程
getLessonList(res) {
if (this.userCourse.can_buy_goods_id&&this.userCourse.can_buy_goods_id.length) {
getAutomationApi("goods", this.userCourse.can_buy_goods_id[0]).then(
res => {
this.lessonList2 = res.can_watch_list;
// console.log(this.lessonList2);
// debugger
});
getGoodsDetailApi(this.userCourse.can_buy_goods_id).then(res=>{
this.oneGoodinfo = res
this.oneGoodinfo.goods_desc = JSON.parse(res.goods_desc)
// debugger
})
if(this.userCourse.periods_list){
this.card2=false
}
}
if (this.userCourse.automation_id) {
this.userCourse.automation_id.forEach((el, index) => {
// debugger
getAutomationApi("automation", el).then(res => {
if (index == 1) {
this.lessonList2 = res.can_watch_list;
this.lessonList2.forEach(el=>{
el.open=true
})
} else {
// 1元激活后所有课都可以看
if(this.userCourse.automation_id.length==2){
this.lessonList1 = res.can_watch_list;
this.lessonList1.forEach(el=>{
el.open=true
})
}else{
this.lessonList1 = res.can_watch_list;
this.lessonList1.forEach((el,index)=>{
if(index==0){
el.open=true
}
if(el.star_num==2&&this.lessonList1[index+1]){
this.lessonList1[index+1].open=true
}
})
}
}
// debugger
});
});
}
},
scroll_to(offsetTop) {
let top = offsetTop - 200;
for (let i = 0; i < 30; i++) {
......
......@@ -50,13 +50,21 @@ export default {
buttonType: "切换按钮",
buttonName: "切换到上课"
});
this.$router.push({
// debugger
if(this.userCourse2.start_periods_id){
this.$router.push({
name: "map",
query: {
periods_id: this.userCourse2.start_periods_id,
course_type: this.userCourse2.start_periods_course_type
}
});
});
}else{
this.$router.push({
name: "map"
});
}
// this.$router.push({
// name: "secMap",
// query: {
......
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