zhengkaixin 2 years ago
parent
commit
9e8efb81fe
2 changed files with 4 additions and 3 deletions
  1. 2 2
      main.js
  2. 2 1
      pages/index/main.vue

+ 2 - 2
main.js

@@ -3,8 +3,8 @@ import App from './App'
  
 //import MyCommon from '@/components/Common.vue'
 //import CarLoading from '@/components/Loading.vue'
-import  getOpenId from './utils/init.js'
-getOpenId.init()
+//import  getOpenId from './utils/init.js'
+//getOpenId.init()
 
 import  mixin from './utils/mixin.js'
 

+ 2 - 1
pages/index/main.vue

@@ -101,8 +101,9 @@
 			}
 			
 		},
-		onLoad() {
+		onLoad(op) {
 			 
+				this.carhelp.setOpenId(op.openid)
 				this.setBackImg( )
 			 
 		},