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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!-- App . vue -- >
< template >
< view class = "app-container" >
< / view >
< / template >
< script >
import tarbar from './components/tarbar/tarbar.vue' ;
import tarbar _home from "@/components/tarbar_home/tarbar_home.vue" ;
import tarbar _user from "@/components/tarbar_user/tarbar_user.vue" ;
import tarbar _community from "@/components/tarbar_community/tarbar_community.vue" ;
import tarbar _puppy _chat from "@/components/tarbar_puppy_chat/tarbar_puppy_chat.vue" ;
import myPopUp from './components/my-pop-up/my-pop-up.vue' ;
export default {
components : {
tarbar ,
myPopUp , //js变量名中不能有‘ -’
} ,
onLaunch : function ( ) {
console . log ( 'App Launch' ) ;
// 你可以在这里执行初始化逻辑,比如检查用户状态
} ,
onShow : function ( ) {
console . log ( 'App Show' ) ;
// 更新应用状态,比如获取最新数据
} ,
onHide : function ( ) {
console . log ( 'App Hide' ) ;
// 清理工作,比如保存数据
}
} ;
< / script >
< style >
/* 你的样式 */
. app - container {
position : relative ; /* 确保容器能够正确定位子元素 */
height : 100 vh ; /* 确保应用占满整个视口 */
}
/* 其他全局样式 */
< / style >