You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

99 lines
2.2 KiB

import App from './App'
import toast from './common/Toast.js'
import wxAuthLogin from './common/wxAuthLogin.js'
import wxSilentLogin from './common/wxSilentLogin.js'
import {
isEmpty
} from './common/TextUtils.js'
import {
write,
read,
write2,
read2
} from './common/PreferenceHelper.js'
import {
writeGameCahce,
clearGameCache,
readGameCahce,
hasCache
} from './common/GameCache.js'
import {
http,
httpOtherUrl,
httpCookie,
baseImgURL,
upload
} from './common/Http.js'
import px2upx from './common/PxToRpxOrPxToUpx.js'
import {
timeText,
timeFormat,
currentMillions,
getWeekStr,
getTodayEndTime
} from "./common/Time.js"
import {
back,
setResult,
onActivityResult
} from "./common/Back.js"
import getDistance from 'common/Distance.js'
import chooseUpload from 'common/ChooseUpload.js'
import {
putWEBExtra,
getWEBExtra
} from './common/intent.js'
Vue.prototype.WxSilentLogin = wxSilentLogin
Vue.prototype.WxAuthLogin = wxAuthLogin
Vue.prototype.Toast = toast
Vue.prototype.Back = back
Vue.prototype.WritePreference = write
Vue.prototype.WritePreference2 = write2
Vue.prototype.ReadPreference = read
Vue.prototype.ReadPreference2 = read2
Vue.prototype.HTTP = http
Vue.prototype.HttpOtherUrl = httpOtherUrl
Vue.prototype.Upload = upload
Vue.prototype.HttpCookie = httpCookie
Vue.prototype.IsEmpty = isEmpty
Vue.prototype.Px2Upx = px2upx
Vue.prototype.TimeText = timeText
Vue.prototype.TimeFormat = timeFormat
Vue.prototype.GetWeekStr = getWeekStr
Vue.prototype.CurrentMillions = currentMillions
Vue.prototype.GetTodayEndTime = getTodayEndTime
Vue.prototype.Back = back
Vue.prototype.SetResult = setResult
Vue.prototype.OnActivityResult = onActivityResult
Vue.prototype.WriteGameCahce = writeGameCahce
Vue.prototype.ClearGameCache = clearGameCache
Vue.prototype.ReadGameCahce = readGameCahce
Vue.prototype.HasCache = hasCache
Vue.prototype.getDistance = getDistance
Vue.prototype.chooseUpload = chooseUpload
Vue.prototype.putWEBExtra = putWEBExtra
Vue.prototype.getWEBExtra = getWEBExtra
// #ifndef VUE3
import Vue from 'vue'
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