5.16

parent 36ea2991
...@@ -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.a33637a3392be2fde512aa6031b6e4df.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=static/vconsole/vconsole.min.js></script><script type=text/javascript src=static/js/manifest.1e979633b239744c75e7.js></script><script type=text/javascript src=static/js/vendor.971a89734ef51957abe6.js></script><script type=text/javascript src=static/js/app.bdff180dd014066ef340.js></script></body></html> }</style><link href=static/css/app.a33637a3392be2fde512aa6031b6e4df.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=static/vconsole/vconsole.min.js></script><script type=text/javascript src=static/js/manifest.83ac37d38dd79a225d4d.js></script><script type=text/javascript src=static/js/vendor.971a89734ef51957abe6.js></script><script type=text/javascript src=static/js/app.436f01e1569fecfb6bca.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 diff is collapsed.
This diff is collapsed.
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(n,c,f){for(var o,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(a&&a(n,c,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=t(t.s=f[i]);return b};var n={},r={34:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;var c=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:"c3215ea3d0f4b9203928",1:"29c55152a4b10d7b2f60",2:"88eb6979ee991170dd43",3:"49b5451bf0ef02f66b49",4:"973d1cc7b086ea345be4",5:"09e142b4a9093fd2d98c",6:"afd0b1ee0a06179f7863",7:"2c6a76e0ae76545f4dea",8:"96e00676211b990557c0",9:"9c6596cb1371f67d909c",10:"827fb93ad16992519742",11:"b2db1db9ac9ab09a90ef",12:"20990e7a965aa0c5c0b4",13:"956b095c0a0e2fe38264",14:"d478ab3287fedb08f004",15:"998182336d150a64c64f",16:"94c57d9b4532d295fd17",17:"205c3c21ebcb4df60d2b",18:"1953d2930aae0ad3e34e",19:"9ce5c5235725211384e3",20:"768213446401f107d3dd",21:"81b8f5f4ff3a42b5e563",22:"18aa9096fdaa1b39e26d",23:"abd000c2d42590325658",24:"7d513d80b42dc2d2f825",25:"189a4ab5e51684f6c908",26:"f688ad0a42f7f2456842",27:"990bec66a2b0a8e0f57a",28:"30feeb113b054e94eca0",29:"7747cb8246f34a64535b",30:"257bb9ef506fd78ee8c4",31:"f6611d39d1dda1664e79"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return f.onerror=f.onload=d,c.appendChild(f),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,c,f){for(var o,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(a&&a(n,c,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=t(t.s=f[i]);return b};var n={},r={34:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;var c=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:"c3215ea3d0f4b9203928",1:"5a0be3efce58c866fb3d",2:"88eb6979ee991170dd43",3:"49b5451bf0ef02f66b49",4:"973d1cc7b086ea345be4",5:"09e142b4a9093fd2d98c",6:"4f50e65a3d2aa57d0d0f",7:"87ff08b6e1c01eba6114",8:"96e00676211b990557c0",9:"9c6596cb1371f67d909c",10:"827fb93ad16992519742",11:"b2db1db9ac9ab09a90ef",12:"20990e7a965aa0c5c0b4",13:"956b095c0a0e2fe38264",14:"d478ab3287fedb08f004",15:"998182336d150a64c64f",16:"94c57d9b4532d295fd17",17:"205c3c21ebcb4df60d2b",18:"1953d2930aae0ad3e34e",19:"9ce5c5235725211384e3",20:"768213446401f107d3dd",21:"81b8f5f4ff3a42b5e563",22:"18aa9096fdaa1b39e26d",23:"abd000c2d42590325658",24:"7d513d80b42dc2d2f825",25:"189a4ab5e51684f6c908",26:"f688ad0a42f7f2456842",27:"990bec66a2b0a8e0f57a",28:"30feeb113b054e94eca0",29:"7747cb8246f34a64535b",30:"257bb9ef506fd78ee8c4",31:"f6611d39d1dda1664e79"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return f.onerror=f.onload=d,c.appendChild(f),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t.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.d26f30be8e82c54c2faf4c034aae15e3.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.d787d64c8c25f866a7b4.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.46262833f7fc058ac130.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.1f558b2fca4d05470629.js></script></body></html> }</style><link href=https://static-cdn.changchangenglish.com/new-sing/static/css/app.88a742dbfc44c7fc9a5325e4c520517c.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.6525c16653d4c099a271.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/vendor.46262833f7fc058ac130.js></script><script type=text/javascript src=https://static-cdn.changchangenglish.com/new-sing/static/js/app.2c06975d853b5fa6545b.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 diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,r){for(var o,d,i,b=0,u=[];b<a.length;b++)d=a[b],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(a,t,r);u.length;)u.shift()();if(r)for(b=0;b<r.length;b++)i=f(f.s=r[b]);return i};var a={},n={34:0};function f(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,f),n.l=!0,n.exports}f.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=n[e]=[a,f]});c[2]=a;var t=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,f.nc&&r.setAttribute("nonce",f.nc),r.src=f.p+"static/js/"+e+"."+{0:"56715f58455ac5fcfa98",1:"d40196a235c4affb81d5",2:"d912e90da56ffe83e816",3:"2a2c2fd7e681a2d82028",4:"732353acd050116b32af",5:"0ec5551453f534b9d254",6:"473f53b917a3334cf3fd",7:"6e7c1baf55c785685808",8:"479f0949904abb083c39",9:"6c0f6a0dabf60a307c3d",10:"ac78c9d65ffd5c0f1a4c",11:"4638c140153ee40c01f4",12:"a01d02655b0b1dca002f",13:"ac1a8883104e709ce1ec",14:"7d765aa763eae4f9b99e",15:"1eb6cc7d23dfe5f3e91f",16:"eacc590d6a7abb7c650b",17:"f8f84cfa4b191f48271d",18:"27810984a2ab79690cc9",19:"3e06c7e9646ebe26de4a",20:"af95c97c8a8c2c1421b3",21:"3f31027b2bc9b31c23ef",22:"a3728b7411c5e89aef21",23:"9f60147a0140625d3e93",24:"f8c8d8245371c429836a",25:"7ec0eebf2bc062261cf7",26:"7666b30658fa47c11856",27:"3f17efe9421b9d53694c",28:"71f6faa1429340461c22",29:"bfe10f6244a3cba92976",30:"839cdd8894c4f43fb1ec",31:"41dd1fbe5e60f242080e"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return r.onerror=r.onload=d,t.appendChild(r),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="https://static-cdn.changchangenglish.com/new-sing/",f.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,f,r){for(var o,d,i,b=0,u=[];b<a.length;b++)d=a[b],n[d]&&u.push(n[d][0]),n[d]=0;for(o in f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(c&&c(a,f,r);u.length;)u.shift()();if(r)for(b=0;b<r.length;b++)i=t(t.s=r[b]);return i};var a={},n={34:0};function t(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,t){c=n[e]=[a,t]});c[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:"56715f58455ac5fcfa98",1:"60dd78a6deb8e703e088",2:"d912e90da56ffe83e816",3:"2a2c2fd7e681a2d82028",4:"732353acd050116b32af",5:"2ea3ace6766ce4ed29fd",6:"446853d53bc8fc6d204a",7:"6e7c1baf55c785685808",8:"479f0949904abb083c39",9:"6c0f6a0dabf60a307c3d",10:"ac78c9d65ffd5c0f1a4c",11:"4638c140153ee40c01f4",12:"a01d02655b0b1dca002f",13:"ac1a8883104e709ce1ec",14:"7d765aa763eae4f9b99e",15:"1eb6cc7d23dfe5f3e91f",16:"eacc590d6a7abb7c650b",17:"f8f84cfa4b191f48271d",18:"27810984a2ab79690cc9",19:"3e06c7e9646ebe26de4a",20:"af95c97c8a8c2c1421b3",21:"3f31027b2bc9b31c23ef",22:"a3728b7411c5e89aef21",23:"9f60147a0140625d3e93",24:"f8c8d8245371c429836a",25:"7ec0eebf2bc062261cf7",26:"7666b30658fa47c11856",27:"3f17efe9421b9d53694c",28:"71f6faa1429340461c22",29:"bfe10f6244a3cba92976",30:"839cdd8894c4f43fb1ec",31:"41dd1fbe5e60f242080e"}[e]+".js";var o=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return r.onerror=r.onload=d,f.appendChild(r),a},t.m=e,t.c=a,t.d=function(e,c,a){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},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
...@@ -473,7 +473,10 @@ ...@@ -473,7 +473,10 @@
course_type:this.shopType, course_type:this.shopType,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
}; };
sessionStorage.setItem('classQuery',JSON.stringify(query)) // setClassQuery
// this.$store
this.$store.dispatch('setClassQuery',query)
// sessionStorage.setItem('classQuery',JSON.stringify(query))
this.popupVisible=true; this.popupVisible=true;
this.push_time = data.push_time; this.push_time = data.push_time;
// 神策埋点 选择课时 // 神策埋点 选择课时
......
...@@ -534,7 +534,6 @@ export default { ...@@ -534,7 +534,6 @@ export default {
lessonData.classID = this.classID; lessonData.classID = this.classID;
lessonData.nowTime = Date.parse(new Date()); lessonData.nowTime = Date.parse(new Date());
localStorage.setItem("lessonDetail", JSON.stringify(lessonData)); localStorage.setItem("lessonDetail", JSON.stringify(lessonData));
sessionStorage.setItem('classQuery',JSON.stringify(query))
console.log(query) console.log(query)
// debugger // debugger
this.$router.push({ name: "newLesson",query:query}); this.$router.push({ name: "newLesson",query:query});
...@@ -565,6 +564,16 @@ export default { ...@@ -565,6 +564,16 @@ 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;
let query = {
periods_id:this.secActions.id,
// periods_id:undefined,
category_id:this.thisLesson.categoryId,
elementId:this.thisLesson.id,
course_type:this.shopType,
parent_category_id:this.parent_category_id,
};
this.$store.dispatch('setClassQuery',query)
// sessionStorage.setItem('classQuery',JSON.stringify(query))
// 神策埋点 选择课时 // 神策埋点 选择课时
this.$sa.track("selectElement", { this.$sa.track("selectElement", {
elementID: data.ele_id.toString(), elementID: data.ele_id.toString(),
......
...@@ -534,7 +534,7 @@ ...@@ -534,7 +534,7 @@
}; };
getUserWatchApi().then(res=>{ getUserWatchApi().then(res=>{
this.$store.dispatch('setWatchDetail',res) this.$store.dispatch('setWatchDetail',res)
subUserLessonApi(this.$route.query.elementId,this.$route.query.category_id,this.$route.query.periods_id,json).then(res=>{ subUserLessonApi(this.$store.state.classQuery.elementId,this.$store.state.classQuery.category_id,this.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
......
...@@ -44,12 +44,7 @@ ...@@ -44,12 +44,7 @@
export default { export default {
name: "index", name: "index",
data(){ data(){
let query let query = this.$route.query;
if(this.$route.query.periods_id&&this.$route.query.category_id&&this.$route.query.elementId){
query = this.$route.query;
}else{
query = JSON.parse(sessionStorage.getItem('classQuery'))
}
return { return {
backUrl:backUrl, backUrl:backUrl,
periods_id:query.periods_id, periods_id:query.periods_id,
...@@ -107,7 +102,7 @@ ...@@ -107,7 +102,7 @@
page_id:6, page_id:6,
stay_time:0, stay_time:0,
}; };
subUserLessonApi(that.elementId,that.category_id,that.periods_id,json).then(res=>{ subUserLessonApi(that.$store.state.classQuery.elementId,that.$store.state.classQuery.category_id,that.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
...@@ -123,6 +118,7 @@ ...@@ -123,6 +118,7 @@
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: option.shareIcon || 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标 imgUrl: option.shareIcon || 'https://cdn.singsingenglish.com/singsing/recommend/logo-refer.png', // 分享图标
success: function() { success: function() {
console.log(that.elementId)
// debugger // debugger
let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail')); let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail'));
let nowTime = Date.parse(new Date()); let nowTime = Date.parse(new Date());
...@@ -131,7 +127,7 @@ ...@@ -131,7 +127,7 @@
page_id:6, page_id:6,
stay_time:0, stay_time:0,
}; };
subUserLessonApi(that.elementId,that.category_id,that.periods_id,json).then(res=>{ subUserLessonApi(that.$store.state.classQuery.elementId,that.$store.state.classQuery.category_id,that.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
...@@ -174,7 +170,7 @@ ...@@ -174,7 +170,7 @@
page_id:this.page_id, page_id:this.page_id,
stay_time:lookTime, stay_time:lookTime,
}; };
subUserLessonApi(this.elementId,this.category_id,this.periods_id,json).then(res=>{ subUserLessonApi(this.$store.state.classQuery.elementId,this.$store.state.classQuery.category_id,this.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
...@@ -189,6 +185,10 @@ ...@@ -189,6 +185,10 @@
}); });
}, },
changeTitle(type){ changeTitle(type){
Toast.loading({
mask: true,
message: ''
});
this.nowShow = type; this.nowShow = type;
let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail')); let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail'));
let nowTime = Date.parse(new Date()); let nowTime = Date.parse(new Date());
...@@ -199,7 +199,8 @@ ...@@ -199,7 +199,8 @@
stay_time:lookTime, stay_time:lookTime,
}; };
console.log(lookTime) console.log(lookTime)
subUserLessonApi(this.elementId,this.category_id,this.periods_id,json).then(res=>{ subUserLessonApi(this.$store.state.classQuery.elementId,this.$store.state.classQuery.category_id,this.$store.state.classQuery.periods_id,json).then(res=>{
Toast.clear()
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
...@@ -303,6 +304,8 @@ ...@@ -303,6 +304,8 @@
mask: true, mask: true,
message: '' message: ''
}); });
console.log(this.$store.state.classQuery)
// debugger
getUserWatchApi().then(res=>{ getUserWatchApi().then(res=>{
this.watchDetail = res; this.watchDetail = res;
this.$store.dispatch('setWatchDetail',this.watchDetail) this.$store.dispatch('setWatchDetail',this.watchDetail)
...@@ -325,7 +328,7 @@ ...@@ -325,7 +328,7 @@
}; };
let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail')); let lessonDetail = JSON.parse(localStorage.getItem('lessonDetail'));
let nowTime = Date.parse(new Date()); let nowTime = Date.parse(new Date());
subUserLessonApi(this.elementId,this.category_id,this.periods_id,json).then(res=>{ subUserLessonApi(this.$store.state.classQuery.elementId,this.$store.state.classQuery.category_id,this.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
}; };
getUserWatchApi().then(res=>{ getUserWatchApi().then(res=>{
this.$store.dispatch('setWatchDetail',res) this.$store.dispatch('setWatchDetail',res)
subUserLessonApi(this.$route.query.elementId,this.$route.query.category_id,this.$route.query.periods_id,json).then(res=>{ subUserLessonApi(this.$store.state.classQuery.elementId,this.$store.state.classQuery.category_id,this.$store.state.classQuery.periods_id,json).then(res=>{
lessonDetail.total_watch_time = res.total_watch_time; lessonDetail.total_watch_time = res.total_watch_time;
lessonDetail.nowTime = nowTime; lessonDetail.nowTime = nowTime;
lessonDetail.star_num = res.total_star_num; lessonDetail.star_num = res.total_star_num;
......
...@@ -8,4 +8,7 @@ export default{ ...@@ -8,4 +8,7 @@ export default{
setWatchDetail({commit},data){ setWatchDetail({commit},data){
commit('isWatchDetail',data) commit('isWatchDetail',data)
}, },
setClassQuery({commit},data){
commit('isClassQuery',data)
}
} }
...@@ -9,7 +9,8 @@ export default new vuex.Store({ ...@@ -9,7 +9,8 @@ export default new vuex.Store({
token:'', token:'',
transitionName:'slide-left', transitionName:'slide-left',
isMobile:false, isMobile:false,
watchDetail:{} watchDetail:{},
classQuery:{},
}, },
mutations, mutations,
actions actions
......
...@@ -15,6 +15,9 @@ const mutations={ ...@@ -15,6 +15,9 @@ const mutations={
}, },
isWatchDetail(state,data){ isWatchDetail(state,data){
state.watchDetail=data; state.watchDetail=data;
} },
isClassQuery(state,data){
state.classQuery=data;
},
}; };
export default mutations; export default mutations;
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