2 Star 0 Fork 0

我是番茄/education-mp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Admin 提交于 2024-09-24 13:13 . ui
<script>
import { mapGetters } from "vuex";
import { eventEnum } from "@/utils/constant";
import { selfBar, publicBar,personageBar } from "@/utils/tabBar.js"
import { wxUpdate } from "@/utils/wxUpdate";
const myApppId = 'wxa5669c7e8312599f'
const whiteList = [
'pages/h5/onlinePayment/index', 'pages/h5/payFees/index'
]
export default {
computed: { ...mapGetters(["hasLogin"]) },
async onLaunch(option) {
wxUpdate()
let flag = whiteList.includes(option.path)
if (this.hasLogin && !flag) {
const [error, resp] = await this.$store.dispatch("getUserInfo", true)
if (error) return
uni.$emit(eventEnum.appLaunch, resp)
await this.$store.dispatch("getStudents")
}
await this.$store.dispatch("getMenuTabBar")
// this.getAccountInfo()
},
onShow() {
uni.hideTabBar({
animation: false
})
},
methods: {
}
}
</script>
<style lang="scss">
@import "@/uni_modules/uview-ui/index.scss";
/*每个页面公共css */
@import "@/static/css/public.scss";
@import "@/static/css/common.scss";
page {
height: 100%;
}
.border {
border: 1px solid red !important;
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/meat-loving-wang/education-mp.git
git@gitee.com:meat-loving-wang/education-mp.git
meat-loving-wang
education-mp
education-mp
master

搜索帮助