Quellcode durchsuchen

Android端流程新建检查的功能

fancy vor 5 Jahren
Ursprung
Commit
2ac9cdf051

+ 15 - 0
o2android/app/src/main/java/net/zoneland/x/bpm/mobile/v1/zoneXBPM/app/o2/webview/TaskWebViewActivity.kt

@@ -154,6 +154,11 @@ class TaskWebViewActivity : BaseMVPActivity<TaskWebViewContract.View, TaskWebVie
 
         XLog.debug("title:$title ,  url:$url")
         setupToolBar(title, true)
+        toolbar?.setNavigationOnClickListener {
+            XLog.debug("测试。。。。。。。。。。。。。。。。。。")
+            processCheckNew()
+//            finish()
+        }
 
         web_view.addJavascriptInterface(this, "o2android")
         jsNotification.setupWebView(web_view)
@@ -582,6 +587,16 @@ class TaskWebViewActivity : BaseMVPActivity<TaskWebViewContract.View, TaskWebVie
 
     //region  private function
 
+    /**
+     * 检查新建
+     * 关闭页面的时候检查一下 是否要删除草稿
+     */
+    private fun processCheckNew() {
+        web_view.evaluateJavascript("layout.app.appForm.finishOnMobile()"){
+            _ -> XLog.debug("finishOnMobile /。。。。。。。。。。。。。。")
+        }
+    }
+
     /**
      * 生成操作按钮
      */