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
c072cf3b
Commit
c072cf3b
authored
Jul 28, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/lp/lp_baike_new' into 'd/v4.4.05'
新增百科功能 See merge request app_android_lib/YDL-Component!273
parents
f46e4297
8a83456a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
6 deletions
+35
-6
UserConstants.kt
m-user/src/main/java/com/yidianling/user/UserConstants.kt
+3
-1
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+11
-0
user_mine_ic_my_wiki.png
m-user/src/main/res/drawable-xhdpi/user_mine_ic_my_wiki.png
+0
-0
user_mine_fragment_mine.xml
m-user/src/main/res/layout/user_mine_fragment_mine.xml
+21
-5
No files found.
m-user/src/main/java/com/yidianling/user/UserConstants.kt
View file @
c072cf3b
...
...
@@ -20,5 +20,6 @@ object UserConstants {
//黑名单
val
My_BLACK
=
HttpConfig
.
H5_URL
+
"mine/black-list/"
//百科
val
MY_BAIKE
=
HttpConfig
.
MH5_URL
+
"newConsult/baike"
}
\ No newline at end of file
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
c072cf3b
...
...
@@ -35,6 +35,7 @@ import com.yidianling.im.api.service.IImService
import
com.yidianling.im.message.param.MsgListParam
import
com.yidianling.user.BuildConfig
import
com.yidianling.user.R
import
com.yidianling.user.UserConstants.MY_BAIKE
import
com.yidianling.user.UserHelper.getUserInfo
import
com.yidianling.user.UserHelper.getUsetSetting
import
com.yidianling.user.UserHelper.isLogin
...
...
@@ -118,6 +119,8 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_service
).
setOnClickListener
(
this
)
//冥想
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_meditation
).
setOnClickListener
(
this
)
//心理百科
rootView
.
findViewById
<
View
>(
R
.
id
.
ll_wiki
).
setOnClickListener
(
this
)
init
()
GlideApp
.
with
(
this
).
load
(
"https://static.yidianling.com/banner/bottombanner@2x.png"
)
...
...
@@ -193,6 +196,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
refreshCouponData
()
}
@SuppressLint
(
"CheckResult"
)
private
fun
getConfideOrder
(
uid
:
String
)
{
MineHttpImpl
.
getInstance
().
getHasConfideOrder
(
uid
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
@@ -546,6 +550,13 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
NewH5Activity
.
start
(
it
,
h5Params3
)
}
}
else
if
(
id
==
R
.
id
.
ll_wiki
)
{
//心理百科
count
(
UserMyPageEvent
.
YDL_USER_MY_MIDDLE_TYPE_CLICK
,
"百科"
)
mActivity
?.
let
{
val
h5Params3
=
H5Params
(
MY_BAIKE
,
null
)
NewH5Activity
.
start
(
it
,
h5Params3
)
}
}
}
...
...
m-user/src/main/res/drawable-xhdpi/user_mine_ic_my_wiki.png
0 → 100644
View file @
c072cf3b
2.4 KB
m-user/src/main/res/layout/user_mine_fragment_mine.xml
View file @
c072cf3b
...
...
@@ -495,7 +495,6 @@
</LinearLayout>
<!--meditation start-->
<LinearLayout
android:id=
"@+id/ll_meditation"
android:layout_width=
"0dp"
...
...
@@ -519,13 +518,30 @@
android:textSize=
"12sp"
/>
</LinearLayout>
<!--meditation end-->
<View
<LinearLayout
android:id=
"@+id/ll_wiki"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
/>
android:layout_weight=
"1"
android:background=
"?android:attr/selectableItemBackground"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:src=
"@drawable/user_mine_ic_my_wiki"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"心理百科"
android:textColor=
"@color/platform_color_999999"
android:textSize=
"12sp"
/>
</LinearLayout>
</LinearLayout>
...
...
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