@ -1,14 +1,8 @@
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
onHide: function() {
console.log('App Hide')
}
onLaunch: function() {},
onShow: function() {},
onHide: function() {}
</script>
@ -0,0 +1,9 @@
function Back (duration = 1500) {
setTimeout(() => {
uni.navigateBack()
}, duration)
Back
function Toast(title, icon = 'none', options) {
uni.showToast({
title,
icon,
...options
})
export default Toast
@ -0,0 +1,8 @@
import Toast from './Toast.js'
import Route from './Route.js'
export default function install (Vue) {
Vue.prototype.$toast = Toast
for (let key in Route) Vue.prototype[`$${key}`.toLowerCase()] = Route[key]
@ -0,0 +1 @@
mixin 放这里
@ -1,7 +1,10 @@
import App from './App'
import uView from 'uview-ui';
Vue.use(uView);
import uView from 'uview-ui'
Vue.use(uView)
import Expands from '@/common/expands/index.js'
Vue.use(Expands)
// #ifndef VUE3
import Vue from 'vue'