Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
c4a47598
Commit
c4a47598
authored
Sep 04, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
星星
parent
be3fee4f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
39 deletions
+70
-39
btn_kechegn.png
src/assets/btn_kechegn.png
+0
-0
growthRecord.vue
src/components/growthRecord.vue
+13
-7
index.vue
src/components/map/index.vue
+8
-4
audio.vue
src/components/newLesson/audio.vue
+3
-3
evaluate.vue
src/components/newLesson/evaluate.vue
+32
-12
share.vue
src/components/newLesson/share.vue
+8
-7
video.vue
src/components/newLesson/video.vue
+3
-3
main.js
src/main.js
+3
-3
No files found.
src/assets/btn_kechegn.png
0 → 100755
View file @
c4a47598
15.5 KB
src/components/growthRecord.vue
View file @
c4a47598
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"growthRecord-content-year"
>
{{
item
.
year
}}
年
</div>
<div
class=
"growthRecord-content-year"
>
{{
item
.
year
}}
年
</div>
<div
class=
"growthRecord-content-children"
:data-timer=
"itemChild.cur_date"
v-for=
"(itemChild, itemIndex) in item.monthArr"
>
<div
class=
"growthRecord-content-children"
:data-timer=
"itemChild.cur_date"
v-for=
"(itemChild, itemIndex) in item.monthArr"
>
<!-- 月,日 -->
<!-- 月,日 -->
<div
class=
"growthRecord-content-left"
>
<div
class=
"growthRecord-content-left"
:style=
"
{ opacity: itemChild.ataer == 1 ? '1' : '0' }">
<!-- style="opacity: 0;" --
>
<span
class=
"day"
>
{{
itemChild
.
month
.
split
(
'-'
)[
1
]
}}
</span><span
class=
"mouth"
>
{{
itemChild
.
month
.
split
(
'-'
)[
0
]
}}
月
</span>
<span
class=
"day"
>
{{
itemChild
.
month
.
split
(
'-'
)[
1
]
}}
</span><span
class=
"mouth"
>
{{
itemChild
.
month
.
split
(
'-'
)[
0
]
}}
月
</span>
</div>
</div>
<!-- 月日对应的content -->
<!-- 月日对应的content -->
...
@@ -23,11 +23,11 @@
...
@@ -23,11 +23,11 @@
<img
class=
"scoring-category-active"
:src=
"scoringCategoryImage.scoringCategory3Active"
alt=
""
>
<img
class=
"scoring-category-active"
:src=
"scoringCategoryImage.scoringCategory3Active"
alt=
""
>
<span
class=
"num"
>
{{
itemChild
.
parent_child
}}
</span>
<span
class=
"num"
>
{{
itemChild
.
parent_child
}}
</span>
</div>
</div>
<div
class=
"rowthRecord-content-sub"
>
<div
class=
"rowthRecord-content-sub"
@
click=
"xiajiantou(itemChild.id)"
>
<span
class=
"text"
>
{{
itemChild
.
growth_record
}}
</span>
<span
class=
"text"
v-html=
"itemChild.growth_record"
>
</span>
<span
class=
""
><img
@
click=
"xiajiantou(itemChild.id)"
class=
"xiajiantou"
:src=
"scoringCategoryImage.xiajiantou"
alt=
""
></span>
<span
class=
""
><img
class=
"xiajiantou"
:src=
"scoringCategoryImage.xiajiantou"
alt=
""
></span>
</div>
</div>
<div
class=
"timer"
>
{{
itemChild
.
created_at
.
split
(
' '
)[
1
]
}}
{{
itemChild
.
state
}}
</div>
<div
class=
"timer"
>
{{
itemChild
.
created_at
.
split
(
' '
)[
1
]
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -61,9 +61,15 @@
...
@@ -61,9 +61,15 @@
async
userGrowthRecordList
()
{
async
userGrowthRecordList
()
{
const
userGrowthRecordData
=
await
getUserGrowthListApi
();
const
userGrowthRecordData
=
await
getUserGrowthListApi
();
userGrowthRecordData
.
map
(
item
=>
{
userGrowthRecordData
.
map
(
item
=>
{
// 重新转化数据
item
.
monthArr
=
[];
item
.
monthArr
=
[];
Object
.
values
(
item
.
month
).
map
(
itemchild
=>
item
.
monthArr
.
push
(
itemchild
[
0
]))
for
(
let
k
in
item
.
month
)
{
// 相同日期显示一个
item
.
month
[
k
][
0
].
ataer
=
1
;
// 数据重新整合
for
(
let
i
=
0
;
i
<
item
.
month
[
k
].
length
;
i
++
)
{
item
.
monthArr
.
push
(
item
.
month
[
k
][
i
])
}
}
})
})
this
.
scoringCategoryData
=
userGrowthRecordData
;
this
.
scoringCategoryData
=
userGrowthRecordData
;
// 初始化滚动值
// 初始化滚动值
...
...
src/components/map/index.vue
View file @
c4a47598
...
@@ -173,7 +173,9 @@
...
@@ -173,7 +173,9 @@
<div
style=
"color: #cccccc;padding: 21.3333vw 0;font-size: 5.3333vw;"
>
快去开始课程吧!
</div>
<div
style=
"color: #cccccc;padding: 21.3333vw 0;font-size: 5.3333vw;"
>
快去开始课程吧!
</div>
</div>
</div>
<div>
<div>
<i
class=
"map goLesson"
@
click=
"goDetail()"
></i>
<i
class=
"goLesson"
@
click=
"goDetail()"
>
<img
style=
"width: 100%; height: 100%;"
:src=
"btn_kechegn"
alt=
""
>
</i>
</div>
</div>
</div>
</div>
</van-popup>
</van-popup>
...
@@ -193,6 +195,7 @@
...
@@ -193,6 +195,7 @@
import
bottomTab
from
'../public/bottomTab'
;
import
bottomTab
from
'../public/bottomTab'
;
import
errorURL
from
'../../assets/error.png'
import
errorURL
from
'../../assets/error.png'
import
nextUnitUrl
from
'../../assets/newLesson/nextUnit.png'
import
nextUnitUrl
from
'../../assets/newLesson/nextUnit.png'
import
btn_kechegn
from
'../../assets/btn_kechegn.png'
export
default
{
export
default
{
name
:
"mapDefault"
,
name
:
"mapDefault"
,
components
:{
components
:{
...
@@ -232,6 +235,7 @@
...
@@ -232,6 +235,7 @@
noLesson
:
false
,
noLesson
:
false
,
hpLessonList
:[],
hpLessonList
:[],
thisLesson
:
null
,
thisLesson
:
null
,
btn_kechegn
:
btn_kechegn
,
swiperOption
:
{
swiperOption
:
{
width
:
window
.
innerWidth
*
0.25
,
width
:
window
.
innerWidth
*
0.25
,
on
:
{
on
:
{
...
@@ -387,7 +391,7 @@
...
@@ -387,7 +391,7 @@
document
.
documentElement
.
scrollTop
=
0
;
document
.
documentElement
.
scrollTop
=
0
;
document
.
body
.
scrollTop
=
0
;
document
.
body
.
scrollTop
=
0
;
}
}
}
}
},
},
findUnit
(
data
){
findUnit
(
data
){
return
this
.
unitList
.
find
(
i
=>
{
return
i
.
category_id
==
data
})
return
this
.
unitList
.
find
(
i
=>
{
return
i
.
category_id
==
data
})
...
@@ -755,7 +759,7 @@
...
@@ -755,7 +759,7 @@
.actStar{height:20*@toVw;width:20*@toVw;background-position:0 -60*@toVw;display: inline-block}
.actStar{height:20*@toVw;width:20*@toVw;background-position:0 -60*@toVw;display: inline-block}
.clock{height:28*@toVw;width:28*@toVw;background-position:0 -80*@toVw;display: inline-block}
.clock{height:28*@toVw;width:28*@toVw;background-position:0 -80*@toVw;display: inline-block}
.money{height:40*@toVw;width:40*@toVw;background-position:0 -108*@toVw;display: inline-block;animation: dodge 1s infinite;}
.money{height:40*@toVw;width:40*@toVw;background-position:0 -108*@toVw;display: inline-block;animation: dodge 1s infinite;}
.goLesson{height:5
9*@toVw;width:136
*@toVw;background-position:0 -148*@toVw;display: inline-block;margin-top:15*@toVw;margin-bottom: 10*@toVw }
.goLesson{height:5
7*@toVw;width:169
*@toVw;background-position:0 -148*@toVw;display: inline-block;margin-top:15*@toVw;margin-bottom: 10*@toVw }
.van-actionsheet{
.van-actionsheet{
.activit{color: yellowgreen;}
.activit{color: yellowgreen;}
}
}
...
@@ -790,7 +794,7 @@
...
@@ -790,7 +794,7 @@
}
}
}
}
.date{
.date{
width:250*@toVw;height: 40*@toVw;line-height:40*@toVw;background: #40A9FF;color: white;border-radius: 20*@toVw;margin-top: 25*@toVw
width:250*@toVw;height: 40*@toVw;line-height:40*@toVw;background: #40A9FF;color: white;border-radius: 20*@toVw;margin-top: 25*@toVw
}
}
}
}
@-webkit-keyframes swing {
@-webkit-keyframes swing {
...
...
src/components/newLesson/audio.vue
View file @
c4a47598
...
@@ -146,14 +146,14 @@
...
@@ -146,14 +146,14 @@
<img
ref=
"imgItem"
:src=
"showObj.audio[index].image"
/>
<img
ref=
"imgItem"
:src=
"showObj.audio[index].image"
/>
</div>
</div>
</div>
</div>
<div
v-if=
"share_show"
>
<
!--
<
div
v-if=
"share_show"
>
<share-page
<share-page
@
backList=
"backList()"
@
backList=
"backList()"
ref=
"sharePage"
ref=
"sharePage"
@
closeShare=
"closeShare()"
@
closeShare=
"closeShare()"
:contentData=
"contentData"
:contentData=
"contentData"
/>
/>
</div>
</div>
-->
<audio
ref=
"audioDom"
id=
"audioDom"
class=
"audio"
:src=
"audioPoint"
></audio>
<audio
ref=
"audioDom"
id=
"audioDom"
class=
"audio"
:src=
"audioPoint"
></audio>
</div>
</div>
</
template
>
</
template
>
...
@@ -792,7 +792,7 @@
...
@@ -792,7 +792,7 @@
this
.
share_show
=
true
;
this
.
share_show
=
true
;
this
.
$route
.
params
.
evaluate
=
0
this
.
$route
.
params
.
evaluate
=
0
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
'/evaluate'
})
this
.
$router
.
push
({
name
:
'evaluate'
,
query
:
res
})
}
}
// debugger
// debugger
});
});
...
...
src/components/newLesson/evaluate.vue
View file @
c4a47598
...
@@ -41,6 +41,9 @@
...
@@ -41,6 +41,9 @@
</div>
</div>
<div
class=
"skip-text"
@
click=
"skipTextClick"
>
跳过
</div>
<div
class=
"skip-text"
@
click=
"skipTextClick"
>
跳过
</div>
</div>
</div>
<div
v-if=
"shareShow"
>
<share-page
@
closeShare=
"closeShare()"
:route=
"query"
/>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -49,6 +52,7 @@
...
@@ -49,6 +52,7 @@
import
{
scoringCategory
}
from
"../../util/imgUrl"
;
import
{
scoringCategory
}
from
"../../util/imgUrl"
;
import
growthRecord
from
"../../assets/growth_record.png"
;
import
growthRecord
from
"../../assets/growth_record.png"
;
import
{
Toast
}
from
"vant"
;
import
{
Toast
}
from
"vant"
;
import
sharePage
from
"./share"
;
export
default
{
export
default
{
name
:
'evaluate'
,
name
:
'evaluate'
,
...
@@ -61,25 +65,31 @@
...
@@ -61,25 +65,31 @@
myHtmlCode
:
''
,
myHtmlCode
:
''
,
growthRecord
:
growthRecord
,
growthRecord
:
growthRecord
,
scoringCategoryImage
:
scoringCategory
,
scoringCategoryImage
:
scoringCategory
,
shareShow
:
false
,
query
:
{}
}
}
},
},
components
:
{
sharePage
},
methods
:
{
methods
:
{
/**
/**
* 点击
* 点击
*/
*/
scoringCategoryClick
(
num
,
state
)
{
scoringCategoryClick
(
num
,
state
)
{
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
))
if
(
state
===
1
)
if
(
state
===
1
)
this
.
imageNum
=
num
+
1
;
this
.
imageNum
=
num
+
1
;
else
if
(
state
===
2
)
else
if
(
state
===
2
)
this
.
imageNum2
=
num
+
1
;
this
.
imageNum2
=
num
+
1
;
else
else
this
.
imageNum3
=
num
+
1
;
this
.
imageNum3
=
num
+
1
;
this
.
cache
=
{
imageNum
:
this
.
imageNum
,
imageNum2
:
this
.
imageNum2
,
imageNum3
:
this
.
imageNum3
}
this
.
cache
=
{
imageNum
:
this
.
imageNum
,
imageNum2
:
this
.
imageNum2
,
imageNum3
:
this
.
imageNum3
,
id
:
classQuery
.
elementId
}
localStorage
.
setItem
(
'cache'
,
JSON
.
stringify
(
this
.
cache
))
localStorage
.
setItem
(
'cache'
,
JSON
.
stringify
(
this
.
cache
))
},
},
handleInput
(
e
){
handleInput
(
e
){
let
checkboxPutContenteditable
=
document
.
querySelector
(
'.checkbox-put-contenteditable'
);
let
checkboxPutContenteditable
=
document
.
querySelector
(
'.checkbox-put-contenteditable'
);
this
.
cache
=
Object
.
assign
({},
this
.
cache
,
{
inner
:
checkboxPutContenteditable
.
innerHTML
})
this
.
cache
=
Object
.
assign
({},
this
.
cache
,
{
inner
:
checkboxPutContenteditable
.
innerHTML
,
id
:
classQuery
.
elementId
})
localStorage
.
setItem
(
'cache'
,
JSON
.
stringify
(
this
.
cache
))
localStorage
.
setItem
(
'cache'
,
JSON
.
stringify
(
this
.
cache
))
},
},
/**
/**
...
@@ -101,14 +111,17 @@
...
@@ -101,14 +111,17 @@
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
)
// 提交看课数据
// 提交看课数据
const
subUserLessonDatac
=
subUserLessonApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
watchLog
)
const
subUserLessonDatac
=
subUserLessonApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
watchLog
)
// 删除缓存
localStorage
.
removeItem
(
"cache"
);
// 展示网页生成图片
this
.
shareShow
=
true
this
.
$sa
.
track
(
'buttonClick'
,{
this
.
$sa
.
track
(
'buttonClick'
,{
tabTitle
:
'评价'
,
tabTitle
:
'评价'
,
moduleTitle
:
'评价'
,
moduleTitle
:
'评价'
,
buttonType
:
'点击'
,
buttonType
:
'点击'
,
buttonName
:
'提交成长记录加一颗星'
buttonName
:
'提交成长记录加一颗星'
});
});
localStorage
.
removeItem
(
"cache"
);
this
.
$router
.
push
({
name
:
'newLesson'
,
params
:
{
evaluate
:
1
,
type
:
3
},
query
:
{
periods_id
:
classQuery
.
periods_id
,
category_id
:
classQuery
.
category_id
,
elementId
:
classQuery
.
elementId
}})
}
}
}
else
{
}
else
{
Toast
(
"可输入15-100字"
);
Toast
(
"可输入15-100字"
);
...
@@ -122,32 +135,39 @@
...
@@ -122,32 +135,39 @@
buttonType
:
'点击'
,
buttonType
:
'点击'
,
buttonName
:
'提交成长记录不提交跳过'
buttonName
:
'提交成长记录不提交跳过'
});
});
this
.
$router
.
push
({
name
:
'newLesson'
,
params
:
{
evaluate
:
1
,
type
:
3
},
query
:
{
periods_id
:
classQuery
.
periods_id
,
category_id
:
classQuery
.
category_id
,
elementId
:
classQuery
.
elementId
}})
this
.
shareShow
=
true
},
},
/**
/**
* 初始化
* 初始化
*/
*/
async
userCategoryInit
()
{
async
userCategoryInit
()
{
let
cacheObj
=
JSON
.
parse
(
localStorage
.
getItem
(
'cache'
))
let
cacheObj
=
JSON
.
parse
(
localStorage
.
getItem
(
'cache'
))
console
.
log
(
cacheObj
)
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
)
)
if
(
cacheObj
)
{
if
(
cacheObj
)
{
// 从缓存里获取
if
(
cacheObj
.
id
==
classQuery
.
elementId
)
{
this
.
imageNum
=
cacheObj
.
imageNum
||
0
;
// 从缓存里获取
this
.
imageNum2
=
cacheObj
.
imageNum2
||
0
;
this
.
imageNum
=
cacheObj
.
imageNum
||
0
;
this
.
imageNum3
=
cacheObj
.
imageNum3
||
0
;
this
.
imageNum2
=
cacheObj
.
imageNum2
||
0
;
this
.
myHtmlCode
=
cacheObj
.
inner
||
''
;
this
.
imageNum3
=
cacheObj
.
imageNum3
||
0
;
this
.
myHtmlCode
=
cacheObj
.
inner
||
''
;
}
else
{
localStorage
.
removeItem
(
"cache"
);
}
}
else
{
}
else
{
// 从接口获取
// 从接口获取
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
))
const
getUserGrowthRecordData
=
await
getUserGrowthRecordApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
);
const
getUserGrowthRecordData
=
await
getUserGrowthRecordApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
);
this
.
imageNum
=
getUserGrowthRecordData
.
interest
;
this
.
imageNum
=
getUserGrowthRecordData
.
interest
;
this
.
imageNum2
=
getUserGrowthRecordData
.
concent
;
this
.
imageNum2
=
getUserGrowthRecordData
.
concent
;
this
.
imageNum3
=
getUserGrowthRecordData
.
parent_child
;
this
.
imageNum3
=
getUserGrowthRecordData
.
parent_child
;
this
.
myHtmlCode
=
getUserGrowthRecordData
.
growth_record
;
this
.
myHtmlCode
=
getUserGrowthRecordData
.
growth_record
;
}
}
},
closeShare
()
{
this
.
shareShow
=
false
}
}
},
},
mounted
()
{
mounted
()
{
this
.
query
=
this
.
$route
.
query
this
.
userCategoryInit
()
this
.
userCategoryInit
()
}
}
}
}
...
...
src/components/newLesson/share.vue
View file @
c4a47598
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
<span>
家宝宝
</span>
<span>
家宝宝
</span>
</div>
</div>
</div>
</div>
<div
v-if=
"
watchDetail
"
class=
"main-text"
>
<div
v-if=
"
route
"
class=
"main-text"
>
<div
class=
"item"
>
<div
class=
"item"
>
<div
class
>
<div
class
>
<img
:src=
"icon_day"
alt
/>
<img
:src=
"icon_day"
alt
/>
</div>
</div>
<div
class=
"text1"
>
已在唱唱学习
</div>
<div
class=
"text1"
>
已在唱唱学习
</div>
<div
class=
"text2"
>
<div
class=
"text2"
>
<span>
{{
watchDetail
.
total_day
}}
</span>
天
<span>
{{
route
.
total_day
}}
</span>
天
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -188,11 +188,12 @@
...
@@ -188,11 +188,12 @@
animationBg
:
false
,
animationBg
:
false
,
dierkexing
:
dierkexing
,
// 三颗星第一第三颗
dierkexing
:
dierkexing
,
// 三颗星第一第三颗
diyikexing
:
diyikexing
,
// 第二课星
diyikexing
:
diyikexing
,
// 第二课星
starNum
:
0
starNum
:
0
,
};
};
},
},
props
:
[
"
contentData
"
],
props
:
[
"
route
"
],
mounted
()
{
mounted
()
{
// 判断星星
this
.
starNum
=
JSON
.
parse
(
localStorage
.
getItem
(
'lessonDetail'
)).
star_num
this
.
starNum
=
JSON
.
parse
(
localStorage
.
getItem
(
'lessonDetail'
)).
star_num
Toast
.
loading
({
Toast
.
loading
({
mask
:
true
,
mask
:
true
,
...
@@ -202,10 +203,8 @@
...
@@ -202,10 +203,8 @@
this
.
initPage
();
this
.
initPage
();
},
},
beforeDestroy
()
{
beforeDestroy
()
{
console
.
log
(
Date
.
parse
(
new
Date
())
-
this
.
lastTime
);
this
.
lesson
.
nowTime
+=
Date
.
parse
(
new
Date
())
-
this
.
lastTime
;
this
.
lesson
.
nowTime
+=
Date
.
parse
(
new
Date
())
-
this
.
lastTime
;
localStorage
.
setItem
(
"lessonDetail"
,
JSON
.
stringify
(
this
.
lesson
));
localStorage
.
setItem
(
"lessonDetail"
,
JSON
.
stringify
(
this
.
lesson
));
console
.
log
(
this
.
lesson
.
nowTime
);
},
},
methods
:
{
methods
:
{
touchStart
()
{
touchStart
()
{
...
@@ -323,6 +322,7 @@
...
@@ -323,6 +322,7 @@
},
},
initPage
()
{
initPage
()
{
this
.
watchDetail
=
this
.
$store
.
state
.
watchDetail
;
this
.
watchDetail
=
this
.
$store
.
state
.
watchDetail
;
console
.
log
(
this
.
$store
.
state
,
324423
)
// debugger
// debugger
this
.
lesson
=
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
));
this
.
lesson
=
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
));
this
.
lesson
.
domTitle
=
this
.
lesson
.
domTitle
.
substring
(
0
,
9
);
this
.
lesson
.
domTitle
=
this
.
lesson
.
domTitle
.
substring
(
0
,
9
);
...
@@ -335,7 +335,8 @@
...
@@ -335,7 +335,8 @@
if
(
this
.
nickname
.
length
>=
6
)
{
if
(
this
.
nickname
.
length
>=
6
)
{
this
.
nickname
=
this
.
nickname
.
slice
(
0
,
4
)
+
"..."
;
this
.
nickname
=
this
.
nickname
.
slice
(
0
,
4
)
+
"..."
;
}
}
this
.
minute
=
(
this
.
watchDetail
.
stay_time
/
60
).
toFixed
();
this
.
minute
=
(
this
.
route
.
stay_time
/
60
).
toFixed
();
console
.
log
(
this
.
minute
,
2323
)
// this.minute = (600/60).toFixed()
// this.minute = (600/60).toFixed()
if
(
this
.
minute
<
1
)
{
if
(
this
.
minute
<
1
)
{
this
.
minute
=
1
;
this
.
minute
=
1
;
...
...
src/components/newLesson/video.vue
View file @
c4a47598
...
@@ -127,9 +127,9 @@
...
@@ -127,9 +127,9 @@
<no-finish-dia
/>
<no-finish-dia
/>
</div>
</div>
</mt-popup>
</mt-popup>
<div
v-if=
"share_show"
>
<
!--
<
div
v-if=
"share_show"
>
<share-page
@
backList=
"backList()"
@
closeShare=
"closeShare()"
:contentData=
"contentData"
/>
<share-page
@
backList=
"backList()"
@
closeShare=
"closeShare()"
:contentData=
"contentData"
/>
</div>
</div>
-->
<audio
ref=
"audioDom"
id=
"audioDom"
class=
"audio"
:src=
"audioPoint"
></audio>
<audio
ref=
"audioDom"
id=
"audioDom"
class=
"audio"
:src=
"audioPoint"
></audio>
</div>
</div>
</
template
>
</
template
>
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
this
.
share_show
=
true
;
this
.
share_show
=
true
;
this
.
$route
.
params
.
evaluate
=
0
this
.
$route
.
params
.
evaluate
=
0
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
'/evaluate'
})
this
.
$router
.
push
({
name
:
'evaluate'
,
query
:
res
})
}
}
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
src/main.js
View file @
c4a47598
...
@@ -39,9 +39,9 @@ Vue.config.errorHandler = errorHandler;
...
@@ -39,9 +39,9 @@ Vue.config.errorHandler = errorHandler;
Vue
.
prototype
.
$throw
=
(
error
)
=>
errorHandler
(
error
,
this
);
Vue
.
prototype
.
$throw
=
(
error
)
=>
errorHandler
(
error
,
this
);
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
//VConsole关闭屏蔽代码
//VConsole关闭屏蔽代码
if
(
process
.
env
.
NODE_ENV
!=
'production'
)
{
//
if (process.env.NODE_ENV != 'production') {
new
VConsole
();
//
new VConsole();
}
//
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
next
()
next
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment