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
ffca9b40
Commit
ffca9b40
authored
Sep 04, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试提交
parent
f77499fc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
35 deletions
+39
-35
growthRecord.vue
src/components/growthRecord.vue
+3
-0
audio.vue
src/components/newLesson/audio.vue
+13
-13
evaluate.vue
src/components/newLesson/evaluate.vue
+5
-7
star.vue
src/components/newLesson/star.vue
+5
-2
video.vue
src/components/newLesson/video.vue
+13
-13
No files found.
src/components/growthRecord.vue
View file @
ffca9b40
...
...
@@ -112,6 +112,9 @@
mounted
()
{
window
.
addEventListener
(
'scroll'
,
this
.
scrollEvent
,
false
)
this
.
userGrowthRecordList
()
this
.
$nextTick
(()
=>
{
console
.
log
(
document
.
querySelectorAll
(
'.fa-text'
));
})
}
}
</
script
>
...
...
src/components/newLesson/audio.vue
View file @
ffca9b40
...
...
@@ -796,19 +796,19 @@
}
// debugger
});
setTimeout
(()
=>
{
if
(
this
.
$store
.
state
.
lookStatus
==
0
)
{
this
.
audioPoint
=
audioGood
;
}
else
if
(
this
.
$store
.
state
.
lookStatus
==
1
)
{
this
.
audioPoint
=
audioGreat
;
}
else
{
this
.
audioPoint
=
audioPerfect
;
}
this
.
$refs
.
audioDom
.
load
();
setTimeout
(()
=>
{
this
.
$refs
.
audioDom
.
play
();
},
100
);
},
300
);
//
setTimeout(() => {
//
if (this.$store.state.lookStatus == 0) {
//
this.audioPoint = audioGood;
//
} else if (this.$store.state.lookStatus == 1) {
//
this.audioPoint = audioGreat;
//
} else {
//
this.audioPoint = audioPerfect;
//
}
//
this.$refs.audioDom.load();
//
setTimeout(() => {
//
this.$refs.audioDom.play();
//
}, 100);
//
}, 300);
}
});
// this.$refs.sharePage.playAudio()
...
...
src/components/newLesson/evaluate.vue
View file @
ffca9b40
...
...
@@ -96,7 +96,6 @@
},
handleInput
(
e
){
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
))
let
checkboxPutContenteditable
=
document
.
querySelector
(
'.checkbox-put-contenteditable'
);
this
.
cache
=
Object
.
assign
({},
{
imageNum
:
this
.
imageNum
,
imageNum2
:
this
.
imageNum2
,
imageNum3
:
this
.
imageNum3
,
inner
:
this
.
myHtmlCode
,
id
:
classQuery
.
elementId
})
localStorage
.
setItem
(
'cache'
,
JSON
.
stringify
(
this
.
cache
))
},
...
...
@@ -105,16 +104,15 @@
* @returns {Promise.<void>}
*/
async
userCategoryClick
()
{
let
checkboxPutContenteditable
=
document
.
querySelector
(
'.checkbox-put-contenteditable'
);
let
nowTime
=
Date
.
parse
(
new
Date
()),
// 时间
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
)),
// 获取elementId,category_id,periods_id
lessonDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
)),
// 获取延长时间
lookTime
=
(
nowTime
-
lessonDetail
.
nowTime
)
/
1000
,
watchLog
=
{
page_type
:
0
,
page_id
:
7
,
stay_time
:
lookTime
};
let
data
=
{
interest
:
this
.
imageNum
,
concert
:
this
.
imageNum2
,
parent_child
:
this
.
imageNum3
,
growth_record
:
checkboxPutContenteditable
.
innerHTML
}
let
data
=
{
interest
:
this
.
imageNum
,
concert
:
this
.
imageNum2
,
parent_child
:
this
.
imageNum3
,
growth_record
:
this
.
myHtmlCode
}
// 字数限制
if
(
this
.
imageNum
!==
0
&&
this
.
imageNum2
!==
0
&&
this
.
imageNum3
!==
0
)
{
if
(
checkboxPutContenteditable
.
innerHTML
.
length
>
15
&&
checkboxPutContenteditable
.
innerHTML
.
length
<
100
)
{
if
(
this
.
myHtmlCode
.
length
>
15
&&
this
.
myHtmlCode
.
length
<
100
)
{
// 提交评价页面
const
postUserGrowthAddData
=
await
postUserGrowthAddApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
data
)
// 提交看课数据
...
...
@@ -133,9 +131,9 @@
buttonName
:
'提交成长记录加一颗星'
});
}
else
{
if
(
checkboxPutContenteditable
.
innerHTML
.
length
>
100
)
{
Toast
(
`您多输入了
${
checkboxPutContenteditable
.
innerHTML
.
length
-
100
}
个字`
);
}
else
if
(
checkboxPutContenteditable
.
innerHTML
.
length
<
15
){
if
(
this
.
myHtmlCode
.
length
>
100
)
{
Toast
(
`您多输入了
${
this
.
myHtmlCode
.
length
-
100
}
个字`
);
}
else
if
(
this
.
myHtmlCode
.
length
<
15
){
Toast
(
"输入字数不满15个"
);
}
}
...
...
src/components/newLesson/star.vue
View file @
ffca9b40
...
...
@@ -36,6 +36,7 @@
</
template
>
<
script
>
import
{
getUserWatchApi
}
from
"../../service/api"
;
import
star_btn
from
'../../assets/star/star_btn.png'
import
star1
from
'../../assets/star/star1.png'
import
star2
from
'../../assets/star/star2.png'
...
...
@@ -87,7 +88,10 @@
this
.
popupVisible
=
false
;
if
(
this
.
starNum
==
2
){
this
.
sendConsole
(
'分享赚星星'
);
this
.
$emit
(
'showShare'
)
getUserWatchApi
({
category_id
:
this
.
$route
.
query
.
category_id
}).
then
(
res
=>
{
this
.
$router
.
push
({
name
:
'evaluate'
,
query
:
res
})
});
this
.
$router
.
push
({
name
:
'evaluate'
})
}
else
{
this
.
sendConsole
(
'关闭集星'
);
}
...
...
@@ -115,7 +119,6 @@
width: 230*@toVw;
padding:50*@toVw 10*@toVw 10*@toVw 10*@toVw;
position: relative;
// height: 142*@toVw;
.star-all{
width: 154*@toVw;
position: absolute;
...
...
src/components/newLesson/video.vue
View file @
ffca9b40
...
...
@@ -369,19 +369,19 @@
this
.
$router
.
push
({
name
:
'evaluate'
,
query
:
res
})
}
});
setTimeout
(()
=>
{
if
(
this
.
$store
.
state
.
lookStatus
==
0
)
{
this
.
audioPoint
=
audioGood
;
}
else
if
(
this
.
$store
.
state
.
lookStatus
==
1
)
{
this
.
audioPoint
=
audioGreat
;
}
else
{
this
.
audioPoint
=
audioPerfect
;
}
this
.
$refs
.
audioDom
.
load
();
setTimeout
(()
=>
{
this
.
$refs
.
audioDom
.
play
();
},
100
);
},
300
);
//
setTimeout(() => {
//
if (this.$store.state.lookStatus == 0) {
//
this.audioPoint = audioGood;
//
} else if (this.$store.state.lookStatus == 1) {
//
this.audioPoint = audioGreat;
//
} else {
//
this.audioPoint = audioPerfect;
//
}
//
this.$refs.audioDom.load();
//
setTimeout(() => {
//
this.$refs.audioDom.play();
//
}, 100);
//
}, 300);
}
});
},
...
...
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