master
xingyy 12 months ago
parent 73044b7cdc
commit 2b8692a0ff

@ -3,11 +3,12 @@ import tabBar from "./util/tabbar";
export default {
onLaunch: function() {
// uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2NjlHMEtKcFlKNE1qWGhyNEh5cHhBUSIsIk5pY2tOYW1lIjoi5YiY5bCP5benIiwiVGVsTnVtIjoiMTUyNjI0ODE0OTgiLCJBdmF0YXIiOiJodHRwczovL2NkbnMuZm9udHJlZS5jbi9pbnZlbnRvcnkvZmlsZXMvaW1nL2MzNWQ1ODVhLTVjNTMtMTFlZS04OGRmLTAyNDJhYzEzMDAyNS5qcGciLCJJRE51bSI6IjMyMDMyNDE5OTAwNTA5NjY0WCIsImV4cCI6MTY5NTgxMTk4NCwiaXNzIjoibWFsbCJ9.QDDAiN5xFtL7BelKfgbnej_nO52T_UxQ7GFicHnQA2U')
uni.hideTabBar();
uni.setStorageSync("tabBar", tabBar);
},
onShow: function() {
onShow: function(e) {
console.log("App Show");
},
onHide: function() {

@ -20,6 +20,7 @@ app.$mount();
// #endif
// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
const app = createSSRApp(App);
return {

@ -29,11 +29,14 @@
</template>
<script>
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
import tabBarJs from "../../util/tabbar";
export default {
name: "index",
onLoad() {
uni.hideTabBar();
uni.setStorageSync("tabBar", tabBarJs);
},
onShow() {
this.getAddress();

Loading…
Cancel
Save