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
edfc8fcf
Commit
edfc8fcf
authored
Jul 29, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 回滚+UI还原
parent
a9600f90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
23 deletions
+30
-23
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+14
-14
consultant_expert_consult_sub_pay_dialog.xml
m-consultant/src/main/res/layout/consultant_expert_consult_sub_pay_dialog.xml
+12
-5
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+1
-1
CustomAttachParser.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
+3
-3
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
edfc8fcf
...
...
@@ -1485,20 +1485,20 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
needRefresh
=
true
}
val
orderToPayTime
=
SharedPreferencesEditor
.
getString
(
"orderToPayTime"
)
var
timeLimit
=
if
(
TextUtils
.
isEmpty
(
orderToPayTime
))
{
0L
}
else
{
orderToPayTime
.
toLong
()
}
if
(
isShow
&&
!(
consultSubPayDialog
!=
null
&&
consultSubPayDialog
?.
isShowing
==
true
))
{
if
(
findRouteService
(
IUserService
::
class
.
java
).
isLogin
()
&&
System
.
currentTimeMillis
()
>
timeLimit
)
{
getPresenter
().
fetchPromptPayment
()
}
}
//
val orderToPayTime = SharedPreferencesEditor.getString("orderToPayTime")
//
//
var timeLimit = if (TextUtils.isEmpty(orderToPayTime)) {
//
0L
//
} else {
//
orderToPayTime.toLong()
//
}
//
//
//
if (isShow && !(consultSubPayDialog != null && consultSubPayDialog?.isShowing == true)) {
//
if (findRouteService(IUserService::class.java).isLogin() && System.currentTimeMillis() > timeLimit) {
//
getPresenter().fetchPromptPayment()
//
}
//
}
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
APP_CONSULT_LIST_PAGE_VISIT
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"6"
)
...
...
m-consultant/src/main/res/layout/consultant_expert_consult_sub_pay_dialog.xml
View file @
edfc8fcf
...
...
@@ -71,13 +71,20 @@
android:layout_marginRight=
"@dimen/platform_dp_16"
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/avaterIv"
android:layout_width=
"41dp"
android:layout_height=
"41dp"
<androidx.cardview.widget.CardView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/platform_dp_12"
android:layout_marginRight=
"@dimen/platform_dp_8"
/>
android:layout_marginRight=
"@dimen/platform_dp_8"
app:cardCornerRadius=
"4dp"
>
<ImageView
android:id=
"@+id/avaterIv"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:scaleType=
"centerCrop"
/>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width=
"match_parent"
...
...
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
edfc8fcf
...
...
@@ -481,7 +481,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiAnswerQuestion
.
class
,
MsgViewHolderLingxiAnswerQuestion
.
class
);
//灵犀2.0-回答问题
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiFirstQuestion
.
class
,
MsgViewHolderLingxiFirstQuestion
.
class
);
//灵犀2.0-首问语
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingXiJumpConfideList
.
class
,
MsgViewHolderLingXiJumpConfideList
.
class
);
//灵犀2.0-倾诉列表
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachConsultSubScriptPayment
.
class
,
MsgViewHolderConsultSubScribePayment
.
class
);
//咨询预约支付
//
NimUIKit.registerMsgItemViewHolder(CustomAttachConsultSubScriptPayment.class, MsgViewHolderConsultSubScribePayment.class);//咨询预约支付
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
View file @
edfc8fcf
...
...
@@ -158,9 +158,9 @@ public class CustomAttachParser implements MsgAttachmentParser {
case
CustomAttachmentType
.
TYPE_LINGXI_FIRST_QUESTION
:
//首问语
attachment
=
new
CustomAttachLingxiFirstQuestion
();
break
;
case
CustomAttachmentType
.
TYPE_CONSULT_SUBSCRIBE_PAY
:
attachment
=
new
CustomAttachConsultSubScriptPayment
();
break
;
//
case CustomAttachmentType.TYPE_CONSULT_SUBSCRIBE_PAY:
//
attachment = new CustomAttachConsultSubScriptPayment();
//
break;
default
:
attachment
=
new
DefaultCustomAttachment
();
break
;
...
...
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