Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
d61e9bb2
Commit
d61e9bb2
authored
Mar 20, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 前置信息收集最后欧一题时隐藏跳过入口
parent
06ea24d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
20 deletions
+34
-20
CmsExamQuestionPaperActivity.kt
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
+34
-20
No files found.
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
View file @
d61e9bb2
...
...
@@ -216,29 +216,11 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
ActionCountUtils
.
count
(
"daoyi_consult_assess_page|go_communication_click"
)
skipToIm
()
}
//发送按钮
tv_send
.
setOnClickListener
{
if
(
noMore
)
{
//最后一题 点击发送
lastAnswer
=
et_input_problem
.
text
.
toString
()
if
(
mType71RequestList
.
size
>
0
)
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
mType71RequestList
[
0
].
data
.
cateId
)
}
else
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
""
)
}
tv_finish
.
visibility
=
View
.
VISIBLE
mackType2
(
lastAnswer
,
""
)
setFirstAndLatQuestion
(
mQuestionBean
!!
.
questions
[
2
].
question
)
//滑动到底部
recycle
.
scrollToPosition
(
mData
.
size
-
1
)
mData
.
forEachIndexed
{
index
,
_
->
mData
[
index
].
type5CanClick
=
false
}
lastAnswerSend
()
}
else
{
//答题过程中点击 其他的弹窗
...
...
@@ -251,6 +233,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
hideInputAndKeyboark
()
}
//当前问题
tv_cur_problem
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
...
...
@@ -260,6 +243,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
//持续时间
tv_duration
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
...
...
@@ -269,6 +253,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
//问题影响
tv_problem_impact
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
...
...
@@ -278,6 +263,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
//请简单描述遇到的问题 输入框
et_input_problem
.
addTextChangedListener
(
object
:
TextWatcher
{
override
fun
afterTextChanged
(
p0
:
Editable
?)
{
// 动态监听输入行数大于等于4行,滚动列表到底部
...
...
@@ -331,7 +317,35 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
}
}
/**
* 最后一题
* */
private
fun
lastAnswerSend
()
{
lastAnswer
=
et_input_problem
.
text
.
toString
()
if
(
mType71RequestList
.
size
>
0
)
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
mType71RequestList
[
0
].
data
.
cateId
)
}
else
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
""
)
}
//最后一题答玩展示立即前往按钮,隐藏跳过按钮
tv_finish
.
visibility
=
View
.
VISIBLE
tv_skip
.
visibility
=
View
.
GONE
mackType2
(
lastAnswer
,
""
)
setFirstAndLatQuestion
(
mQuestionBean
!!
.
questions
[
2
].
question
)
//滑动到底部
recycle
.
scrollToPosition
(
mData
.
size
-
1
)
mData
.
forEachIndexed
{
index
,
_
->
mData
[
index
].
type5CanClick
=
false
}
}
/**
* 隐藏输入框
* */
private
fun
hideInputAndKeyboark
()
{
et_input_problem
.
setText
(
""
)
hideInputMethod
(
et_input_problem
)
...
...
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