暂存
This commit is contained in:
97
pages/miniClass/miniClassMan.vue
Normal file
97
pages/miniClass/miniClassMan.vue
Normal file
@@ -0,0 +1,97 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user