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
e1b545dc
Commit
e1b545dc
authored
Apr 02, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:信息收集卡跳转
parent
c4fc8506
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
72 deletions
+77
-72
config.gradle
config.gradle
+2
-2
CmsExamQuestionPaperActivity.kt
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
+75
-70
No files found.
config.gradle
View file @
e1b545dc
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.84"
,
"m-im"
:
"0.0.21.1
5
"
,
"m-im"
:
"0.0.21.1
6
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.07"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.84"
,
"m-im"
:
"0.0.21.1
5
"
,
"m-im"
:
"0.0.21.1
6
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
View file @
e1b545dc
...
...
@@ -348,8 +348,7 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
else
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
""
)
}
//最后一题答玩展示立即前往按钮,隐藏跳过按钮
tv_finish
.
visibility
=
View
.
VISIBLE
tv_skip
.
visibility
=
View
.
GONE
mackType2
(
lastAnswer
,
""
)
setFirstAndLatQuestion
(
mQuestionBean
!!
.
questions
[
2
].
question
)
...
...
@@ -359,6 +358,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
mData
.
forEachIndexed
{
index
,
_
->
mData
[
index
].
type5CanClick
=
false
}
//最后一题答玩展示立即前往按钮,隐藏跳过按钮
// tv_finish.visibility = View.VISIBLE
skipToIm
()
//最后一题答完直接进入私聊页面。
}
/**
...
...
@@ -432,7 +434,8 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
else
{
//没有下一题了,跳转按钮展示
setFirstAndLatQuestion
(
mQuestionBean
!!
.
questions
[
2
].
question
)
tv_finish
.
visibility
=
View
.
VISIBLE
// tv_finish.visibility = View.VISIBLE
skipToIm
()
tv_skip
.
visibility
=
View
.
GONE
}
mQuestionAdapter
.
notifyDataSetChanged
()
...
...
@@ -756,88 +759,90 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
@SuppressLint
(
"CheckResult"
)
private
fun
skipToIm
()
{
showProgressDialog
()
SharedPreferencesEditor
.
putString
(
"skip_time_"
,
System
.
currentTimeMillis
().
toString
())
recycle
.
postDelayed
(
Runnable
{
SharedPreferencesEditor
.
putString
(
"skip_time_"
,
System
.
currentTimeMillis
().
toString
())
if
(
toUid
!=
null
)
{
//代表是聊天列表进来的
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType70RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
Handler
().
postDelayed
({
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType71RequestList
))
if
(
toUid
!=
null
)
{
//代表是聊天列表进来的
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType70RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
},
100L
)
Handler
().
postDelayed
({
IMChatUtil
.
startChatSessionByCms
(
toUid
!!
,
expertInfo
,
isFromQingShu
,
this
@CmsExamQuestionPaperActivity
)
},
200L
)
Handler
().
postDelayed
({
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType71RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
},
100L
)
Handler
().
postDelayed
({
finish
()
},
1000L
)
}
else
{
//代表是导医进来的 导医进来的需要获取导医后再发送消息
var
questionPaperId
=
""
mQuestionBean
?.
questionPaper
?.
id
?.
let
{
questionPaperId
=
it
}
ImRetrofitApi
.
getImJavaApi
()
.
getConsultAssistantUidRequest
(
location
,
ffrom2
,
answerQuestionId
,
questionPaperId
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
uidBean
->
if
(
uidBean
.
code
==
"200"
&&
uidBean
.
data
!=
0
.
toLong
())
{
mType70RequestList
.
forEachIndexed
{
index
,
answerQuestionType70RequestBean
->
mType70RequestList
[
index
].
toUid
=
uidBean
.
data
.
toString
()
}
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType70RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
Handler
().
postDelayed
({
IMChatUtil
.
startChatSessionByCms
(
toUid
!!
,
expertInfo
,
isFromQingShu
,
this
@CmsExamQuestionPaperActivity
)
},
200L
)
mType71RequestList
.
forEachIndexed
{
index
,
answerQuestionType71RequestBean
->
mType71RequestList
[
index
].
toUid
=
uidBean
.
data
.
toString
()
}
Handler
().
postDelayed
({
finish
()
},
1000L
)
}
else
{
//代表是导医进来的 导医进来的需要获取导医后再发送消息
var
questionPaperId
=
""
mQuestionBean
?.
questionPaper
?.
id
?.
let
{
questionPaperId
=
it
}
Handler
().
postDelayed
({
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType71RequestList
))
ImRetrofitApi
.
getImJavaApi
()
.
getConsultAssistantUidRequest
(
location
,
ffrom2
,
answerQuestionId
,
questionPaperId
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
uidBean
->
if
(
uidBean
.
code
==
"200"
&&
uidBean
.
data
!=
0
.
toLong
())
{
mType70RequestList
.
forEachIndexed
{
index
,
answerQuestionType70RequestBean
->
mType70RequestList
[
index
].
toUid
=
uidBean
.
data
.
toString
()
}
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType70RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
},
100L
)
Handler
().
postDelayed
({
IMChatUtil
.
startChat
(
this
@CmsExamQuestionPaperActivity
,
uidBean
.
data
.
toString
(),
0
)
},
200L
)
Handler
().
postDelayed
({
finish
()
},
1000L
)
}
else
{
mType71RequestList
.
forEachIndexed
{
index
,
answerQuestionType71RequestBean
->
mType71RequestList
[
index
].
toUid
=
uidBean
.
data
.
toString
()
}
Handler
().
postDelayed
({
instance
.
batchSendCustomizeMessage
(
JSON
.
toJSONString
(
mType71RequestList
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
.
subscribe
()
},
100L
)
Handler
().
postDelayed
({
IMChatUtil
.
startChat
(
this
@CmsExamQuestionPaperActivity
,
uidBean
.
data
.
toString
(),
0
)
},
200L
)
Handler
().
postDelayed
({
finish
()
},
1000L
)
}
else
{
dismissProgressDialog
()
ToastUtil
.
toastShort
(
"咨询助理忙碌中,请稍后再试"
)
}
},
{
dismissProgressDialog
()
ToastUtil
.
toastShort
(
"咨询助理忙碌中,请稍后再试"
)
}
},
{
dismissProgressDialog
()
ToastUtil
.
toastShort
(
"咨询助理忙碌中,请稍后再试"
)
})
})
}
},
2000
)
}
}
/**
...
...
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