1 Star 0 Fork 255

pengboa / shopTNT电商系统-移动端(小程序 app 公众号)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
“tnt” 提交于 2023-06-20 09:11 . 初始化
import Vue from 'vue'
import App from './App'
import Base64 from './common/base64.min'
Vue.config.productionTip = false
Vue.prototype.Base64 = Base64
App.mpType = 'app'
// 此处为演示Vue.prototype使用,非uView的功能部分
Vue.prototype.vuePrototype = '枣红'
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView)
// 引入自定义全局uView
// import components from 'components'
// Vue.use(components)
// 此处为演示vuex使用,非uView的功能部分
import store from '@/store'
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore)
// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
//进入全局过滤器
import * as filters from '@/utils/filters.js'
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
//判断是否登录
import { judgeLogin } from '@/utils/login.js';
Vue.prototype.judgeLogin = judgeLogin;
Vue.config.productionTip = false;
//路由
import { navigateTo } from '@/utils/navroter.js';
Vue.prototype.navigateTo = navigateTo;
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)
const app = new Vue({
store,
...App
})
app.$mount()
1
https://gitee.com/pengboa/mobile-ui.git
git@gitee.com:pengboa/mobile-ui.git
pengboa
mobile-ui
shopTNT电商系统-移动端(小程序 app 公众号)
5.2.3

搜索帮助

53164aa7 5694891 3bd8fe86 5694891