| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | 
							- import App from './App'
 
- import messages from './locale/index'
 
- let i18nConfig = {
 
-   locale: uni.getLocale(),
 
-   messages
 
- }
 
- import common from '@/utils/common.js'
 
- Vue.prototype.$common =common
 
- import request from '@/utils/request.js'
 
- Vue.prototype.$http = request.http
 
- Vue.prototype.$request =request
 
- import store from './store'
 
- Vue.prototype.$store = store // 定义成全局组件
 
- //http://112.124.69.194:93/#/  测试地址
 
- console.log("main.js")
 
- if(common.getHashQuery('token')){
 
- 	var userInfo={
 
- 		token:common.getHashQuery('token'),
 
- 		uid:common.getHashQuery('uid')
 
- 	}
 
- 	
 
- 	var wxOpenData={
 
- 		loginInfo:userInfo
 
- 	}
 
- 	console.log(wxOpenData)
 
- 	store.commit('mutationsuserInfo', userInfo)
 
- 	store.commit('mutationswxOpenData', wxOpenData)
 
- 	uni.setStorage({
 
- 			key: 'wxOpenData',
 
- 			data: wxOpenData,
 
- 			 success: function () {	
 
- 			 }
 
- 	});
 
- 	console.log(store.state.userInfo)
 
- }
 
- if(common.getHashQuery('quanxian')){
 
- 	console.log(common.getHashQuery('quanxian'));
 
- 	uni.setStorage({
 
- 			key: 'quanxian',
 
- 			data: common.getHashQuery('quanxian'),
 
- 			success: function () {	}
 
- 	});
 
- }
 
- //console.log(common.getHashQuery('token'))
 
- // #ifndef VUE3
 
- import Vue from 'vue'
 
- Vue.config.productionTip = false
 
- App.mpType = 'app'
 
- import VueI18n from 'vue-i18n'
 
- Vue.use(VueI18n)
 
- const i18n = new VueI18n(i18nConfig)
 
- const app = new Vue({
 
- 	 i18n,
 
-     ...App
 
- })
 
- app.$mount()
 
- // #endif
 
- // #ifdef VUE3
 
- import { createSSRApp } from 'vue'
 
- mport { createI18n } from 'vue-i18n'
 
- const i18n = createI18n(i18nConfig)
 
- export function createApp() {
 
-   const app = createSSRApp(App)
 
-   app.use(i18n)
 
-   return {
 
-     app
 
-   }
 
- }
 
- // #endif
 
 
  |