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
f2c814d3
Commit
f2c814d3
authored
May 24, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分享弹窗bug修复
parent
a9549fa8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
15 deletions
+22
-15
config.gradle
config.gradle
+4
-4
build.gradle
m-fm/build.gradle
+0
-1
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+16
-10
YDLShareDialog.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/view/dialog/YDLShareDialog.kt
+0
-0
platform_dialog_share.xml
ydl-platform/src/main/res/layout/platform_dialog_share.xml
+2
-0
No files found.
config.gradle
View file @
f2c814d3
...
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.49.74"
,
"m-consultant"
:
"0.0.60.25"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.1
0
"
,
"m-user"
:
"0.0.62.1
1
"
,
"m-home"
:
"0.0.23.48"
,
"m-im"
:
"0.0.21.44"
,
"m-dynamic"
:
"0.0.7.73"
,
...
...
@@ -35,7 +35,7 @@ ext {
//mdt 组件
"ydl-tuicore"
:
"0.0.23"
,
//第一步
"ydl-platform"
:
"0.0.4
0.99
"
,
"ydl-platform"
:
"0.0.4
1.08
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.62"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-confide"
:
"0.0.49.74"
,
"m-consultant"
:
"0.0.60.25"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.1
0
"
,
"m-user"
:
"0.0.62.1
1
"
,
"m-home"
:
"0.0.23.48"
,
"m-im"
:
"0.0.21.44"
,
"m-dynamic"
:
"0.0.7.73"
,
...
...
@@ -118,7 +118,7 @@ ext {
//mdt组件
"ydl-tuicore"
:
"0.0.23"
,
//第一步
"ydl-platform"
:
"0.0.4
0.99
"
,
"ydl-platform"
:
"0.0.4
1.08
"
,
//第二步 若干
"ydl-webview"
:
"0.0.38.62"
,
...
...
m-fm/build.gradle
View file @
f2c814d3
...
...
@@ -73,7 +73,6 @@ dependencies {
if
(
rootProject
.
ext
.
dev_mode
){
//开发时使用
api
project
(
":ydl-platform"
)
api
project
(
':m-user'
)
implementation
modularPublication
(
'com.ydl:m-user-api'
)
implementation
modularPublication
(
'com.ydl:m-dynamic-api'
)
implementation
project
(
':ydl-media'
)
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
f2c814d3
...
...
@@ -27,6 +27,7 @@ import com.ydl.ydlcommon.utils.BuryPointUtils
import
com.ydl.ydlcommon.utils.Utils
import
com.ydl.ydlcommon.utils.YdlBuryPointUtil
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils.Companion.count
import
com.ydl.ydlcommon.view.dialog.YDLShareDialog
import
com.ydl.ydlcommon.view.dialog.YDLShareDialog.Companion.style4
import
com.yidianling.consultant.api.IConsultantService
import
com.yidianling.dynamic.api.IDynamicService
...
...
@@ -53,7 +54,6 @@ import io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.functions.Consumer
import
io.reactivex.schedulers.Schedulers
import
kotlinx.android.synthetic.main.user_mine_fragment_mine.*
import
java.text.SimpleDateFormat
import
java.util.*
/**
...
...
@@ -67,7 +67,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
var
share_head
=
"http://static.ydlcdn.com/v1/images/logo320.png"
var
share_url
=
"http://m.yidianling.com/app"
var
userInfoData
:
UserResponseBean
.
UserInfo
?
=
null
private
var
mShareDialog
:
YDLShareDialog
?
=
null
private
var
startTime
:
Long
=
0
private
var
endTime
:
Long
=
0
override
fun
layoutResId
():
Int
{
...
...
@@ -130,10 +130,14 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
.
getGlobalInfo
()
?.
info
&&
null
!=
PlatformRamImpl
.
getInstance
()
.
getGlobalInfo
()
?.
info
?.
app_share
)
{
share_title
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
title
.
toString
()
share_context
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
descrip
.
toString
()
share_head
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
cover_url
.
toString
()
share_url
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
dl_url
.
toString
()
share_title
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
title
.
toString
()
share_context
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
descrip
.
toString
()
share_head
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
cover_url
.
toString
()
share_url
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
app_share
?.
dl_url
.
toString
()
}
}
...
...
@@ -450,7 +454,7 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
count
(
UserMyPageEvent
.
YDL_USER_MY_BOTTOM_TYPE_CLICK
,
"专家入驻"
)
var
joinDoctorUrl
=
PlatformRamImpl
.
getInstance
().
getGlobalInfo
()
?.
info
?.
join_doctor_url
if
(
joinDoctorUrl
.
isNullOrEmpty
())
{
joinDoctorUrl
=
"http://m.yidianling.com/enter?"
joinDoctorUrl
=
"http://m.yidianling.com/enter?"
}
val
h5Paramzhuan
=
H5Params
(
joinDoctorUrl
,
null
)
NewH5Activity
.
start
(
activity
,
h5Paramzhuan
)
...
...
@@ -505,10 +509,12 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
}
private
fun
share
()
{
val
dialog
=
mActivity
?.
let
{
activity
->
style4
(
activity
,
share_title
,
share_url
,
share_context
,
share_head
)
if
(
mShareDialog
==
null
)
{
mShareDialog
=
mActivity
?.
let
{
activity
->
style4
(
activity
,
share_title
,
share_url
,
share_context
,
share_head
)
}
}
d
ialog
?.
show
(
activity
?.
fragmentManager
,
"lose"
)
mShareD
ialog
?.
show
(
activity
?.
fragmentManager
,
"lose"
)
}
/**
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/view/dialog/YDLShareDialog.kt
View file @
f2c814d3
This diff is collapsed.
Click to expand it.
ydl-platform/src/main/res/layout/platform_dialog_share.xml
View file @
f2c814d3
...
...
@@ -131,6 +131,7 @@
android:layout_width=
"55dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:visibility=
"gone"
android:orientation=
"vertical"
>
<ImageView
...
...
@@ -248,6 +249,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_18"
android:visibility=
"gone"
android:orientation=
"horizontal"
>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
...
...
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