2 Commits 4bff43c20b ... d72614e283

Author SHA1 Message Date
  dufeng d72614e283 ADD 5 months ago
  dufeng 734e84e1eb 通信bug 5 months ago
4 changed files with 13 additions and 2 deletions
  1. 2 0
      main.js
  2. 1 1
      manifest.json
  3. 10 1
      pages/workflowTask/index.vue
  4. 0 0
      utils/webview.js

+ 2 - 0
main.js

@@ -4,6 +4,8 @@ import App from './App'
 import Vue from 'vue'
 import {setTip} from '@/utils/common.js'
 import color from '@/utils/color.js'
+import  './utils/webview.js'
+
 Vue.config.productionTip = false
 App.mpType = 'app'
 

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "diboot-mobile-ui",
-    "appid" : "__UNI__8D0EB6B",
+    "appid" : "__UNI__3D45701",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 10 - 1
pages/workflowTask/index.vue

@@ -43,7 +43,16 @@
 				console.log('000000')
                 let url=constant.host()
                 window.parent.postMessage('/pages/index/index',url+'/mobile/pages/flow/flow')
-
+                try {
+                    uni.webView.postMessage({
+                        data: {
+                            action: '/pages/index/index'
+                        }
+                    });
+                } catch (error) {
+                    console.warn('unipostMessage',error)
+                }
+               
 				// uni.switchTab({
 				// 	url: '/pages/home/home'
 				// })

File diff suppressed because it is too large
+ 0 - 0
utils/webview.js


Some files were not shown because too many files changed in this diff