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
f7873309
Commit
f7873309
authored
Jun 23, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
writedata done & minefragment red hot ui done
parent
a0406e84
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
66 deletions
+85
-66
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+21
-6
im_ydl_nim_message_fragment.xml
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
+9
-44
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+4
-4
user_mine_fragment_mine.xml
m-user/src/main/res/layout/user_mine_fragment_mine.xml
+46
-11
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+5
-1
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
f7873309
...
...
@@ -6,6 +6,7 @@ import android.animation.ValueAnimator;
import
android.annotation.SuppressLint
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.graphics.drawable.Drawable
;
import
android.media.AudioManager
;
import
android.os.Bundle
;
import
android.os.Handler
;
...
...
@@ -50,6 +51,7 @@ import com.ydl.ydlcommon.modular.ModularServiceManager;
import
com.ydl.ydlcommon.utils.AnimUtils
;
import
com.ydl.ydlcommon.utils.LogUtil
;
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
;
import
com.ydl.ydlcommon.utils.Utils
;
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
;
import
com.ydl.ydlcommon.utils.log.AliYunLogConfig
;
import
com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper
;
...
...
@@ -184,6 +186,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private
TextView
tv_all_comment_desc
;
private
ImageView
tv_all_comment_go
;
private
ImCommentBannerView
comment_banner_view
;
private
TextView
tvCommentCount
;
private
ImRedStarGradeView
good_num_icons
;
...
...
@@ -258,8 +261,9 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
top_expert_info_ll
=
rootView
.
findViewById
(
R
.
id
.
top_expert_info_ll
);
top_expert_info_cl
=
rootView
.
findViewById
(
R
.
id
.
top_expert_info_cl
);
comment_banner_view_ll
=
rootView
.
findViewById
(
R
.
id
.
comment_banner_view_ll
);
tv_all_comment_desc
=
rootView
.
findViewById
(
R
.
id
.
tv_all_comment_desc
);
tv_all_comment_go
=
rootView
.
findViewById
(
R
.
id
.
tv_all_comment_go
);
tvCommentCount
=
rootView
.
findViewById
(
R
.
id
.
tv_comment_count
);
comment_banner_view
=
rootView
.
findViewById
(
R
.
id
.
comment_banner_view
);
messageListView
=
rootView
.
findViewById
(
R
.
id
.
messageListView
);
// 消息列表
top_view_container
=
rootView
.
findViewById
(
R
.
id
.
top_view_container
);
// 消息列表
...
...
@@ -843,13 +847,24 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
int
commentCounter
=
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
commentCounter
;
tv_all_comment_desc
.
setText
(
String
.
valueOf
(
commentCounter
));
String
commentCountInfo
=
String
.
format
(
"评价(%d)"
,
commentCounter
);
tvCommentCount
.
setText
(
commentCountInfo
);
Drawable
drawable
=
getResources
().
getDrawable
(
R
.
drawable
.
platform_right_arrow
);
drawable
.
setBounds
(
0
,
0
,
36
,
36
);
tvCommentCount
.
setCompoundDrawables
(
null
,
null
,
drawable
,
null
);
tvCommentCount
.
setCompoundDrawablePadding
(
4
);
H5Params
params
=
new
H5Params
(
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
commentCounterUrl
,
""
);
View
.
OnClickListener
onClickListener
=
v
->
NewH5Activity
.
start
(
getActivity
(),
params
);
tv_all_comment_desc
.
setOnClickListener
(
onClickListener
);
tv_all_comment_go
.
setOnClickListener
(
onClickListener
);
View
.
OnClickListener
onClickListener
=
v
->
{
if
(
Utils
.
isFastClick
())
{
return
;
}
ActionCountUtils
.
Companion
.
baiDuCountSign3
(
"chat_page"
,
"evaluate_lick_click"
,
""
,
""
,
""
);
NewH5Activity
.
start
(
getActivity
(),
params
);
};
tvCommentCount
.
setOnClickListener
(
onClickListener
);
comment_banner_view
.
initData
(
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
commentList
);
...
...
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
View file @
f7873309
...
...
@@ -315,50 +315,15 @@
android:layout_weight=
"1"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:lines=
"1"
android:text=
"评价"
android:textColor=
"@color/platform_main_theme"
android:textSize=
"12dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginBottom=
"1dp"
android:lines=
"1"
android:text=
"("
android:textColor=
"@color/platform_main_theme"
android:textSize=
"12dp"
/>
<TextView
android:id=
"@+id/tv_all_comment_desc"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:lines=
"1"
android:textColor=
"@color/platform_main_theme"
android:textSize=
"12dp"
tools:text=
"18714"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginBottom=
"1dp"
android:lines=
"1"
android:text=
")"
android:textColor=
"@color/platform_main_theme"
android:textSize=
"12dp"
/>
<ImageView
android:id=
"@+id/tv_all_comment_go"
android:layout_width=
"18dp"
android:layout_height=
"18dp"
android:layout_gravity=
"center"
android:src=
"@drawable/platform_right_arrow"
/>
android:id=
"@+id/tv_comment_count"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:gravity=
"center_vertical"
android:lines=
"1"
android:textColor=
"@color/platform_main_theme"
android:textSize=
"12sp"
tools:text=
"评价(10086)"
/>
</LinearLayout>
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
f7873309
...
...
@@ -101,14 +101,14 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
text_userName
.
setOnClickListener
(
this
)
jtv_test
.
setOnClickListener
(
this
)
swipe_refresh_layout
.
setOnRefreshListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
l
l_trade_order
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
cs
l_trade_order
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
jtv_introduce
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
iv_edit_info
).
setOnClickListener
(
this
)
//分享
rootView
.
findViewById
<
View
>(
R
.
id
.
iv_share
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_my_courses
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_red_packet
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
l
l_call_order
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
cs
l_call_order
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_account
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_guanzhu
).
setOnClickListener
(
this
)
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_my_trends
).
setOnClickListener
(
this
)
...
...
@@ -409,7 +409,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
startActivity
(
Intent
(
activity
,
PrivacyActivity
::
class
.
java
))
}
}
else
if
(
id
==
R
.
id
.
l
l_trade_order
)
{
//预约
}
else
if
(
id
==
R
.
id
.
cs
l_trade_order
)
{
//预约
count
(
UserMyPageEvent
.
YDL_USER_MY_MIDDLE_TYPE_CLICK
,
"预约订单"
)
mActivity
?.
let
{
activity
->
if
(!
startLoginByStatus
(
activity
,
true
))
{
...
...
@@ -431,7 +431,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
provide
(
ICourseService
::
class
.
java
).
startMyCourseActivity
(
activity
)
}
}
else
if
(
id
==
R
.
id
.
l
l_call_order
)
{
//倾诉
}
else
if
(
id
==
R
.
id
.
cs
l_call_order
)
{
//倾诉
count
(
UserMyPageEvent
.
YDL_USER_MY_MIDDLE_TYPE_CLICK
,
"倾诉记录"
)
mActivity
?.
let
{
activity
->
if
(!
startLoginByStatus
(
activity
,
true
))
{
...
...
m-user/src/main/res/layout/user_mine_fragment_mine.xml
View file @
f7873309
...
...
@@ -354,9 +354,8 @@
</RelativeLayout>
<LinearLayout
android:id=
"@+id/ll_call_order"
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/csl_call_order"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
...
...
@@ -365,10 +364,25 @@
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/iv_confide"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:layout_marginTop=
"3dp"
android:src=
"@drawable/user_mine_ic_qinshu_record"
/>
android:src=
"@drawable/user_mine_ic_qinshu_record"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/iv_confide_tip"
android:layout_width=
"8dp"
android:layout_height=
"8dp"
android:src=
"@drawable/user_mine_background_red_point_new_coupon"
android:visibility=
"gone"
app:layout_constraintCircle=
"@id/iv_confide"
app:layout_constraintCircleAngle=
"45"
app:layout_constraintCircleRadius=
"13dp"
tools:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
...
...
@@ -376,12 +390,15 @@
android:layout_marginTop=
"8dp"
android:text=
"倾诉记录"
android:textColor=
"@color/platform_color_999999"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/iv_confide"
/>
</
Linear
Layout>
</
androidx.constraintlayout.widget.Constraint
Layout>
<
Linear
Layout
android:id=
"@+id/
l
l_trade_order"
<
androidx.constraintlayout.widget.Constraint
Layout
android:id=
"@+id/
cs
l_trade_order"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
...
...
@@ -390,10 +407,25 @@
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/iv_trade_order"
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:layout_marginTop=
"3dp"
android:src=
"@drawable/user_mine_ic_order"
/>
android:src=
"@drawable/user_mine_ic_order"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/iv_order_tip"
android:layout_width=
"8dp"
android:layout_height=
"8dp"
android:src=
"@drawable/user_mine_background_red_point_new_coupon"
android:visibility=
"gone"
app:layout_constraintCircle=
"@id/iv_trade_order"
app:layout_constraintCircleAngle=
"45"
app:layout_constraintCircleRadius=
"13dp"
tools:visibility=
"visible"
/>
<TextView
android:layout_width=
"wrap_content"
...
...
@@ -401,9 +433,12 @@
android:layout_marginTop=
"8dp"
android:text=
"预约订单"
android:textColor=
"@color/platform_color_999999"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/iv_trade_order"
/>
</
Linear
Layout>
</
androidx.constraintlayout.widget.Constraint
Layout>
</LinearLayout>
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
f7873309
...
...
@@ -51,6 +51,7 @@ import com.ydl.ydlcommon.utils.LogUtil;
import
com.ydl.ydlcommon.utils.NetWorkSpeedUtils
;
import
com.ydl.ydlcommon.utils.StatusBarUtils
;
import
com.ydl.ydlcommon.utils.URLUtils
;
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
;
import
com.ydl.ydlcommon.utils.log.AliYunLogConfig
;
import
com.ydl.ydlcommon.utils.log.AliYunRichLogsHelper
;
import
com.ydl.ydlcommon.view.TitleBar
;
...
...
@@ -545,7 +546,10 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if
(
shareMeditationDialog
!=
null
&&
!
shareMeditationDialog
.
isAdded
()){
shareMeditationDialog
.
show
(
getSupportFragmentManager
(),
"share_meditation"
);
}
}
else
{
}
else
{
if
(
"commentList"
.
equals
(
params
.
getShare
().
getType
()))
{
ActionCountUtils
.
Companion
.
baiDuCountSign3
(
"ydl_experts_detail"
,
"comment_share_click"
,
""
,
""
,
""
);
}
purl
=
params
.
getShare
().
getUrl
();
shareUrl
=
params
.
getShare
().
getShare_url
();
shareTitle
=
params
.
getShare
().
getTitle
();
...
...
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