12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import App from "./App";
- import Polyfill from "./polyfill/polyfill";
- Polyfill.init();
- import Mixin from "./polyfill/mixins";
- import Vue from "vue";
- import Vant from "vant";
- import "@/common/js/uniRewrite";
- import store from './store'
- import './common/js/filters'
- Vue.use(Vant);
- Vue.mixin(Mixin);
- Vue.prototype.$uiStyle = "normal";
- ZWJSBridge.onReady(() => {
- console.log('初始化完成后,执行bridge方法')
- ZWJSBridge.getUiStyle({}).then((result) => {
-
- Vue.prototype.$uiStyle = result.uiStyle;
- }).catch(res => {
- console.log('获取uistyle 失败')
- });
- })
- Vue.config.productionTip = false;
- App.mpType = "app";
- const app = new Vue({
- ...App,
- store
- });
- app.$mount();
|