Commit d55dcd92 authored by yun's avatar yun

回复试验

parent 68a26e74
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
this.removeDiscuss(this.optionIndex) this.removeDiscuss(this.optionIndex)
} else { } else {
this.optionShow = false this.optionShow = false
// document.getElementById('discussInput').focus() document.getElementById('discussInput').focus()
setTimeout(() => { setTimeout(() => {
this.ReplyShow(this.optionIndex, this.currentDiscuss.studentName) this.ReplyShow(this.optionIndex, this.currentDiscuss.studentName)
}, 500) }, 500)
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
this.optionShow = false this.optionShow = false
this.removeThisRepply() this.removeThisRepply()
} else if (item.name === '回复') { } else if (item.name === '回复') {
// document.getElementById('discussInput').focus() document.getElementById('discussInput').focus()
this.optionShow = false this.optionShow = false
setTimeout(() => { setTimeout(() => {
this.sendReplyEmit() this.sendReplyEmit()
......
...@@ -79,14 +79,17 @@ ...@@ -79,14 +79,17 @@
> >
<!-- {{ item ==='评论' ? item +'(' + (discussLen > 999 ? '999+' : discussLen) + ')': item }} --> <!-- {{ item ==='评论' ? item +'(' + (discussLen > 999 ? '999+' : discussLen) + ')': item }} -->
<div style="height: 100%;position: relative;white-space: nowrap"> <div style="height: 100%;position: relative;white-space: nowrap">
{{item}} {{ item }}
<span v-if="item === '评论'" class="count"> <span
v-if="item === '评论'"
class="count"
>
{{ item ==='评论' ? (discussLen === 0 ? '' : (discussLen > 999 ? '999+' : discussLen)) : '' }} {{ item ==='评论' ? (discussLen === 0 ? '' : (discussLen > 999 ? '999+' : discussLen)) : '' }}
</span> </span>
<div <div
v-show="currentTag === item" v-show="currentTag === item"
class="bottom_line" class="bottom_line"
></div> />
</div> </div>
</li> </li>
</div> </div>
...@@ -104,7 +107,10 @@ ...@@ -104,7 +107,10 @@
<p class="title"> <p class="title">
培训介绍 培训介绍
</p> </p>
<div class="attr" style="color: #333333;"> <div
class="attr"
style="color: #333333;"
>
{{ (!courseInfo.courseDescription || courseInfo.courseDescription === '' || courseInfo.courseDescription === undefined) ? '-暂无内容-' : courseInfo.courseDescription }} {{ (!courseInfo.courseDescription || courseInfo.courseDescription === '' || courseInfo.courseDescription === undefined) ? '-暂无内容-' : courseInfo.courseDescription }}
</div> </div>
<div class="attr"> <div class="attr">
...@@ -123,7 +129,7 @@ ...@@ -123,7 +129,7 @@
:key="key" :key="key"
class="item_left" class="item_left"
> >
<span style="font-size: 12px;text-align: center;position: relative;top: -1px;">{{key===0?'':'|'}}</span>&nbsp;{{ item.lname }} <span style="font-size: 12px;text-align: center;position: relative;top: -1px;">{{ key===0?'':'|' }}</span>&nbsp;{{ item.lname }}
</em> </em>
</div> </div>
</div> </div>
...@@ -196,12 +202,18 @@ ...@@ -196,12 +202,18 @@
class="person" class="person"
v-if="currentTag == tags[1]" v-if="currentTag == tags[1]"
> >
<div class="panel" :style="{'padding-bottom': learnAllCount==0?'15px': '0px'}"> <div
class="panel"
:style="{'padding-bottom': learnAllCount==0?'15px': '0px'}"
>
<p class="title"> <p class="title">
已报名 已报名
<span class="num">{{ learnAllCount }}人</span> <span class="num">{{ learnAllCount }}人</span>
</p> </p>
<div class="person-detail" v-show="enrolment.length!=0"> <div
class="person-detail"
v-show="enrolment.length!=0"
>
<div <div
class="person-head" class="person-head"
:isTagCoverEnrolment="isTagCoverEnrolment" :isTagCoverEnrolment="isTagCoverEnrolment"
...@@ -242,12 +254,12 @@ ...@@ -242,12 +254,12 @@
v-if="isTagCoverEnrolment === false" v-if="isTagCoverEnrolment === false"
name="ellipsis" name="ellipsis"
/> />
<!-- <span v-if="isTagCoverEnrolment === false" class="three_porint">...</span>--> <!-- <span v-if="isTagCoverEnrolment === false" class="three_porint">...</span>-->
<!-- <van-icon--> <!-- <van-icon-->
<!-- style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"--> <!-- style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"-->
<!-- v-if="isTagCoverEnrolment === true"--> <!-- v-if="isTagCoverEnrolment === true"-->
<!-- name="arrow-up"--> <!-- name="arrow-up"-->
<!-- />--> <!-- />-->
<!-- <van-icon <!-- <van-icon
style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none" style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"
v-if="isTagCoverEnrolment === false" v-if="isTagCoverEnrolment === false"
...@@ -299,7 +311,7 @@ ...@@ -299,7 +311,7 @@
v-if="isTagCoverEnrolment === false" v-if="isTagCoverEnrolment === false"
name="arrow-down" name="arrow-down"
/>--> />-->
<!-- <span class="three_porint">...</span>--> <!-- <span class="three_porint">...</span>-->
</button> </button>
<!-- <span <!-- <span
style="font-size: 14px;font-weight: bold;margin-left: 8px;" style="font-size: 14px;font-weight: bold;margin-left: 8px;"
...@@ -309,12 +321,18 @@ ...@@ -309,12 +321,18 @@
</div> </div>
</div> </div>
</div> </div>
<div class="panel bottom" :style="{'padding-bottom': finishCount==0?'15px': '0px'}"> <div
class="panel bottom"
:style="{'padding-bottom': finishCount==0?'15px': '0px'}"
>
<p class="title"> <p class="title">
已到场 已到场
<span class="num">{{ finishCount }}人</span> <span class="num">{{ finishCount }}人</span>
</p> </p>
<div class="person-detail" v-show="arrived.length!=0"> <div
class="person-detail"
v-show="arrived.length!=0"
>
<div <div
class="person-head" class="person-head"
:isTagCoverArrived="isTagCoverArrived" :isTagCoverArrived="isTagCoverArrived"
...@@ -349,11 +367,11 @@ ...@@ -349,11 +367,11 @@
@click="isTagCoverArrived = !isTagCoverArrived" @click="isTagCoverArrived = !isTagCoverArrived"
style="width:12vw;height:12vw;margin-top: 1.19vw;margin-left: 2vw;border-radius: 30px 30px 30px 30px;border: white;position: relative;background-color: #f3f3f3" style="width:12vw;height:12vw;margin-top: 1.19vw;margin-left: 2vw;border-radius: 30px 30px 30px 30px;border: white;position: relative;background-color: #f3f3f3"
> >
<!-- <van-icon--> <!-- <van-icon-->
<!-- style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"--> <!-- style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"-->
<!-- v-if="isTagCoverArrived === true"--> <!-- v-if="isTagCoverArrived === true"-->
<!-- name="arrow-up"--> <!-- name="arrow-up"-->
<!-- />--> <!-- />-->
<!--<van-icon <!--<van-icon
style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none" style="position:absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);-webkit-appearance:none"
v-if="isTagCoverArrived === false" v-if="isTagCoverArrived === false"
...@@ -364,8 +382,7 @@ ...@@ -364,8 +382,7 @@
v-if="isTagCoverArrived === false" v-if="isTagCoverArrived === false"
name="ellipsis" name="ellipsis"
/> />
<!-- <span v-if="isTagCoverArrived === false" class="three_porint">...</span>--> <!-- <span v-if="isTagCoverArrived === false" class="three_porint">...</span>-->
</button> </button>
<!-- <span <!-- <span
style="font-size: 14px;font-weight: bold;margin-left: 8px;" style="font-size: 14px;font-weight: bold;margin-left: 8px;"
...@@ -417,8 +434,7 @@ ...@@ -417,8 +434,7 @@
v-if="isTagCoverArrived === false" v-if="isTagCoverArrived === false"
name="arrow-down" name="arrow-down"
/>--> />-->
<!-- <span class="three_porint">...</span>--> <!-- <span class="three_porint">...</span>-->
</button> </button>
<!--<span <!--<span
style="font-size: 14px;font-weight: bold;margin-left: 8px;" style="font-size: 14px;font-weight: bold;margin-left: 8px;"
...@@ -428,12 +444,18 @@ ...@@ -428,12 +444,18 @@
</div> </div>
</div> </div>
</div> </div>
<div class="panel bottom" :style="{'padding-bottom': notFinishCount==0?'15px': '0px'}"> <div
class="panel bottom"
:style="{'padding-bottom': notFinishCount==0?'15px': '0px'}"
>
<p class="title"> <p class="title">
未到场 未到场
<span class="num">{{ notFinishCount }}人</span> <span class="num">{{ notFinishCount }}人</span>
</p> </p>
<div class="person-detail" v-show="absent.length!=0"> <div
class="person-detail"
v-show="absent.length!=0"
>
<div <div
class="person-head" class="person-head"
:isTagCoverAbsent="isTagCoverAbsent" :isTagCoverAbsent="isTagCoverAbsent"
...@@ -483,8 +505,7 @@ ...@@ -483,8 +505,7 @@
v-if="isTagCoverAbsent === false" v-if="isTagCoverAbsent === false"
name="ellipsis" name="ellipsis"
/> />
<!-- <span v-if="isTagCoverAbsent === false" class="three_porint">...</span>--> <!-- <span v-if="isTagCoverAbsent === false" class="three_porint">...</span>-->
</button> </button>
<!--<span <!--<span
style="font-size: 14px;font-weight: bold;margin-left: 8px;" style="font-size: 14px;font-weight: bold;margin-left: 8px;"
...@@ -536,8 +557,7 @@ ...@@ -536,8 +557,7 @@
v-if="isTagCoverAbsent === false" v-if="isTagCoverAbsent === false"
name="arrow-down" name="arrow-down"
/>--> />-->
<!-- <span class="three_porint">...</span>--> <!-- <span class="three_porint">...</span>-->
</button> </button>
<!--<span <!--<span
style="font-size: 14px;font-weight: bold;margin-left: 8px;" style="font-size: 14px;font-weight: bold;margin-left: 8px;"
...@@ -641,7 +661,7 @@ ...@@ -641,7 +661,7 @@
:start-page="1" :start-page="1"
@loaded="onPdfLoaded" @loaded="onPdfLoaded"
v-if="previewType === 'pdf'" v-if="previewType === 'pdf'"
:showPage = "100" :show-page="100"
:pdf-src="priviewPicture" :pdf-src="priviewPicture"
:show-loading="false" :show-loading="false"
/> />
...@@ -661,7 +681,7 @@ ...@@ -661,7 +681,7 @@
@blur="nextTime" @blur="nextTime"
style="position: fixed;width: 1px;height: 1px;z-index: -1;" style="position: fixed;width: 1px;height: 1px;z-index: -1;"
v-if="currentTag == tags[2]" v-if="currentTag == tags[2]"
/> >
<div <div
v-if="currentTag == tags[2]" v-if="currentTag == tags[2]"
class="inputPL" class="inputPL"
...@@ -1138,18 +1158,18 @@ export default { ...@@ -1138,18 +1158,18 @@ export default {
}, },
// 回复点击 // 回复点击
textareaHeightBiggerRe(type, replyName) { textareaHeightBiggerRe(type, replyName) {
const input = document.getElementById('discussInput'), /* const input = document.getElementById('discussInput'),
focusBtn = document.getElementById('btnFocus2') focusBtn = document.getElementById('btnFocus2')*/
if (this.saveReplyName !== replyName) { if (this.saveReplyName !== replyName) {
this.commentContent = '' this.commentContent = ''
this.saveReplyName = replyName this.saveReplyName = replyName
} }
this.discussType = type this.discussType = type
this.discussPlaceHloder = '回复@' + replyName this.discussPlaceHloder = '回复@' + replyName
focusBtn.addEventListener('click', function() { /* focusBtn.addEventListener('click', function() {
input.focus() input.focus()
}) })
focusBtn.click() focusBtn.click() */
}, },
textareaHeightSmaller() { textareaHeightSmaller() {
if (this.commentContent.trim() === '') { if (this.commentContent.trim() === '') {
......
...@@ -1619,6 +1619,7 @@ export default { ...@@ -1619,6 +1619,7 @@ export default {
} }
.cancel{ .cancel{
margin-top: 8px; margin-top: 8px;
border-bottom: 0px solid #e7e7e7;
} }
} }
*::-webkit-scrollbar{ *::-webkit-scrollbar{
......
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