Files
medicine_app/pages/miniClass/miniClassMan.vue
@fawn-nine b37cced85c 暂存
2024-07-29 15:16:21 +08:00

98 lines
2.0 KiB
Vue

<template>
<view
style=" padding: 0 0; font-size: 28rpx;"
class="commonPage commonPageBox"
>
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="">
主任教学
</view>
<z-navigation></z-navigation>
</view>
</template>
<script>
import $http from "@/config/requestConfig.js";
// import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare';
import { mapState, mapMutations } from "vuex";
export default {
data() {
return {
userMes: {},
isAndorid: true,
platform: null, // 设备系统
};
},
//第一次加载
onLoad(e) {
// 隐藏原生的tabbar
// uni.hideTabBar();
// #ifdef APP-PLUS
this.getOS();
this.platform = uni.getSystemInfoSync().platform;
// console.log('操纵系统',this.platform)
// #endif
},
computed: {
...mapState(["userInfo"]),
},
//页面显示
onShow() {
console.log(this.userInfo, "11111111111111");
// 隐藏原生的tabbar
// uni.hideTabBar();
this.getData();
},
components: {
},
//方法
methods: {
...mapMutations(["setUserInfo"]),
// 获得操作系统
// getOS() {
// let oprateOs = "";
// oprateOs = uni.getSystemInfoSync().platform;
// // console.log(oprateOs)
// if (oprateOs == "android") {
// this.isAndorid = true;
// } else {
// this.isAndorid = false;
// }
// },
switchTab(url) {
uni.switchTab({
url: url,
});
},
getData() {
// 获取个人信息
if (this.userInfo.id != undefined) {
this.$http.post("common/user/getUserInfo").then((res) => {
this.userMes = res.result;
});
}
},
onPageJump(url) {
console.log(url, "url");
uni.navigateTo({
url: url,
});
},
},
};
</script>
<style lang="scss" scoped>
@import "@/style/mixin.scss";
</style>