Commit a70c3bfb authored by IvyXia123's avatar IvyXia123

完成今日学习

parent 14bb003f
...@@ -782,7 +782,7 @@ ...@@ -782,7 +782,7 @@
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60 < // (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60 <
// 7 // 7
// ) // )
if (res.total_star_num >= 2) { if (res.total_star_num <= 2) {
this.popupVisible2 = true; this.popupVisible2 = true;
// debugger // debugger
......
...@@ -106,11 +106,11 @@ ...@@ -106,11 +106,11 @@
* @param category_id * @param category_id
* @param periods_id * @param periods_id
*/ */
async subUserLessonFn(elementId, category_id, periods_id) { async subUserLessonFn(elementId, category_id, periods_id, page_id) {
let nowTime = Date.parse(new Date()), // 时间 let nowTime = Date.parse(new Date()), // 时间
lessonDetail = JSON.parse(localStorage.getItem("lessonDetail")),// 获取延长时间 lessonDetail = JSON.parse(localStorage.getItem("lessonDetail")),// 获取延长时间
lookTime = (nowTime - lessonDetail.nowTime) / 1000, lookTime = (nowTime - lessonDetail.nowTime) / 1000,
watchLog = { page_type: 0, page_id: 7, stay_time: lookTime }; watchLog = { page_type: 0, page_id: page_id, stay_time: lookTime };
const subUserLessonDatac = await subUserLessonApi(elementId, category_id, periods_id, watchLog) const subUserLessonDatac = await subUserLessonApi(elementId, category_id, periods_id, watchLog)
this.totalStarNum = subUserLessonDatac.total_star_num this.totalStarNum = subUserLessonDatac.total_star_num
}, },
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
if(this.myHtmlCode.length > 15 && this.myHtmlCode.length < 100) { if(this.myHtmlCode.length > 15 && this.myHtmlCode.length < 100) {
// 提交评价页面 // 提交评价页面
const postUserGrowthAddData = await postUserGrowthAddApi(classQuery.elementId, classQuery.category_id, classQuery.periods_id, data) const postUserGrowthAddData = await postUserGrowthAddApi(classQuery.elementId, classQuery.category_id, classQuery.periods_id, data)
this.subUserLessonFn(classQuery.elementId, classQuery.category_id, classQuery.periods_id) this.subUserLessonFn(classQuery.elementId, classQuery.category_id, classQuery.periods_id, 7)
// 删除缓存 // 删除缓存
localStorage.removeItem("cache"); localStorage.removeItem("cache");
// 展示网页生成图片 // 展示网页生成图片
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
this.$sa.track('buttonClick',{ this.$sa.track('buttonClick',{
tabTitle:'评价', tabTitle:'评价',
moduleTitle:'评价', moduleTitle:'评价',
buttonType:'点击', buttonType:'点击wwwww',
buttonName:'提交成长记录加一颗星' buttonName:'提交成长记录加一颗星'
}); });
}else { }else {
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
*/ */
skipTextClick() { skipTextClick() {
let classQuery = JSON.parse(sessionStorage.getItem("classQuery")) let classQuery = JSON.parse(sessionStorage.getItem("classQuery"))
this.subUserLessonFn(classQuery.elementId, classQuery.category_id, classQuery.periods_id) this.subUserLessonFn(classQuery.elementId, classQuery.category_id, classQuery.periods_id, 0)
this.shareShow = true this.shareShow = true
this.audioFn() // 声音时间 this.audioFn() // 声音时间
this.$sa.track('buttonClick',{ this.$sa.track('buttonClick',{
......
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
// (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60 < // (Number(lookTime) + Number(lessonDetail.total_watch_time)) / 60 <
// 7 // 7
// ) // )
if (res.total_star_num >= 2) { if (res.total_star_num <= 2) {
this.popupVisible = true; this.popupVisible = true;
} else { } else {
// 用户看课统计 // 用户看课统计
......
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