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-10-25 20:30:58 +08:00
|
|
|
|
import storage from './jtools/storage'
|
2023-08-12 22:15:27 +08:00
|
|
|
|
export default {
|
2023-10-25 20:30:58 +08:00
|
|
|
|
onLaunch: function (options) {
|
|
|
|
|
|
// 如果是二维码扫描过来的,需要保存公司id
|
|
|
|
|
|
if (options.query?.scene) {
|
|
|
|
|
|
storage.set('companyId', options.query?.scene)
|
|
|
|
|
|
}
|
2023-08-19 16:22:34 +08:00
|
|
|
|
useUserStore().queryVipList()
|
2023-10-25 20:30:58 +08:00
|
|
|
|
if (useUserStore().isLogin) {
|
2023-08-19 16:22:34 +08:00
|
|
|
|
useUserStore().getUserInfo()
|
|
|
|
|
|
useUserStore().searchUserVip()
|
|
|
|
|
|
}
|
2023-08-12 22:15:27 +08:00
|
|
|
|
},
|
|
|
|
|
|
onShow: function () {
|
2023-10-25 20:30:58 +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-10-25 20:30:58 +08:00
|
|
|
|
|
|
|
|
|
|
button::after {
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
}
|
2023-08-12 22:15:27 +08:00
|
|
|
|
</style>
|