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
fc86b7af
Commit
fc86b7af
authored
Jun 28, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commentList share done
parent
4be77c5d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
config.gradle
config.gradle
+4
-4
ShareData.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/bean/ShareData.kt
+2
-0
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+10
-3
No files found.
config.gradle
View file @
fc86b7af
...
@@ -23,10 +23,10 @@ ext {
...
@@ -23,10 +23,10 @@ ext {
//mdt 组件
//mdt 组件
"ydl-tuicore"
:
"0.0.25"
,
"ydl-tuicore"
:
"0.0.25"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.41.4
4
"
,
"ydl-platform"
:
"0.0.41.4
8
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.9
6
"
,
"ydl-webview"
:
"0.0.38.9
7
"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-pay"
:
"0.0.18.21"
,
"ydl-pay"
:
"0.0.18.21"
,
"m-audioim"
:
"0.0.49.30.23"
,
"m-audioim"
:
"0.0.49.30.23"
,
...
@@ -110,10 +110,10 @@ ext {
...
@@ -110,10 +110,10 @@ ext {
//mdt 组件
//mdt 组件
"ydl-tuicore"
:
"0.0.25"
,
"ydl-tuicore"
:
"0.0.25"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.41.4
4
"
,
"ydl-platform"
:
"0.0.41.4
8
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.9
6
"
,
"ydl-webview"
:
"0.0.38.9
7
"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-pay"
:
"0.0.18.21"
,
"ydl-pay"
:
"0.0.18.21"
,
"m-audioim"
:
"0.0.49.30.23"
,
"m-audioim"
:
"0.0.49.30.23"
,
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/bean/ShareData.kt
View file @
fc86b7af
...
@@ -17,6 +17,8 @@ class ShareData : Serializable {
...
@@ -17,6 +17,8 @@ class ShareData : Serializable {
// just for Meditation
// just for Meditation
var
type
:
String
?
=
null
var
type
:
String
?
=
null
var
isDarkMode
=
false
var
isDarkMode
=
false
// 兼容评价列表分享H5传参数据结构
var
imageBase64
:
String
?=
null
//分享到动态url
//分享到动态url
var
url
:
String
?
=
null
var
url
:
String
?
=
null
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
fc86b7af
...
@@ -41,6 +41,7 @@ import com.ydl.view.ShareMeditationDialog;
...
@@ -41,6 +41,7 @@ import com.ydl.view.ShareMeditationDialog;
import
com.ydl.ydl_router.manager.YDLRouterManager
;
import
com.ydl.ydl_router.manager.YDLRouterManager
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.BaseActivity
;
import
com.ydl.ydlcommon.base.BaseApp
;
import
com.ydl.ydlcommon.base.BaseApp
;
import
com.ydl.ydlcommon.bean.ShareData
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.bean.StatusBarOptions
;
import
com.ydl.ydlcommon.event.MeditationEvent
;
import
com.ydl.ydlcommon.event.MeditationEvent
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
...
@@ -118,6 +119,8 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
...
@@ -118,6 +119,8 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
protected
String
shareTitle
;
protected
String
shareTitle
;
protected
String
shareDesc
;
protected
String
shareDesc
;
private
String
cover
;
private
String
cover
;
// 评价2.0新增字段 区分评价列表
private
H5JsBean
.
H5JsCmd
.
Params
paramsForCommentList
;
private
boolean
isDarkMode
=
false
;
private
boolean
isDarkMode
=
false
;
...
@@ -521,6 +524,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
...
@@ -521,6 +524,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
shareTitle
=
params
.
getShare
().
getTitle
();
shareTitle
=
params
.
getShare
().
getTitle
();
shareDesc
=
params
.
getShare
().
getDesc
();
shareDesc
=
params
.
getShare
().
getDesc
();
cover
=
params
.
getShare
().
getCover
();
cover
=
params
.
getShare
().
getCover
();
paramsForCommentList
=
params
;
LogUtil
.
d
(
"title: "
+
shareTitle
+
" url: "
+
shareUrl
+
" desc: "
+
shareDesc
+
" cover: "
+
cover
);
LogUtil
.
d
(
"title: "
+
shareTitle
+
" url: "
+
shareUrl
+
" desc: "
+
shareDesc
+
" cover: "
+
cover
);
new
Handler
(
getMainLooper
()).
post
(()
->
initShareMenu
());
new
Handler
(
getMainLooper
()).
post
(()
->
initShareMenu
());
}
}
...
@@ -547,9 +551,6 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
...
@@ -547,9 +551,6 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
shareMeditationDialog
.
show
(
getSupportFragmentManager
(),
"share_meditation"
);
shareMeditationDialog
.
show
(
getSupportFragmentManager
(),
"share_meditation"
);
}
}
}
else
{
}
else
{
if
(
"commentList"
.
equals
(
params
.
getShare
().
getType
()))
{
ActionCountUtils
.
Companion
.
baiDuCountSign3
(
"experts_comment_list_page"
,
"comment_share_click"
,
""
,
""
,
""
);
}
purl
=
params
.
getShare
().
getUrl
();
purl
=
params
.
getShare
().
getUrl
();
shareUrl
=
params
.
getShare
().
getShare_url
();
shareUrl
=
params
.
getShare
().
getShare_url
();
shareTitle
=
params
.
getShare
().
getTitle
();
shareTitle
=
params
.
getShare
().
getTitle
();
...
@@ -1051,7 +1052,13 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
...
@@ -1051,7 +1052,13 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
private
void
initShareMenu
()
{
private
void
initShareMenu
()
{
tb_title
.
setRightIcon
(
getResources
().
getDrawable
(
R
.
drawable
.
web_common_share
));
tb_title
.
setRightIcon
(
getResources
().
getDrawable
(
R
.
drawable
.
web_common_share
));
tb_title
.
setOnRightTextClick
((
view
,
isActive
)
->
{
tb_title
.
setOnRightTextClick
((
view
,
isActive
)
->
{
ShareData
shareData
=
paramsForCommentList
.
getShare
();
if
(
shareData
!=
null
&&
"commentList"
.
equals
(
shareData
.
getType
())){
ActionCountUtils
.
Companion
.
baiDuCountSign3
(
"experts_comment_list_page"
,
"comment_share_click"
,
""
,
""
,
""
);
share
(
shareData
.
getImageBase64
(),
paramsForCommentList
);
}
else
{
share
(
null
,
null
);
share
(
null
,
null
);
}
});
});
LogUtil
.
d
(
"setSeccessful"
);
LogUtil
.
d
(
"setSeccessful"
);
}
}
...
...
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