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
3afb39e5
Commit
3afb39e5
authored
Apr 28, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.2.40(复联迁移)' into 4.2.40(复联迁移)
parents
de20c0a4
d553f5d0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
34 deletions
+36
-34
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+2
-2
ConfideHomeHttpImpl.kt
m-confide/src/main/java/com/ydl/confide/home/http/ConfideHomeHttpImpl.kt
+1
-1
ExpertSearchHttpImpl.kt
m-consultant/src/main/java/com/yidianling/consultant/http/ExpertSearchHttpImpl.kt
+1
-1
HomeBasePagerApi.kt
m-home/src/main/java/com/yidianling/home/http/HomeBasePagerApi.kt
+2
-2
YdlHomeFragment.kt
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+6
-6
MineFragment.java
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
+24
-22
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
3afb39e5
...
...
@@ -20,8 +20,8 @@ import java.util.List;
public
final
class
DemoGlobalConfig
implements
IConfigModule
{
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
//
public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_PROD
;
public
static
String
appEnv
=
YDLConstants
.
ENV_TEST
;
//
public static String appEnv = YDLConstants.ENV_PROD;
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
...
...
m-confide/src/main/java/com/ydl/confide/home/http/ConfideHomeHttpImpl.kt
View file @
3afb39e5
...
...
@@ -61,7 +61,7 @@ class ConfideHomeHttpImpl private constructor(): IConfideHomeHttp{
val
confideParam
=
sb
.
toString
()
return
RxUtils
.
mapObservable
(
param
)
.
flatMap
{
confideHomeApi
.
recommedChange
(
HttpConfig
.
JAVA_BASE_URL
+
"auth/listen/search?"
+
confideParam
)
confideHomeApi
.
recommedChange
(
HttpConfig
.
JAVA_BASE_URL
+
"auth/listen/
n
search?"
+
confideParam
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/ExpertSearchHttpImpl.kt
View file @
3afb39e5
...
...
@@ -46,7 +46,7 @@ class ExpertSearchHttpImpl : IExpertSearchHttp {
}
override
fun
searchDoctor
(
params
:
String
?):
Observable
<
BaseAPIResponse
<
ExpertSearchBean
>>
{
return
getSearchApi
().
searchDoctorService
(
HttpConfig
.
JAVA_BASE_URL
+
"doctor/list?"
+
params
)
return
getSearchApi
().
searchDoctorService
(
HttpConfig
.
JAVA_BASE_URL
+
"doctor/
n
list?"
+
params
)
}
...
...
m-home/src/main/java/com/yidianling/home/http/HomeBasePagerApi.kt
View file @
3afb39e5
...
...
@@ -31,7 +31,7 @@ interface HomeBasePagerApi {
* 首页咨询请求
* goodType 为空或不传 则获取默认类型数据
*/
@GET
(
"doctor/list"
)
@GET
(
"doctor/
n
list"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
fun
getConsultData
(
@Query
(
"categories"
)
category
:
String
,
...
...
@@ -48,7 +48,7 @@ interface HomeBasePagerApi {
* 首页倾述请求
* goodType 为空或不传 则获取默认类型数据
*/
@GET
(
"auth/listen/search"
)
@GET
(
"auth/listen/
n
search"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
fun
getConfideData
(
@Query
(
"goodType"
)
goodType
:
String
,
...
...
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
3afb39e5
...
...
@@ -277,12 +277,12 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
* 设置悬浮顶部监听数据
*/
private
fun
setSuspendListener
()
{
scrollListner
?
.
setContext
(
mContext
)
scrollListner
?
.
setHomeView
(
this
)
scrollListner
?
.
setConfideFilterView
(
ll_layout
)
scrollListner
?
.
setConsultFilterView
(
ll_consultLayout
)
scrollListner
?
.
setSectionAdapter
(
adapter
!!
)
scrollListner
?
.
setPhoneCallImageView
(
home_service_call
)
scrollListner
.
setContext
(
mContext
)
scrollListner
.
setHomeView
(
this
)
scrollListner
.
setConfideFilterView
(
ll_layout
)
scrollListner
.
setConsultFilterView
(
ll_consultLayout
)
scrollListner
.
setSectionAdapter
(
adapter
!!
)
scrollListner
.
setPhoneCallImageView
(
home_service_call
)
}
/**
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
View file @
3afb39e5
package
com
.
yidianling
.
user
.
mine
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
androidx.core.content.ContextCompat
;
...
...
@@ -61,6 +62,7 @@ import io.reactivex.schedulers.Schedulers;
*/
public
class
MineFragment
extends
BaseFragment
implements
SwipeRefreshLayout
.
OnRefreshListener
,
View
.
OnClickListener
{
private
Activity
mActivity
;
String
share_title
=
"壹点灵-专业心理咨询平台"
;
String
share_context
=
"帮您解决各种恋爱情感、婚姻、生活烦恼"
;
String
share_head
=
"http://static.ydlcdn.com/v1/images/logo320.png"
;
...
...
@@ -104,6 +106,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
@Override
public
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
mActivity
=
requireActivity
();
}
@Override
...
...
@@ -112,7 +115,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
EventBus
.
getDefault
().
register
(
this
);
}
swipeRefreshLayout
=
getRootView
().
findViewById
(
R
.
id
.
swipe_refresh_layout
);
swipeRefreshLayout
.
setColorSchemeColors
(
ContextCompat
.
getColor
(
get
Context
(),
R
.
color
.
platform_main_theme
));
swipeRefreshLayout
.
setColorSchemeColors
(
ContextCompat
.
getColor
(
require
Context
(),
R
.
color
.
platform_main_theme
));
swipeRefreshLayout
.
setProgressViewOffset
(
false
,
0
,
200
);
img_bg
=
getRootView
().
findViewById
(
R
.
id
.
img_bg
);
...
...
@@ -357,9 +360,9 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
public
void
onClick
(
View
v
)
{
int
id
=
v
.
getId
();
//切换环境逻辑按钮
if
(
id
==
R
.
id
.
text_userName
||
id
==
R
.
id
.
cv_duration
)
{
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
);
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
);
}
else
if
(
id
==
R
.
id
.
iv_edit_info
)
{
//修改资料
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
if
(
userInfoData
!=
null
)
{
...
...
@@ -370,7 +373,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
if
(
Utils
.
isFastClick
())
{
return
;
}
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
if
(
userInfoData
!=
null
)
{
...
...
@@ -378,72 +381,71 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
startActivity
(
intentuser
);
}
}
else
if
(
id
==
R
.
id
.
ll_account
)
{
//账户余额
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
startActivity
(
new
Intent
(
getActivity
(),
AccountHistoryActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
ll_red_packet
)
{
//我的红包
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
clearCouponStatus
();
ModularServiceManager
.
INSTANCE
.
provide
(
IAppService
.
class
).
myRedPockIntent
(
getActivity
()
);
ModularServiceManager
.
INSTANCE
.
provide
(
IAppService
.
class
).
myRedPockIntent
(
mActivity
);
}
else
if
(
id
==
R
.
id
.
ll_fans
)
{
//粉丝
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
H5Params
h5Params
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/fans-list"
,
null
);
NewH5Activity
.
start
(
getActivity
(),
h5Params
);
}
else
if
(
id
==
R
.
id
.
ll_guanzhu
)
{
//我关注的
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
H5Params
h5Params1
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/follow-per"
,
null
);
NewH5Activity
.
start
(
getActivity
(),
h5Params1
);
}
else
if
(
id
==
R
.
id
.
ll_my_trends
)
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
BuryPointUtils
.
getInstance
().
createMap
()
.
put
(
"mine_name"
,
"我的动态"
)
.
burryPoint
(
"mine"
);
try
{
Intent
intentm
=
ModularServiceManager
.
INSTANCE
.
provide
(
IDynamicService
.
class
).
getMyTrendsActivityIntent
(
getActivity
()
);
Intent
intentm
=
ModularServiceManager
.
INSTANCE
.
provide
(
IDynamicService
.
class
).
getMyTrendsActivityIntent
(
mActivity
);
startActivity
(
intentm
);
}
catch
(
Exception
e
)
{
}
}
else
if
(
id
==
R
.
id
.
jtv_account_setting
)
{
//账号设置
//点击消息 未登录请先登录
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
startActivity
(
new
Intent
(
getActivity
(),
AccountSettingActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
jtv_account_privacy
)
{
// 未登录请先登录
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
UserHelper
.
INSTANCE
.
getUsetSetting
().
setMeSafePrivateIsClick
(
true
);
jtv_account_privacy
.
setLeftRedDotVisibility
(
View
.
GONE
);
startActivity
(
new
Intent
(
getActivity
(),
PrivacyActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
ll_trade_order
)
{
//预约
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
BuryPointUtils
.
getInstance
().
createMap
()
.
put
(
"mine_name"
,
"预约订单"
)
.
burryPoint
(
"mine"
);
H5Params
h5Params3
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"order"
,
null
);
h5Params3
.
setShowMenu
(
true
);
H5Params
h5Params3
=
new
H5Params
(
HttpConfig
.
Companion
.
getMH5_URL
()
+
"wb/user/order/list?needOrderHelperAlert=1"
,
null
);
NewH5Activity
.
start
(
getActivity
(),
h5Params3
);
}
else
if
(
id
==
R
.
id
.
ll_my_courses
)
{
//我的课程
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
ModularServiceManager
.
INSTANCE
.
provide
(
ICourseService
.
class
).
startMyCourseActivity
(
getActivity
()
);
ModularServiceManager
.
INSTANCE
.
provide
(
ICourseService
.
class
).
startMyCourseActivity
(
mActivity
);
}
else
if
(
id
==
R
.
id
.
ll_call_order
)
{
//倾诉
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
BuryPointUtils
.
getInstance
().
createMap
()
...
...
@@ -466,7 +468,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
NewH5Activity
.
start
(
getActivity
(),
h5Paramzhuan
);
}
}
else
if
(
id
==
R
.
id
.
ll_my_test_log
)
{
//测试记录
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
BuryPointUtils
.
getInstance
().
createMap
()
...
...
@@ -482,7 +484,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params
params1
=
new
H5Params
(
"https://m.yidianling.com/about"
,
"网站介绍"
);
NewH5Activity
.
start
(
getActivity
(),
params1
);
}
else
if
(
id
==
R
.
id
.
ll_reward
)
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
()
,
true
))
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
mActivity
,
true
))
{
return
;
}
H5Params
h5Param
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"course/invite-record"
,
null
);
...
...
@@ -522,7 +524,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
}
private
void
share
()
{
YDLShareDialog
dialog
=
YDLShareDialog
.
Companion
.
style4
(
getActivity
()
,
share_title
,
share_url
,
share_context
,
share_head
);
YDLShareDialog
dialog
=
YDLShareDialog
.
Companion
.
style4
(
mActivity
,
share_title
,
share_url
,
share_context
,
share_head
);
dialog
.
show
(
getActivity
().
getFragmentManager
(),
"lose"
);
}
...
...
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