Commit 718085d4 authored by IvyXia123's avatar IvyXia123

星星天数和时间

parent 6370eee1
......@@ -11,4 +11,4 @@
position: fixed;
background: #f4f4f4;
}
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.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=static/js/manifest.6f94d9b52fbe4b7042c3.js></script><script type=text/javascript src=static/js/vendor.e4eb38428ad1549116b0.js></script><script type=text/javascript src=static/js/app.d5f1443656fcfb8521b5.js></script></body></html>
\ No newline at end of file
/* html{font-size: 1px;} */</style><link href=static/css/app.f983055a19b69eb54137ee36031e8a72.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=static/js/manifest.3a96aa7bd70930f01a73.js></script><script type=text/javascript src=static/js/vendor.e4eb38428ad1549116b0.js></script><script type=text/javascript src=static/js/app.d5f1443656fcfb8521b5.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 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.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={66:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"b10826f24002ddd3e501",1:"d6e663270f47aa68486b",2:"eff239ce810d7cc87906",3:"b2b2244888e1c02ab3b9",4:"54661aecdb6eaea7d223",5:"7029a757ac24ce86eae3",6:"9a4b2de4e5f2256452e7",7:"f026d4d74b942ae82bde",8:"d626ac896620af1d7fad",9:"4b435e95d1f2449a3cfe",10:"3a911ba21a8a5687a931",11:"186f9d6ce7feac535823",12:"0c515eb137cc40185cb2",13:"7ea1191c45784523a3ac",14:"69e4922687438eba713c",15:"db942523628310b3316d",16:"3b3630d8ded09fd1270b",17:"1f2e97a207ce3b166bb9",18:"d6a2697ca1f57e22ff34",19:"4531c807268d8c6fd93b",20:"ee24f287842c72b9ead0",21:"2c80be59f57a480c3291",22:"1f84d2107b238392ab49",23:"f823a41308a413d0a14b",24:"eb40c767eb5f51c9b1e1",25:"1633439d259f64502439",26:"5ad5d664e343c18fe8eb",27:"30ab7d861e8eed001985",28:"cbbef6ff248362140233",29:"021c1d7365a8ee2c3979",30:"d9e5c94fa26678068604",31:"f842995c8354ad6b6443",32:"2591763bd5840bb367aa",33:"684bbdf839ed0f4ffaf9",34:"9cefe88ea4cb8ad514b7",35:"44c887689e29964d34f2",36:"6210b8758a735c5391a7",37:"8b1e96f6799cdaaccb41",38:"97e2fffb29e83feb9d01",39:"4917d317fc25363bc3c0",40:"ff7d58d4997003123bc5",41:"a790909f9effb6de71d4",42:"9e5a58782f286fbf8f67",43:"8055669462572c27a3d8",44:"686b5be02d48ba5551fa",45:"d0d0d370c37e7a42084b",46:"6211394915f4a8791ecb",47:"04c9e2b97a8ffc5da78c",48:"fcae6557af7c43fb20b9",49:"15dfcde89944e80c7c73",50:"81eba7fc043d1b39404d",51:"f0e92bc603cb11b51607",52:"34bc7ce35ffc44bc39c6",53:"a43d114e2a5749b23951",54:"227901bdeeaccadd7719",55:"8bfe68eafde0ad23f278",56:"62e17a695d37db38e8af",57:"4239c75eaf82573ec0a3",58:"3b428d1b18560f57322b",59:"dfb8cbc08f3e50a32dbe",60:"94b69878d0247d060c45",61:"64ec33e7d8534a199ffd",62:"fbb65514d875f85b43e1",63:"7f2a77ee6fe1525877d2"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={66:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+({0:"vendor-async"}[e]||e)+"."+{0:"b10826f24002ddd3e501",1:"afb3b2fb50317d67462a",2:"ade47c96e0ac2643d7ee",3:"b2b2244888e1c02ab3b9",4:"54661aecdb6eaea7d223",5:"7029a757ac24ce86eae3",6:"9a4b2de4e5f2256452e7",7:"f026d4d74b942ae82bde",8:"d626ac896620af1d7fad",9:"4b435e95d1f2449a3cfe",10:"3a911ba21a8a5687a931",11:"186f9d6ce7feac535823",12:"0c515eb137cc40185cb2",13:"7ea1191c45784523a3ac",14:"69e4922687438eba713c",15:"db942523628310b3316d",16:"3b3630d8ded09fd1270b",17:"1f2e97a207ce3b166bb9",18:"d6a2697ca1f57e22ff34",19:"4531c807268d8c6fd93b",20:"ee24f287842c72b9ead0",21:"2c80be59f57a480c3291",22:"1f84d2107b238392ab49",23:"f823a41308a413d0a14b",24:"66115b335ef36e664560",25:"1633439d259f64502439",26:"5ad5d664e343c18fe8eb",27:"30ab7d861e8eed001985",28:"cbbef6ff248362140233",29:"021c1d7365a8ee2c3979",30:"d9e5c94fa26678068604",31:"f842995c8354ad6b6443",32:"2591763bd5840bb367aa",33:"684bbdf839ed0f4ffaf9",34:"9cefe88ea4cb8ad514b7",35:"44c887689e29964d34f2",36:"6210b8758a735c5391a7",37:"8b1e96f6799cdaaccb41",38:"97e2fffb29e83feb9d01",39:"4917d317fc25363bc3c0",40:"ff7d58d4997003123bc5",41:"a790909f9effb6de71d4",42:"9e5a58782f286fbf8f67",43:"8055669462572c27a3d8",44:"686b5be02d48ba5551fa",45:"d0d0d370c37e7a42084b",46:"6211394915f4a8791ecb",47:"04c9e2b97a8ffc5da78c",48:"fcae6557af7c43fb20b9",49:"15dfcde89944e80c7c73",50:"81eba7fc043d1b39404d",51:"f0e92bc603cb11b51607",52:"34bc7ce35ffc44bc39c6",53:"a43d114e2a5749b23951",54:"227901bdeeaccadd7719",55:"8bfe68eafde0ad23f278",56:"62e17a695d37db38e8af",57:"4239c75eaf82573ec0a3",58:"3b428d1b18560f57322b",59:"dfb8cbc08f3e50a32dbe",60:"94b69878d0247d060c45",61:"64ec33e7d8534a199ffd",62:"fbb65514d875f85b43e1",63:"7f2a77ee6fe1525877d2"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -37,7 +37,8 @@ export default {
initPage() {
},
nav(){
this.$router.push({name:'extensionV1Shop',query:{shopId:53}})
this.$router.push({name:'extensionV1Shop',query:{shopId:53,invite_code:this.$route.query.invite_code}})
// this.$router.push({name:'extensionV1Shop',query:{shopId:53}})
}
},
mounted() {
......
......@@ -789,12 +789,8 @@
getUserWatchApi({ category_id: query.category_id }).then(res => {
this.$store.dispatch("setWatchDetail", res);
// 从评价页面返回过来
if(this.$route.params.evaluate === 1){
this.share_show = true;
this.$route.params.evaluate = 0
} else {
this.$router.push({name: 'evaluate', query: res})
}
sessionStorage.setItem('query',JSON.stringify(res))
this.$router.push({path: '/evaluate', query: res})
// debugger
});
// setTimeout(() => {
......
......@@ -91,12 +91,12 @@
this.imageNum2 = num + 1;
else
this.imageNum3 = num + 1;
this.cache = { imageNum: this.imageNum, imageNum2: this.imageNum2, imageNum3: this.imageNum3, id: classQuery.elementId }
this.cache = { imageNum: this.imageNum, imageNum2: this.imageNum2, imageNum3: this.imageNum3, id: classQuery.periods_id }
localStorage.setItem('cache', JSON.stringify(this.cache))
},
handleInput(e){
let classQuery = JSON.parse(sessionStorage.getItem("classQuery"))
this.cache = Object.assign({}, { imageNum: this.imageNum, imageNum2: this.imageNum2, imageNum3: this.imageNum3, inner: this.myHtmlCode, id: classQuery.elementId })
this.cache = Object.assign({}, { imageNum: this.imageNum, imageNum2: this.imageNum2, imageNum3: this.imageNum3, inner: this.myHtmlCode, id: classQuery.periods_id })
localStorage.setItem('cache', JSON.stringify(this.cache))
window.scrollTo(0,0)
},
......@@ -136,7 +136,7 @@
this.$sa.track('buttonClick',{
tabTitle:'评价',
moduleTitle:'评价',
buttonType:'点击wwwww',
buttonType:'点击',
buttonName:'提交成长记录加一颗星'
});
}else {
......@@ -187,7 +187,7 @@
let cacheObj = JSON.parse(localStorage.getItem('cache'))
let classQuery = JSON.parse(sessionStorage.getItem("classQuery"))
if( cacheObj ) {
if(cacheObj.id == classQuery.elementId) {
if(cacheObj.id == classQuery.periods_id) {
// 从缓存里获取
this.imageNum = cacheObj.imageNum || 0;
this.imageNum2 = cacheObj.imageNum2 || 0;
......@@ -212,6 +212,7 @@
}
},
mounted() {
this.query = this.$route.query
this.userCategoryInit()
}
......
......@@ -33,7 +33,7 @@
</div>
<div class="text1">已在唱唱学习</div>
<div class="text2">
<span>{{route.total_day}}</span>
<span>{{dataSession.total_day}}</span>
</div>
</div>
<div class="item">
......@@ -191,13 +191,17 @@
diyikexing: diyikexing, // 第二课星
starNum: 0,
avatarActive: '',
nicknameActive: ''
nicknameActive: '',
dataSession: {}
};
},
props: ["route", "totalStarNum"],
mounted() {
// 判断星星
console.log(window.sessionStorage.query);
this.dataSession = JSON.parse(window.sessionStorage.query)
console.log(this.dataSession)
//console.log(window.sessionStorage.query);
getUserDetailApi()
.then(res => {
console.log(res)
......@@ -351,12 +355,11 @@
if (this.nickname.length >= 6) {
this.nickname = this.nickname.slice(0, 4) + "...";
}
this.minute = (this.route.stay_time / 60).toFixed();
this.minute = (this.dataSession.stay_time / 60).toFixed();
// this.minute = (600/60).toFixed()
if (this.minute < 1) {
this.minute = 1;
}
// this.minute<1?1:1
if (this.minute < 8) {
this.imgPoint = good;
this.$store.dispatch("setLookStatus", 0);
......
......@@ -357,7 +357,6 @@
// 7
// )
if (res.total_star_num < 2) {
console.log(34252435)
this.popupVisible = true;
} else {
// 用户看课统计
......@@ -368,7 +367,8 @@
this.share_show = true;
this.$route.params.evaluate = 0
} else {
this.$router.push({name: 'evaluate', query: res})
sessionStorage.setItem('query',JSON.stringify(res))
this.$router.push({path: '/evaluate', query: res})
}
});
// setTimeout(() => {
......
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