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
f6833ac3
Commit
f6833ac3
authored
Sep 17, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
bfc1d5d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
audio.vue
src/components/newLesson/audio.vue
+1
-0
evaluate.vue
src/components/newLesson/evaluate.vue
+15
-15
No files found.
src/components/newLesson/audio.vue
View file @
f6833ac3
...
...
@@ -1437,6 +1437,7 @@
border: 4px solid rgba(255, 255, 255, 1);
img {
width: 100%;
height: 100%;
border-radius: 999 * @toVw;
}
}
...
...
src/components/newLesson/evaluate.vue
View file @
f6833ac3
...
...
@@ -28,7 +28,6 @@
</ul>
<!-- 输入框 -->
<div
class=
"checkbox-put"
>
<!--
<div
contenteditable=
"true"
class=
"checkbox-put-contenteditable"
v-text=
"myHtmlCode"
@
input=
"handleInput"
placeholder=
"点击输入宝贝今天的学习表现、收获…"
></div>
-->
<textarea
placeholder=
"点击输入宝贝今天的学习表现、收获…"
class=
"checkbox-put-contenteditable"
v-model=
"myHtmlCode"
@
change=
"handleInput"
></textarea>
<div
class=
"checkbox-text"
>
*可输入15-100字
</div>
</div>
...
...
@@ -126,14 +125,14 @@
* 提交成长记录
* @returns {Promise.<void>}
*/
async
userCategoryClick
()
{
userCategoryClick
()
{
let
classQuery
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
));
// 获取elementId,category_id,periods_id
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
(
this
.
myHtmlCode
.
length
>
15
&&
this
.
myHtmlCode
.
length
<
100
)
{
// 提交评价页面
const
postUserGrowthAddData
=
await
postUserGrowthAddApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
data
)
postUserGrowthAddApi
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
data
).
then
(
res
=>
{
this
.
subUserLessonFn
(
classQuery
.
elementId
,
classQuery
.
category_id
,
classQuery
.
periods_id
,
7
)
// 删除缓存
localStorage
.
removeItem
(
"cache"
);
...
...
@@ -147,6 +146,7 @@
buttonType
:
'点击'
,
buttonName
:
'提交成长记录加一颗星'
});
})
}
else
{
if
(
this
.
myHtmlCode
.
length
>=
100
)
{
Toast
(
`您多输入了
${
this
.
myHtmlCode
.
length
-
99
}
个字`
);
...
...
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