代码拉取完成,页面将自动刷新
import Vue from 'vue'
import App from './App'
import store from './store'
// 引入导航栏组件
import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue'
Vue.component('uniNavBar',uniNavBar)
//导入自己封装的类库
import sjuAsync from './common/sju.async.js'
import sjuBase from './common/sju.base.js'
import sjuAlert from './common/sju.alert.js'
import sjuRegex from './common/sju.regex.js'
import sjuLogin from './common/sju.login.js'
import sjuNav from './common/sju.nav.js'
import sjuPay from './common/sju.pay.js'
import sjuTools from './common/sju.tools.js'
import sjuRequest from './common/sju.request.js'
// #ifdef H5
import sjuWeixin from './common/sju.weixin.js'
// #endif
// 将封装库引入Vue原型链
Vue.prototype.sjuAsync = sjuAsync
Vue.prototype.sjuBase = sjuBase
Vue.prototype.sjuAlert = sjuAlert
Vue.prototype.sjuRegex = sjuRegex
Vue.prototype.sjuLogin = sjuLogin
Vue.prototype.sjuNav = sjuNav
Vue.prototype.sjuPay = sjuPay
Vue.prototype.sjuTools = sjuTools
Vue.prototype.sjuRequest = sjuRequest
// #ifdef H5
Vue.prototype.sjuWeixin = sjuWeixin
// #endif
// 全局变量
// 设置H5分享参数全局变量
Vue.prototype.$title='分享标题'
Vue.prototype.$desc = '分享描述'
Vue.prototype.$shareImage = '图片路径'
// 小程序分享分享设置
// #ifdef MP
import share from './mixin/sju.share.js'
Vue.mixin(share)
// #endif
// 引入全局mixin
import mixin from './mixin/sju.mixin.js'
Vue.mixin(mixin)
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
store,
...App,
})
app.$mount()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。