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
791b4e06
Commit
791b4e06
authored
Sep 16, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式bug
parent
aa54c53a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
8 deletions
+35
-8
index.vue
src/components/map/index.vue
+1
-1
promptTime.vue
src/components/map/promptTime.vue
+27
-3
evaluate.vue
src/components/newLesson/evaluate.vue
+2
-2
index.vue
src/components/newLesson/index.vue
+5
-2
No files found.
src/components/map/index.vue
View file @
791b4e06
...
...
@@ -476,7 +476,7 @@
lessonData
.
classID
=
this
.
classID
;
lessonData
.
nowTime
=
Date
.
parse
(
new
Date
());
lessonData
.
course_title
=
this
.
secActions
.
course_title
console
.
log
(
lessonData
,
8978787
)
localStorage
.
setItem
(
'lessonDetail'
,
JSON
.
stringify
(
lessonData
));
// console.log(query)
// debugger
...
...
src/components/map/promptTime.vue
View file @
791b4e06
...
...
@@ -15,7 +15,7 @@
</div>
<div
class=
"preservation"
@
click=
"preservationClick"
>
保存
</div>
<van-popup
v-model=
"dateShow"
position=
"bottom"
>
<van-datetime-picker
@
confirm=
"dateConfirm"
@
cancel=
"dateConfirmNo"
v-model=
"currentTime"
type=
"time"
/>
<van-datetime-picker
:min-hour=
"minHour"
@
confirm=
"dateConfirm"
@
cancel=
"dateConfirmNo"
v-model=
"currentTime"
type=
"time"
/>
</van-popup>
</div>
</
template
>
...
...
@@ -31,6 +31,7 @@
data
()
{
return
{
currentTime
:
'07:00'
,
minHour
:
6
,
dateVal
:
''
,
dateShow
:
false
,
selectedValue
:
''
,
...
...
@@ -48,12 +49,17 @@
this
.
$nextTick
(()
=>
{
document
.
querySelectorAll
(
'.van-picker-column'
)[
1
].
style
.
display
=
'none'
;
let
oLi
=
document
.
querySelectorAll
(
'.van-picker-column'
)[
0
].
querySelectorAll
(
'li'
);
console
.
log
(
oLi
)
for
(
var
i
=
0
;
i
<
oLi
.
length
;
i
++
)
{
if
(
i
<
6
)
{
// oLi[i].style.display = 'none'
}
oLi
[
i
].
innerText
=
oLi
[
i
].
innerText
+
':00'
}
})
},
dateConfirm
(
val
)
{
console
.
log
(
val
)
this
.
currentTime
=
val
==
'aN:aN'
?
'00:00'
:
val
this
.
contentFn
()
},
...
...
@@ -92,14 +98,32 @@
border-radius: 30 * @toVw 30 * @toVw 0 0;
}
.van-picker__confirm {
color: #333333;
font-size: 15 * @toVw;
margin: 0;
padding-right: 30 * @toVw;
}
.van-picker__frame, .van-picker__loading .van-loading {
height: 54px!important;
}
.van-picker__cancel {
color: #333333;
font-size: 15 * @toVw;
margin: 0;
padding-left: 30 * @toVw;
}
.van-picker-column__item {
color: #666666;
font-size:
20
* @toVw;
font-size:
17
* @toVw;
}
.van-picker-column__item--selected {
color: #40A9FF;
font-size: 2
6
* @toVw;
font-size: 2
1
* @toVw;
}
.prompt-time {
...
...
src/components/newLesson/evaluate.vue
View file @
791b4e06
...
...
@@ -148,9 +148,9 @@
buttonName
:
'提交成长记录加一颗星'
});
}
else
{
if
(
this
.
myHtmlCode
.
length
>
100
)
{
if
(
this
.
myHtmlCode
.
length
>
=
100
)
{
Toast
(
`您多输入了
${
this
.
myHtmlCode
.
length
-
100
}
个字`
);
}
else
if
(
this
.
myHtmlCode
.
length
<
15
){
}
else
if
(
this
.
myHtmlCode
.
length
<
=
15
){
Toast
(
"输入字数不满15个"
);
}
}
...
...
src/components/newLesson/index.vue
View file @
791b4e06
...
...
@@ -16,7 +16,7 @@
<img
:src=
"HP.play2"
alt
/>
</i>
<i
:class=
"
{headerHP:true, defaultFun:nowShow !== 3,funHP:nowShow===3}" @click="type=3">
<img
:src=
"HP.listen1"
alt
/>
<img
:src=
"HP.listen1"
alt
/>
z
</i>
ƒ
<i
class=
"headerHP home"
@
click=
"backList"
>
<img
:src=
"HP.back"
alt
/>
...
...
@@ -247,10 +247,12 @@
let
lessonDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
));
let
nowTime
=
Date
.
parse
(
new
Date
());
let
lookTime
=
(
nowTime
-
lessonDetail
.
nowTime
)
/
1000
;
console
.
log
(
nowTime
/
1000
-
lessonDetail
.
nowTime
/
1000
)
console
.
log
(
lookTime
)
let
json
=
{
page_type
:
0
,
page_id
:
this
.
page_id
,
stay_time
:
lookTime
stay_time
:
nowTime
/
1000
-
lessonDetail
.
nowTime
/
1000
};
subUserLessonApi
(
this
.
elementId
,
...
...
@@ -474,6 +476,7 @@
json
).
then
(
res
=>
{
// console.log(493,res)
console
.
log
(
res
)
lessonDetail
.
total_watch_time
=
res
.
total_watch_time
;
lessonDetail
.
nowTime
=
nowTime
;
lessonDetail
.
star_num
=
res
.
total_star_num
;
...
...
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