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
9ed3a651
Commit
9ed3a651
authored
Feb 15, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 用户端聊天窗口,预约绑定手机号
parent
4af7a839
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
14 deletions
+42
-14
config.gradle
config.gradle
+2
-2
ExpertConsultServiceItemView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
+40
-12
No files found.
config.gradle
View file @
9ed3a651
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.93"
,
"m-home"
:
"0.0.22.84"
,
"m-im"
:
"0.0.20.
89
"
,
"m-im"
:
"0.0.20.
90
"
,
"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.93"
,
"m-home"
:
"0.0.22.83"
,
"m-im"
:
"0.0.20.
89
"
,
"m-im"
:
"0.0.20.
90
"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
View file @
9ed3a651
package
com.yidianling.uikit.custom.widget.expertConsultService.view
import
android.annotation.SuppressLint
import
android.app.Activity
import
android.content.Context
import
android.view.View
import
android.widget.LinearLayout
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.config.HttpConfig
import
com.yidianling.avchatkit.common.log.LogUtil
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.view.dialog.CommonDialog
import
com.yidianling.im.R
import
com.yidianling.im.config.constants.ImConstants
import
com.yidianling.im.router.ImIn
import
com.yidianling.uikit.custom.http.response.ServiceItemBean
import
com.yidianling.uikit.custom.widget.expertConsultService.callback.ConsultServiceViewCallback
import
com.yidianling.user.api.service.IUserService
import
kotlinx.android.synthetic.main.im_expert_consult_service_item_view.view.*
class
ExpertConsultServiceItemView
:
LinearLayout
{
constructor
(
context
:
Context
,
listener
:
ConsultServiceViewCallback
?,
isBusy
:
Boolean
)
:
super
(
context
)
{
constructor
(
context
:
Context
,
listener
:
ConsultServiceViewCallback
?,
isBusy
:
Boolean
)
:
super
(
context
)
{
mListener
=
listener
mContext
=
context
mIsBusy
=
isBusy
...
...
@@ -26,7 +33,7 @@ class ExpertConsultServiceItemView : LinearLayout {
private
var
mContext
:
Context
?
=
null
private
var
mListener
:
ConsultServiceViewCallback
?
=
null
private
var
mIsBusy
:
Boolean
=
false
private
var
mIsBusy
:
Boolean
=
false
private
fun
initView
()
{
...
...
@@ -50,13 +57,13 @@ class ExpertConsultServiceItemView : LinearLayout {
*/
@SuppressLint
(
"SetTextI18n"
)
fun
setData
(
bean
:
ServiceItemBean
.
ProductsBean
)
{
if
(
mIsBusy
){
// 是否繁忙 true繁忙
if
(
mIsBusy
)
{
// 是否繁忙 true繁忙
ll_not_busy
.
visibility
=
View
.
GONE
ll_busy
.
visibility
=
View
.
VISIBLE
tv_add
.
setOnClickListener
{
mListener
?.
addTime
()
}
}
else
{
}
else
{
ll_not_busy
.
visibility
=
View
.
VISIBLE
ll_busy
.
visibility
=
View
.
GONE
}
...
...
@@ -126,15 +133,35 @@ class ExpertConsultServiceItemView : LinearLayout {
}
im_expert_service_list_btn
.
setOnClickListener
{
NewH5Activity
.
start
(
mContext
,
H5Params
(
HttpConfig
.
MH5_URL
+
"consult/#/pages/jieyou/DownOrder?product_id="
+
bean
.
productDto
.
id
,
null
if
(
ImIn
.
getUserService
().
isBindPhone
())
{
NewH5Activity
.
start
(
mContext
,
H5Params
(
HttpConfig
.
MH5_URL
+
"consult/#/pages/jieyou/DownOrder?product_id="
+
bean
.
productDto
.
id
,
null
)
)
)
}
else
{
//新增需求,如果没有绑定手机号,跳转到绑定手机号页面
bindPhoneDialog
()
}
}
}
fun
bindPhoneDialog
()
{
CommonDialog
(
mContext
)
.
setCancelAble
(
false
)
.
setMessage
(
ImConstants
.
TEL_BINDPHONE
)
.
setLeftOnclick
(
"忍痛放弃"
,
null
)
.
setRightClick
(
"果断绑定"
)
{
view
->
try
{
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
)
.
wxBindToInputhonePage
(
mContext
as
Activity
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
}
.
show
()
}
}
\ No newline at end of file
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