4.23

parent 40c79182
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
overflow: hidden; overflow: hidden;
position: fixed; position: fixed;
background: #f4f4f4; 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.05192449aac21748c1dd.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> }</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.2bcc39667d634fa6e6e6.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 \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,f){for(var o,b,d,i=0,u=[];i<c.length;i++)b=c[i],n[b]&&u.push(n[b][0]),n[b]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(a&&a(c,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[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],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"39b36a8ffb3c81d52269",1:"5957001eea30fb7dfb71",2:"c0376a263c7f20cd0979",3:"cb0e919d300a9a3004be",4:"40ccdf99fbcc9c94ba7d",5:"35c21a9a684a2d8d4534",6:"9f868fa4daa80714eb7f",7:"c0290e19530ddb008bf3",8:"756b2b323ac553b002d5",9:"1c9fa255f310bb8b4e6a",10:"7ee33d51aede03d926f0",11:"ce77bd250e489483340e",12:"5bb1519d95fb708106bb",13:"43f421c3eb64a990eab2",14:"c60e9e6068f63203c901",15:"e89ab9ff03d59f4e5f9f",16:"abdd37a831290369cab3",17:"76969a55011b8f5ca096",18:"c64d73a608befb9174d1",19:"19c2c1ab5f332872664e",20:"4d03512be3a553567e4a",21:"22c8a762a922965fe8ad",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 o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=b,t.appendChild(f),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}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,f){for(var o,b,d,i=0,u=[];i<c.length;i++)b=c[i],n[b]&&u.push(n[b][0]),n[b]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(a&&a(c,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[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],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"39b36a8ffb3c81d52269",1:"5957001eea30fb7dfb71",2:"c0376a263c7f20cd0979",3:"cb0e919d300a9a3004be",4:"40ccdf99fbcc9c94ba7d",5:"35c21a9a684a2d8d4534",6:"5cdea71b3db3d648d42e",7:"c0290e19530ddb008bf3",8:"756b2b323ac553b002d5",9:"1c9fa255f310bb8b4e6a",10:"7ee33d51aede03d926f0",11:"ce77bd250e489483340e",12:"5bb1519d95fb708106bb",13:"43f421c3eb64a990eab2",14:"c60e9e6068f63203c901",15:"e89ab9ff03d59f4e5f9f",16:"abdd37a831290369cab3",17:"76969a55011b8f5ca096",18:"c64d73a608befb9174d1",19:"19c2c1ab5f332872664e",20:"4d03512be3a553567e4a",21:"22c8a762a922965fe8ad",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 o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=b,t.appendChild(f),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 \ 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>*{ <!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; -webkit-overflow-scrolling:touch;
}</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.1958b8d5fdf69ca9c181d8b7f173c9c0.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.481e1234b71accec5092.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.4535904b5de62eda07f8.js></script></body></html> }</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.159b1bffae800caaac722537d5d26a33.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.e1cb53cd7a2f91977163.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.b954b436f0556585b501.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.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,f,r){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 f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(c&&c(n,f,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=t(t.s=r[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 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:"4631c41621172c2bc8c9",1:"16b9a29a1d6b281f625e",2:"98e78476b2bf208770ca",3:"de9003ad0cd58d4933e6",4:"bceac26468b926709315",5:"560342ed262b2620c679",6:"45a10628ab8413133af8",7:"83fc9932263c5b565ced",8:"a1cac73c2d4eed071f80",9:"245ee811d4a3ba944f78",10:"f8fb30dbb5264e6f2d22",11:"746a87de7ea3f73b88d5",12:"50545fc8db8a460df1a4",13:"4f7e7350f0ebcb13a353",14:"ef760d2a9b835c95953e",15:"f9fabe9d7c33c807d49f",16:"996adff8805bf482479e",17:"728d6d330a5d76b527ff",18:"32f650831e625bf7848f",19:"a55a285dc45a3f867e89",20:"98917db55f67fdea7e67",21:"3f31027b2bc9b31c23ef",22:"ea2cc7092755ad0a2a25",23:"433fe98378cc42391942",24:"1198e7fee7b6e7141dc3",25:"e5861d8c07fc8bedff04",26:"fffd056570411fbe813b",27:"9df8c5274aa09925c217",28:"42630fb198c3dc5aeeec",29:"0632a94166032e753f0b",30:"1a675b9e47ee56e51498",31:"d78f5c7b828744a3cd40",32:"e4146760976652405136"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=d,f.appendChild(r),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}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,f,r){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 f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(c&&c(n,f,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=t(t.s=r[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 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:"4631c41621172c2bc8c9",1:"ab065393c81998bdaf12",2:"98e78476b2bf208770ca",3:"de9003ad0cd58d4933e6",4:"bceac26468b926709315",5:"d66a46e53d14a736c241",6:"42e4ee7041fdcc9f4d41",7:"83fc9932263c5b565ced",8:"a1cac73c2d4eed071f80",9:"245ee811d4a3ba944f78",10:"f8fb30dbb5264e6f2d22",11:"746a87de7ea3f73b88d5",12:"50545fc8db8a460df1a4",13:"4f7e7350f0ebcb13a353",14:"ef760d2a9b835c95953e",15:"f9fabe9d7c33c807d49f",16:"996adff8805bf482479e",17:"728d6d330a5d76b527ff",18:"32f650831e625bf7848f",19:"a55a285dc45a3f867e89",20:"98917db55f67fdea7e67",21:"3f31027b2bc9b31c23ef",22:"ea2cc7092755ad0a2a25",23:"433fe98378cc42391942",24:"1198e7fee7b6e7141dc3",25:"e5861d8c07fc8bedff04",26:"fffd056570411fbe813b",27:"9df8c5274aa09925c217",28:"42630fb198c3dc5aeeec",29:"0632a94166032e753f0b",30:"1a675b9e47ee56e51498",31:"d78f5c7b828744a3cd40",32:"e4146760976652405136"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=d,f.appendChild(r),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 \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<img :src="errorURL"> <img :src="errorURL">
<div>暂无课程</div> <div>暂无课程</div>
</div>--> </div>-->
<div v-if="lessonList1&&lessonList1.length>0" class="card-block"> <div v-if="lessonList1&&lessonList1.length" class="card-block">
<img :src="lessonList1[0].cover+'?imageslim'"> <img :src="lessonList1[0].cover+'?imageslim'">
<!-- {{lessonList1[0].name}} --> <!-- {{lessonList1[0].name}} -->
<div :class="'card-li cid'+item.id" v-for="(item,x) in lessonList1" @click="showDia(item,x+1)"> <div :class="'card-li cid'+item.id" v-for="(item,x) in lessonList1" @click="showDia(item,x+1)">
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="couponBox" @click="tobuy" v-if="couponInfo.coupon_list[0]"> <div class="couponBox" @click="tobuy" v-if="couponInfo.coupon_list&&lessonList2.length&&lessonList2[0].open">
<!-- <div class="couponBox" v-if="couponInfo.coupon_list" @click="tobuy" > -->
<img class="bg" :src="couponBg" alt> <img class="bg" :src="couponBg" alt>
<div class="content"> <div class="content">
<div class="top"> <div class="top">
...@@ -63,9 +64,9 @@ ...@@ -63,9 +64,9 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="lessonList2&&lessonList2.length" class="card-block"> <div v-if="lessonList2&&lessonList2.length&&couponInfo.coupon_list" class="card-block">
<img :src="lessonList2[0].cover+'?imageslim'"> <img :src="lessonList2[0].cover+'?imageslim'">
<div class="shadowbox" > <div class="shadowbox" @click="goToBuyPage" v-if="!lessonList2[0].open&&couponInfo.coupon_list.length" >
<div class="shadow"></div> <div class="shadow"></div>
<div class="content"> <div class="content">
<p>更多课程 福利</p> <p>更多课程 福利</p>
...@@ -83,10 +84,6 @@ ...@@ -83,10 +84,6 @@
<span v-if="!item.open">解锁后即可听课~</span> <span v-if="!item.open">解锁后即可听课~</span>
</div> </div>
</div> </div>
<!-- <div class="star-block" >
<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>-->
<div class="icon-block"> <div class="icon-block">
<i <i
:class="{ :class="{
...@@ -285,7 +282,6 @@ export default { ...@@ -285,7 +282,6 @@ export default {
// 页面初始化 // 页面初始化
initPage() { initPage() {
// this.getLessonList(); // this.getLessonList();
console.log(this.lessonList1.length);
sessionStorage.setItem("frist", true); sessionStorage.setItem("frist", true);
if (localStorage.getItem("userCourse")) { if (localStorage.getItem("userCourse")) {
this.userCourse = JSON.parse(localStorage.getItem("userCourse")); this.userCourse = JSON.parse(localStorage.getItem("userCourse"));
...@@ -299,7 +295,7 @@ export default { ...@@ -299,7 +295,7 @@ export default {
if (this.userCourse.automation_id &&this.userCourse.automation_id.length > 0) { if (this.userCourse.automation_id &&this.userCourse.automation_id.length > 0) {
let item = {}; let item = {};
item.name = "VIP高效体验营"; item.name = "VIP高效体验营";
item.id = "x"; item.id = this.userCourse.automation_id[0];
this.actions.push(item); this.actions.push(item);
this.secActions = item; this.secActions = item;
} }
...@@ -314,7 +310,7 @@ export default { ...@@ -314,7 +310,7 @@ export default {
el.className="activit" el.className="activit"
} }
}) })
// debugger
// console.log(this.userCourse) // console.log(this.userCourse)
this.getLessonList(); this.getLessonList();
this.getAutomationCoupon(); this.getAutomationCoupon();
...@@ -329,13 +325,13 @@ export default { ...@@ -329,13 +325,13 @@ export default {
getAutomationCouponApi().then(res =>{ getAutomationCouponApi().then(res =>{
this.couponInfo = res this.couponInfo = res
this.couponInfo.goods_desc = JSON.parse(res.goods_desc) this.couponInfo.goods_desc = JSON.parse(res.goods_desc)
console.log(res) // console.log(res)
this.leftTimer(); this.leftTimer();
}) })
}, },
onSelect(item) { onSelect(item) {
this.actionsheetShow = false; this.actionsheetShow = false;
if (item.id == "x") { if (item.id ==this.userCourse.automation_id[0]) {
this.$router.replace({ this.$router.replace({
name: "secMap", name: "secMap",
query: { query: {
...@@ -437,8 +433,8 @@ export default { ...@@ -437,8 +433,8 @@ export default {
}, },
// 显示课程弹窗 // 显示课程弹窗
showDia(data, i) { showDia(data, i) {
if (data.push_time !== "0000-00-00") { if (data.open) {
getLessonDetailApi(this.secActions.id, data.id, data.ele_id).then( getLessonDetailApi('999999999', data.id, data.ele_id).then(
res => { res => {
res.content = JSON.parse(res.content); res.content = JSON.parse(res.content);
this.thisLesson = res; this.thisLesson = res;
...@@ -448,7 +444,6 @@ export default { ...@@ -448,7 +444,6 @@ export default {
this.thisLesson.day = i; this.thisLesson.day = i;
this.thisLesson.star_num = data.star_num; this.thisLesson.star_num = data.star_num;
this.popupVisible = true; this.popupVisible = true;
this.push_time = data.push_time;
// 神策埋点 选择课时 // 神策埋点 选择课时
this.$sa.track("selectElement", { this.$sa.track("selectElement", {
elementID: data.ele_id.toString(), elementID: data.ele_id.toString(),
...@@ -458,8 +453,8 @@ export default { ...@@ -458,8 +453,8 @@ export default {
data.name.slice(0, 9) + data.name.slice(0, 9) +
"-" + "-" +
data.name.slice(10, data.name.length), data.name.slice(10, data.name.length),
themeID: this.parent_category_id.toString(), // themeID: this.parent_category_id.toString(),
themeName: this.parent_category_id.toString(), // themeName: this.parent_category_id.toString(),
goodsID: this.goodsID, goodsID: this.goodsID,
classID: this.classID, classID: this.classID,
courseID: this.course_id.toString() courseID: this.course_id.toString()
...@@ -472,11 +467,18 @@ export default { ...@@ -472,11 +467,18 @@ export default {
}, },
// 获取课程 // 获取课程
getLessonList(res) { getLessonList(res) {
if (this.userCourse.can_buy_goods_id) { if (this.userCourse.can_buy_goods_id.length) {
getAutomationApi("goods", this.userCourse.can_buy_goods_id[0]).then( getAutomationApi("goods", this.userCourse.can_buy_goods_id[0]).then(
res => { res => {
this.lessonList2 = res.can_watch_list; this.lessonList2 = res.can_watch_list;
console.log(this.lessonList2); // console.log(this.lessonList2);
setTimeout(()=>{
let moneyDom = document.getElementsByClassName('couponBox');
if(moneyDom.length>0){
// this.scroll_to(moneyDom[0].offsetParent.offsetTop)
window.scrollTo(0,moneyDom[0].offsetTop-120);
}
},500)
} }
); );
} }
...@@ -500,80 +502,12 @@ export default { ...@@ -500,80 +502,12 @@ export default {
} }
}) })
} }
console.log(this.lessonList2);
console.log(this.lessonList1);
// debugger // debugger
}); });
}); });
} }
// debugger
// this.lessonList = [];
// this.hpLessonList = [];
// this.noLesson = !!res.list.length < 1;
// let list = [];
// let x = 0;
// for (let i = 0; i < res.list.length; i++) {
// if (res.list[i].push_time !== "0000-00-00") {
// x++;
// }
// if (res.list[i].name.indexOf("Day1") > -1 && list.length > 0) {
// this.lessonList.push(list);
// list = [];
// list.push(res.list[i]);
// } else {
// list.push(res.list[i]);
// if (i == res.list.length - 1) {
// this.lessonList.push(list);
// }
// }
// res.list[i].dayText = "DAY " + list.length;
// this.hpLessonList.push(res.list[i]);
// }
// if (!data) {
// this.$nextTick(() => {
// if (x !== this.hpLessonList.length) {
// this.swiperLesson.slideTo(x - 1);
// } else if (this.$route.query.category_id) {
// }
// if (this.$route.query.category_id) {
// let dom = document.getElementsByClassName(
// "cid" + this.$route.query.category_id
// );
// if (dom.length > 0 && dom[0].style.display !== "none") {
// this.scroll_to(dom[0].offsetTop);
// let data = null;
// let index = 0;
// 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 && dom[0].style.display !== "none") {
// this.scroll_to(dom[0].offsetTop);
// }
// } else {
// let moneyDom = document.getElementsByClassName("money");
// if (moneyDom.length > 0 && moneyDom[0].offsetLeft !== 0) {
// this.scroll_to(moneyDom[0].offsetParent.offsetTop);
// }
// }
// });
// } else {
// this.scroll_to(0);
// this.swiperLesson.slideTo(0);
// }
}, },
scroll_to(offsetTop) { scroll_to(offsetTop) {
// debugger
let top = offsetTop - 200; let top = offsetTop - 200;
for (let i = 0; i < 30; i++) { for (let i = 0; i < 30; i++) {
let scrollTop = let scrollTop =
...@@ -608,7 +542,24 @@ export default { ...@@ -608,7 +542,24 @@ export default {
i = "0" + i; i = "0" + i;
} }
return i; return i;
} },
goToBuyPage(){
let query = {shopId: this.userCourse.can_buy_goods_id[0]};
if(localStorage.getItem('gdt_vid')){
query.gdt_vid = localStorage.getItem('gdt_vid')
// console.log(query.gdt_vid)
}
if(window.location.href.indexOf('cct_user_id')>-1){
query.cct_user_id = comment.getUrlParam().cct_user_id
}
this.$router.push({
name: 'buy',
query:query
});
// this.$nextTick(()=>{
// this.payFlag=true;
// });
},
} }
}; };
</script> </script>
......
...@@ -282,7 +282,6 @@ ...@@ -282,7 +282,6 @@
}) })
}) })
}, },
getOffsetRect(ele){ getOffsetRect(ele){
var box=ele.getBoundingClientRect(); var box=ele.getBoundingClientRect();
......
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