Commit f6833ac3 authored by IvyXia123's avatar IvyXia123

提交

parent bfc1d5d9
......@@ -1437,6 +1437,7 @@
border: 4px solid rgba(255, 255, 255, 1);
img {
width: 100%;
height: 100%;
border-radius: 999 * @toVw;
}
}
......
......@@ -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 }个字`);
......
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