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
61db143c
Commit
61db143c
authored
May 06, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
axb隐藏改为可配置
parent
a041c94c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
38 deletions
+50
-38
config.gradle
config.gradle
+3
-3
AudioHomeActivity.kt
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
+44
-34
IntentConstants.java
m-audioim/src/main/java/com/ydl/audioim/IntentConstants.java
+1
-0
audioim_activity_audio_home.xml
m-audioim/src/main/res/layout/audioim_activity_audio_home.xml
+1
-1
ConfideConnectResponse.kt
m-confide/src/main/java/com/ydl/confide/home/bean/ConfideConnectResponse.kt
+1
-0
No files found.
config.gradle
View file @
61db143c
...
@@ -42,7 +42,7 @@ ext {
...
@@ -42,7 +42,7 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.3
5
"
,
"m-confide"
:
"0.0.48.3
6
"
,
"m-consultant"
:
"0.0.59.15"
,
"m-consultant"
:
"0.0.59.15"
,
"m-fm"
:
"0.0.29.3"
,
"m-fm"
:
"0.0.29.3"
,
"m-user"
:
"0.0.60.3"
,
"m-user"
:
"0.0.60.3"
,
...
@@ -75,7 +75,7 @@ ext {
...
@@ -75,7 +75,7 @@ ext {
"ydl-webview"
:
"0.0.38.29"
,
"ydl-webview"
:
"0.0.38.29"
,
"ydl-media"
:
"0.0.20"
,
"ydl-media"
:
"0.0.20"
,
"ydl-pay"
:
"0.0.17"
,
"ydl-pay"
:
"0.0.17"
,
"m-audioim"
:
"0.0.49.1
5
"
,
"m-audioim"
:
"0.0.49.1
7
"
,
"ydl-flutter-base"
:
"0.0.14.12"
,
"ydl-flutter-base"
:
"0.0.14.12"
,
//以下 几乎不会动
//以下 几乎不会动
...
@@ -121,7 +121,7 @@ ext {
...
@@ -121,7 +121,7 @@ ext {
"ydl-webview"
:
"0.0.38.29"
,
"ydl-webview"
:
"0.0.38.29"
,
"ydl-media"
:
"0.0.20"
,
"ydl-media"
:
"0.0.20"
,
"ydl-pay"
:
"0.0.17"
,
"ydl-pay"
:
"0.0.17"
,
"m-audioim"
:
"0.0.49.1
5
"
,
"m-audioim"
:
"0.0.49.1
7
"
,
"ydl-flutter-base"
:
"0.0.10.9"
,
"ydl-flutter-base"
:
"0.0.10.9"
,
//以下 几乎不会动
//以下 几乎不会动
...
...
m-audioim/src/main/java/com/ydl/audioim/AudioHomeActivity.kt
View file @
61db143c
...
@@ -34,6 +34,7 @@ import com.ydl.audioim.player.AudioPlayer
...
@@ -34,6 +34,7 @@ import com.ydl.audioim.player.AudioPlayer
import
com.ydl.audioim.presenter.AudioHomePresenterImpl
import
com.ydl.audioim.presenter.AudioHomePresenterImpl
import
com.ydl.audioim.utils.AudioLogUtils
import
com.ydl.audioim.utils.AudioLogUtils
import
com.ydl.audioim.utils.DateUtils
import
com.ydl.audioim.utils.DateUtils
import
com.ydl.audioim.widget.AxbConfirmDialog
import
com.ydl.webview.H5Params
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.NewH5Activity
import
com.ydl.webview.RefreshWebEvent
import
com.ydl.webview.RefreshWebEvent
...
@@ -161,6 +162,7 @@ class AudioHomeActivity :
...
@@ -161,6 +162,7 @@ class AudioHomeActivity :
private
var
mPlayer
:
AudioPlayer
?
=
null
private
var
mPlayer
:
AudioPlayer
?
=
null
private
var
vibrator
:
Vibrator
?
=
null
private
var
vibrator
:
Vibrator
?
=
null
private
var
handler
:
Handler
?
=
null
private
var
handler
:
Handler
?
=
null
private
var
isShowAxb
=
true
//声网
//声网
private
var
voiceManage
:
YDLVoiceManager
?
=
null
private
var
voiceManage
:
YDLVoiceManager
?
=
null
...
@@ -392,6 +394,7 @@ class AudioHomeActivity :
...
@@ -392,6 +394,7 @@ class AudioHomeActivity :
listenerUid
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTENER_UID
)
listenerUid
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTENER_UID
)
listenId
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTEN_ID
)
listenId
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_LISTEN_ID
)
commentUrl
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_COMMENT_URL
)
commentUrl
=
intent
.
getStringExtra
(
IntentConstants
.
INTENT_COMMENT_URL
)
isShowAxb
=
intent
.
getBooleanExtra
(
IntentConstants
.
INTENT_ISSHOWAXB
,
true
)
val
logBean
=
AgoraLogInfoBean
(
val
logBean
=
AgoraLogInfoBean
(
expertHeadUrl
,
expertHeadUrl
,
...
@@ -448,11 +451,16 @@ class AudioHomeActivity :
...
@@ -448,11 +451,16 @@ class AudioHomeActivity :
option
.
transform
=
0
option
.
transform
=
0
YDLImageCacheManager
.
showImage
(
this
,
expertHeadUrl
,
iv_head
,
option
)
YDLImageCacheManager
.
showImage
(
this
,
expertHeadUrl
,
iv_head
,
option
)
}
}
if
(!
isShowAxb
)
{
tv_change_route
.
visibility
=
View
.
GONE
}
}
}
private
fun
setClickEvent
()
{
private
fun
setClickEvent
()
{
//切换线路 隐藏掉切换线路弹窗
//切换线路 隐藏掉切换线路弹窗
//
tv_change_route.setOnClickListener { showChooseDialog(1) }
tv_change_route
.
setOnClickListener
{
showChooseDialog
(
1
)
}
//挂断
//挂断
iv_hang_up
.
setOnClickListener
{
iv_hang_up
.
setOnClickListener
{
if
(
Utils
.
isFastClick
())
{
if
(
Utils
.
isFastClick
())
{
...
@@ -583,9 +591,7 @@ class AudioHomeActivity :
...
@@ -583,9 +591,7 @@ class AudioHomeActivity :
})
})
//通话结束或挂断时,上传日志文件
//通话结束或挂断时,上传日志文件
uploadLog
()
uploadLog
()
showToast
(
"对方手机暂时不在身边,请稍后再试"
)
showChooseDialog
(
2
)
userCloseCalling
()
// showChooseDialog(2)
}
}
}
}
...
@@ -684,26 +690,25 @@ class AudioHomeActivity :
...
@@ -684,26 +690,25 @@ class AudioHomeActivity :
/**
/**
* 线路选择弹窗
* 线路选择弹窗
* 隐藏切换axb弹窗,李云要求的
*/
*/
//
private fun showChooseDialog(type: Int) {
private
fun
showChooseDialog
(
type
:
Int
)
{
//
//
val dialog =
val
dialog
=
//
AxbConfirmDialog(mContext, type, object : AxbConfirmDialog.OnClickEnsureListener {
AxbConfirmDialog
(
mContext
,
type
,
object
:
AxbConfirmDialog
.
OnClickEnsureListener
{
//
override fun onClickEnsure() {
override
fun
onClickEnsure
()
{
//
switchAXB()
switchAXB
()
//
}
}
//
//
override fun onClose() {
override
fun
onClose
()
{
//
// 如果声网未连接成功,切换axb的弹框是自动弹出的,当关闭弹框的时候,执行用户挂断操作
// 如果声网未连接成功,切换axb的弹框是自动弹出的,当关闭弹框的时候,执行用户挂断操作
//
// 如果声网连接成功,点击右上角按钮弹出切换axb弹框,但是关闭时用户不执行挂断操作
// 如果声网连接成功,点击右上角按钮弹出切换axb弹框,但是关闭时用户不执行挂断操作
//
if (!isConnectSuccess) {
if
(!
isConnectSuccess
)
{
//
userCloseCalling()
userCloseCalling
()
//
}
}
//
}
}
//
})
})
//
dialog.show()
dialog
.
show
()
//
}
}
/**
/**
* 切换成axb路线请求
* 切换成axb路线请求
...
@@ -773,19 +778,24 @@ class AudioHomeActivity :
...
@@ -773,19 +778,24 @@ class AudioHomeActivity :
if
(!
isConnectSuccess
)
{
if
(!
isConnectSuccess
)
{
//页面等待文案调整
//页面等待文案调整
tv_waiting
.
visibility
=
View
.
GONE
tv_waiting
.
visibility
=
View
.
GONE
//
tv_change_doctor.text = "对方暂无应答,正在为您切换线路重播"
tv_change_doctor
.
text
=
"对方暂无应答,正在为您切换线路重播"
//
tv_change_doctor.visibility = View.VISIBLE
tv_change_doctor
.
visibility
=
View
.
VISIBLE
}
}
//切换线路按钮可见,隐藏掉,临时发布版本,李云说的
// tv_change_route.isEnabled = true
// tv_change_route.setTextColor(ContextCompat.getColor(this, R.color.platform_white))
if
(!
isShowAxb
)
{
// tv_change_route.setCompoundDrawablesWithIntrinsicBounds(
tv_change_route
.
visibility
=
View
.
GONE
// null,
}
else
{
// null,
//切换线路按钮可见
// ContextCompat.getDrawable(this, R.drawable.audioim_img_choose_arrow),
tv_change_route
.
isEnabled
=
true
// null
// )
tv_change_route
.
setTextColor
(
ContextCompat
.
getColor
(
this
,
R
.
color
.
platform_white
))
tv_change_route
.
setCompoundDrawablesWithIntrinsicBounds
(
null
,
null
,
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
audioim_img_choose_arrow
),
null
)
}
}
}
...
...
m-audioim/src/main/java/com/ydl/audioim/IntentConstants.java
View file @
61db143c
...
@@ -21,4 +21,5 @@ public interface IntentConstants {
...
@@ -21,4 +21,5 @@ public interface IntentConstants {
String
INTENT_TOTAL_DURATION
=
"intent_total_duration"
;
String
INTENT_TOTAL_DURATION
=
"intent_total_duration"
;
String
INTENT_LISTEN_ID
=
"intent_listen_id"
;
String
INTENT_LISTEN_ID
=
"intent_listen_id"
;
String
INTENT_COMMENT_URL
=
"intent_comment_url"
;
String
INTENT_COMMENT_URL
=
"intent_comment_url"
;
String
INTENT_ISSHOWAXB
=
"intent_isshowaxb"
;
}
}
m-audioim/src/main/res/layout/audioim_activity_audio_home.xml
View file @
61db143c
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
android:text=
"切换至传统电话"
android:text=
"切换至传统电话"
android:textColor=
"@color/platform_color_50FFFFFF"
android:textColor=
"@color/platform_color_50FFFFFF"
android:textSize=
"13sp"
android:textSize=
"13sp"
android:visibility=
"
gon
e"
/>
android:visibility=
"
visibl
e"
/>
<RelativeLayout
<RelativeLayout
...
...
m-confide/src/main/java/com/ydl/confide/home/bean/ConfideConnectResponse.kt
View file @
61db143c
...
@@ -16,6 +16,7 @@ class ConfideConnectResponse{
...
@@ -16,6 +16,7 @@ class ConfideConnectResponse{
var
listenOrderPrice
:
Double
?
=
null
//订单金额
var
listenOrderPrice
:
Double
?
=
null
//订单金额
var
userBaseInfoRespDto
:
UserBaseInfoRespDto
?=
null
var
userBaseInfoRespDto
:
UserBaseInfoRespDto
?=
null
var
coupon
:
CouponData
?
=
null
//优惠信息
var
coupon
:
CouponData
?
=
null
//优惠信息
var
isShowAxb
=
true
}
}
class
DialDetail
{
class
DialDetail
{
...
...
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