12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import App from './App'
- import request from '@/common/request.js'
- Vue.prototype.$http = request.http
- Vue.prototype.$request =request
- import common from '@/common/common.js'
- Vue.prototype.$common =common
- Vue.prototype.$configUrl = request.configUrl
- //import wx from 'weixin-js-sdk'
- //import * as $wx from '@wecom/jssdk'
- import wx from "wecomjsdk"
- Vue.prototype.$wx =wx;
- //npm install wecomjsdk
- /* if(common.getHashQuery('code')){
- uni.setStorage({
- key: 'code',
- data: common.getHashQuery('code'),
- success: function () {
- }
- });
-
- }else{
- request.http('enterpriseWechat/auth/oAuth2', {
- corpID:'wpMGjbBgAA_zIu6wbKy48zFSbGiGeP8g',
- redirectUri:'http://qw.66km.com.cn/pages/index/auto',
- agentId:'1000040'
- }, 'GET').then(res => {
- //console.log(res.data)
- location.href= res.data
-
- }).catch(err=>{
-
- })
- }
- */
- // #ifndef VUE3
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
- //console.log(wx)
-
|