Commit 63f87c2c by 刘鹏

fix: 文章主页返回按钮点击事件添加处理

parent 9a97b5d9
...@@ -211,7 +211,8 @@ dependencies { ...@@ -211,7 +211,8 @@ dependencies {
implementation project(':m-im') implementation project(':m-im')
implementation project(':m-dynamic') implementation project(':m-dynamic')
implementation project(':m-audioim') implementation project(':m-audioim')
//文章模块
implementation project(':m-article')
// api rootProject.ext.dependencies["ydl-m-fm-module-ydl"] // api rootProject.ext.dependencies["ydl-m-fm-module-ydl"]
// api rootProject.ext.dependencies["ydl-m-fm-api"] // api rootProject.ext.dependencies["ydl-m-fm-api"]
...@@ -226,6 +227,7 @@ dependencies { ...@@ -226,6 +227,7 @@ dependencies {
api rootProject.ext.dependencies["ydl-webview"] api rootProject.ext.dependencies["ydl-webview"]
api rootProject.ext.dependencies["ydl-m-user-api"] api rootProject.ext.dependencies["ydl-m-user-api"]
api rootProject.ext.dependencies["ydl-m-fm-api"] api rootProject.ext.dependencies["ydl-m-fm-api"]
api rootProject.ext.dependencies["m-article"]
api(rootProject.ext.dependencies["ydl-platform"]) { api(rootProject.ext.dependencies["ydl-platform"]) {
transitive = true transitive = true
} }
......
...@@ -40,7 +40,7 @@ ext { ...@@ -40,7 +40,7 @@ ext {
"ydl-media" : "0.0.21.6", "ydl-media" : "0.0.21.6",
"ydl-pay" : "0.0.18.13", "ydl-pay" : "0.0.18.13",
"m-audioim" : "0.0.49.29.22", "m-audioim" : "0.0.49.29.22",
"ydl-flutter-base": "0.0.14.20", "ydl-flutter-base": "0.0.14.22",
//以下 几乎不会动 //以下 几乎不会动
"router" : "0.0.1", "router" : "0.0.1",
...@@ -95,6 +95,8 @@ ext { ...@@ -95,6 +95,8 @@ ext {
"m-home" : "0.0.22.54", "m-home" : "0.0.22.54",
"m-im" : "0.0.18.34", "m-im" : "0.0.18.34",
"m-dynamic" : "0.0.7.19", "m-dynamic" : "0.0.7.19",
"m-article" : "0.0.0.6",
"m-muse" : "0.0.20.7", "m-muse" : "0.0.20.7",
"m-tests" : "0.0.24.9", "m-tests" : "0.0.24.9",
...@@ -121,7 +123,7 @@ ext { ...@@ -121,7 +123,7 @@ ext {
"ydl-media" : "0.0.21.6", "ydl-media" : "0.0.21.6",
"ydl-pay" : "0.0.18.11", "ydl-pay" : "0.0.18.11",
"m-audioim" : "0.0.49.29.22", "m-audioim" : "0.0.49.29.22",
"ydl-flutter-base": "0.0.14.20", "ydl-flutter-base": "0.0.14.22",
//以下 几乎不会动 //以下 几乎不会动
"router" : "0.0.1", "router" : "0.0.1",
......
...@@ -55,6 +55,7 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler { ...@@ -55,6 +55,7 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
const val REQUESTMAINSCROLLFOCUS: String = "requestMainScrollFocus" const val REQUESTMAINSCROLLFOCUS: String = "requestMainScrollFocus"
const val RELEASEMAINSCROLLFOCUS: String = "releaseMainScrollFocus" const val RELEASEMAINSCROLLFOCUS: String = "releaseMainScrollFocus"
const val ACTION_HTTP_BURIED_POINT: String = "action_http_buried_point" const val ACTION_HTTP_BURIED_POINT: String = "action_http_buried_point"
const val PAGE_GO_BACK: String = "pageGoBack" //返回上一页
//activity注册 //activity注册
fun activityRegister(activity: FlutterActivity) { fun activityRegister(activity: FlutterActivity) {
...@@ -193,6 +194,9 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler { ...@@ -193,6 +194,9 @@ class YDLCommonPlugin : MethodChannel.MethodCallHandler {
ActionCountUtils.count("$partId|$position",sign) ActionCountUtils.count("$partId|$position",sign)
} }
PAGE_GO_BACK ->{
mActivity?.finish()
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment