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
25920727
Commit
25920727
authored
Jul 01, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review fix
parent
31075c3f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
26 deletions
+27
-26
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+1
-5
confide_call_logo.xml
m-confide/src/main/res/drawable/confide_call_logo.xml
+1
-0
confide_right_arrow.xml
m-confide/src/main/res/drawable/confide_right_arrow.xml
+1
-0
AppLocalImpl.kt
m-user/src/main/java/com/yidianling/user/mine/data/AppLocalImpl.kt
+6
-6
ShareData.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/bean/ShareData.kt
+5
-4
ShareMeditationDialog.kt
ydl-webview/src/main/java/com/ydl/view/ShareMeditationDialog.kt
+5
-3
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+8
-8
No files found.
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
25920727
...
...
@@ -296,11 +296,7 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public
void
shareAction
(
H5JsBean
.
H5JsCmd
.
Params
params
)
{
if
(
mContext
!=
null
)
{
if
(
mContext
instanceof
NewH5Activity
)
{
((
NewH5Activity
)
mContext
).
showShareMenu
(
params
);
}
}
}
@Override
...
...
m-confide/src/main/res/drawable/confide_call_logo.xml
View file @
25920727
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"29dp"
android:height=
"29dp"
...
...
m-confide/src/main/res/drawable/confide_right_arrow.xml
View file @
25920727
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"7dp"
android:height=
"8dp"
...
...
m-user/src/main/java/com/yidianling/user/mine/data/AppLocalImpl.kt
View file @
25920727
...
...
@@ -16,13 +16,13 @@ internal class AppLocalImpl private constructor(): AppLocal {
return
Holder
.
INSTANCE
}
private
val
APP
=
"app"
private
val
RED_POCKET_TIME
=
"red_pocket_time"
private
val
UPDATE
=
"update"
private
const
val
APP
=
"app"
private
const
val
RED_POCKET_TIME
=
"red_pocket_time"
private
const
val
UPDATE
=
"update"
private
val
CONFIDE
=
"confide"
private
val
CONSULT
=
"consult"
private
val
COUPON
=
"coupon"
private
const
val
CONFIDE
=
"confide"
private
const
val
CONSULT
=
"consult"
private
const
val
COUPON
=
"coupon"
}
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/bean/ShareData.kt
View file @
25920727
...
...
@@ -14,11 +14,12 @@ class ShareData : Serializable {
var
cover
:
String
?
=
null
var
desc
:
String
?
=
null
// just for Meditation
var
type
:
String
?
=
null
// just for Meditation
var
type
:
String
?
=
null
var
isDarkMode
=
false
// 兼容评价列表分享H5传参数据结构
var
imageBase64
:
String
?=
null
// 兼容评价列表分享H5传参数据结构
var
imageBase64
:
String
?
=
null
//分享到动态url
var
url
:
String
?
=
null
...
...
ydl-webview/src/main/java/com/ydl/view/ShareMeditationDialog.kt
View file @
25920727
...
...
@@ -198,15 +198,17 @@ class ShareMeditationDialog : DialogFragment() {
private
const
val
KEY_SHARE_MINI_ID
=
"key_share_mini_id"
private
const
val
KEY_SHARE_MINI_PATH
=
"key_share_mini_path"
fun
newInstance
(
isDarkMode
:
Boolean
,
shareUrl
:
String
,
shareTitle
:
String
,
shareContent
:
String
,
shareCover
:
String
,
miniId
:
String
,
miniPath
:
String
):
ShareMeditationDialog
{
fun
newInstance
(
isDarkMode
:
Boolean
,
shareUrl
:
String
,
shareTitle
:
String
,
shareContent
:
String
,
shareCover
:
String
,
miniId
:
String
,
miniPath
:
String
):
ShareMeditationDialog
{
val
args
=
Bundle
()
args
.
putBoolean
(
KEY_SHARE_DARK_MODE
,
isDarkMode
)
args
.
putString
(
KEY_SHARE_URL
,
shareUrl
)
args
.
putString
(
KEY_SHARE_TITLE
,
shareTitle
)
args
.
putString
(
KEY_SHARE_CONTENT
,
shareContent
)
args
.
putString
(
KEY_SHARE_COVER
,
shareCover
)
args
.
putString
(
KEY_SHARE_MINI_ID
,
miniId
)
args
.
putString
(
KEY_SHARE_MINI_ID
,
miniId
)
args
.
putString
(
KEY_SHARE_MINI_PATH
,
miniPath
)
val
fragment
=
ShareMeditationDialog
()
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
25920727
...
...
@@ -548,12 +548,12 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
miniId
=
params
.
getShare
().
getMinProgramId
();
miniPath
=
params
.
getShare
().
getMinProgramPath
();
isDarkMode
=
params
.
getShare
().
isDarkMode
();
if
(
shareMeditationDialog
==
null
)
{
if
(
shareMeditationDialog
==
null
)
{
shareMeditationDialog
=
ShareMeditationDialog
.
Companion
.
newInstance
(
isDarkMode
,
shareUrl
,
shareTitle
,
shareDesc
,
cover
,
miniId
,
miniPath
);
shareUrl
,
shareTitle
,
shareDesc
,
cover
,
miniId
,
miniPath
);
}
if
(
shareMeditationDialog
!=
null
&&
!
shareMeditationDialog
.
isAdded
())
{
shareMeditationDialog
.
show
(
getSupportFragmentManager
(),
"share_meditation"
);
if
(
shareMeditationDialog
!=
null
&&
!
shareMeditationDialog
.
isAdded
())
{
shareMeditationDialog
.
show
(
getSupportFragmentManager
(),
"share_meditation"
);
}
}
else
{
purl
=
params
.
getShare
().
getUrl
();
...
...
@@ -1058,11 +1058,11 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title
.
setRightIcon
(
getResources
().
getDrawable
(
R
.
drawable
.
web_common_share
));
tb_title
.
setOnRightTextClick
((
view
,
isActive
)
->
{
ShareData
shareData
=
paramsForCommentList
.
getShare
();
if
(
shareData
!=
null
&&
"commentList"
.
equals
(
shareData
.
getType
()))
{
if
(
shareData
!=
null
&&
"commentList"
.
equals
(
shareData
.
getType
()))
{
isShareCommentList
=
true
;
ActionCountUtils
.
Companion
.
baiDuCountSign3
(
"experts_comment_list_page"
,
"comment_share_click"
,
""
,
""
,
"
"
);
share
(
shareData
.
getImageBase64
(),
paramsForCommentList
);
}
else
{
ActionCountUtils
.
Companion
.
record
(
"experts_comment_list_page"
,
"comment_share_click
"
);
share
(
shareData
.
getImageBase64
(),
paramsForCommentList
);
}
else
{
share
(
null
,
null
);
}
});
...
...
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