2023-08-12 22:15:27 +08:00
|
|
|
<script>
|
2023-08-19 16:22:34 +08:00
|
|
|
import useUserStore from '@/jtools/store/user'
|
2023-08-19 17:44:10 +08:00
|
|
|
import useQuestionStore from '@/jtools/store/question' //引入store
|
2023-08-12 22:15:27 +08:00
|
|
|
export default {
|
|
|
|
|
onLaunch: function () {
|
2023-08-19 16:22:34 +08:00
|
|
|
useUserStore().queryVipList()
|
|
|
|
|
if(useUserStore().isLogin) {
|
|
|
|
|
useUserStore().getUserInfo()
|
|
|
|
|
useUserStore().searchUserVip()
|
|
|
|
|
}
|
2023-08-12 22:15:27 +08:00
|
|
|
},
|
|
|
|
|
onShow: function () {
|
2023-09-17 23:49:42 +08:00
|
|
|
useQuestionStore().getAllQuestion()
|
2023-08-12 22:15:27 +08:00
|
|
|
console.log('App Show')
|
|
|
|
|
},
|
|
|
|
|
onHide: function () {
|
|
|
|
|
console.log('App Hide')
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
/*每个页面公共css */
|
|
|
|
|
@import "uni_modules/uview-plus/index.scss";
|
|
|
|
|
@import "static/style/index.scss";
|
2023-08-26 14:10:16 +08:00
|
|
|
button::after{ border: none;}
|
2023-08-12 22:15:27 +08:00
|
|
|
</style>
|