123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import Vue from 'vue'
- import App from '@/App.vue'
- import vant from 'vant'
- import elementUi from 'element-ui'
- import 'babel-polyfill'
- import router from '@/router'
- import Cookies from 'js-cookie'
- import * as filters from '@/filter'
- import VConsole from 'vconsole'
- import { postHttps, getHttps } from '@/api/index'
- import 'element-ui/lib/theme-chalk/index.css'
- import 'vant/lib/index.css'
- import '@/css/common.css'
- import '@/css/index.css'
- import '@/css/pc.css'
- const isDebug = true
- /* eslint-disable no-new */
- if (isDebug) {
- new VConsole()
- }
- Object.keys(filters).forEach(key => {
- Vue.filter(key, filters[key])
- })
- Vue.use(vant)
- Vue.use(Cookies)
- Vue.use(elementUi)
- Vue.config.productionTip = false
- Vue.prototype.imgUrl = process.env.VUE_APP_IMG
- Vue.prototype.apiUrl = process.env.VUE_APP_API
- Vue.prototype.globalUserId = Cookies.get('userId') || 11829
- Vue.prototype.postHttps = postHttps
- Vue.prototype.getHttps = getHttps
- // Vue.prototype.contactOther = function (userId) {
- // alert(window.wx)
- // window.wx.openEnterpriseChat({
- // // 注意:userIds和externalUserIds至少选填一个。内部群最多2000人;外部群最多500人;如果有微信联系人,最多40人
- // userIds: userId, // 参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。
- // // externalUserIds: 'wmEAlECwAAHrbWYDOK5u3Bf13xlYDAAA;wmEAlECwAAHibWYDOK5u3Af13xlYDAAA', // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。
- // groupName: '', // 会话名称。单聊时该参数传入空字符串""即可。
- // chatId: '', // 若要打开已有会话,需指定此参数。如果是新建会话,chatId必须为空串
- // success: function () {
- // // var chatId = res.chatId; //返回当前群聊ID,仅当使用agentConfig注入该接口权限时才返回chatId
- // // 回调
- // },
- // fail: function (res) {
- // alert(JSON.stringify(res))
- // if (res.errMsg.indexOf('function not exist') > -1) {
- // alert('版本过低请升级')
- // }
- // }
- // })
- // }
- export default new Vue({
- router,
- render: h => h(App)
- }).$mount('#app')
|