34 lines
712 B
Vue
34 lines
712 B
Vue
<template>
|
|
<!-- 页面结构 -->
|
|
<view class="container">
|
|
<!-- 页面内容 -->
|
|
<router-view />
|
|
<u-toast ref="uToast"></u-toast>
|
|
<!-- TabBar -->
|
|
<tab-bar />
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import Vue from "vue";
|
|
export default {
|
|
mounted() {
|
|
this.$nextTick(() => {
|
|
Vue.prototype.$toast = this.$refs.uToast.show;
|
|
Vue.prototype.$toastHide = this.$refs.uToast.hide;
|
|
});
|
|
},
|
|
onLaunch: function () {},
|
|
onShow: function () {
|
|
// this.setLanguage();
|
|
},
|
|
onHide: function () {
|
|
// console.log("App Hide");
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
|
@import "uview-ui/index.scss";
|
|
</style>
|