123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <script>
- import dd from '@/static/dd.js'
- import {
- mapMutations
- } from 'vuex'
- import {
- version
- } from './package.json'
- import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
- import {
- list
- } from '@/utils/router.js'
- import {
- editDDtitle
- } from '@/utils/DateUtils.js'
-
- import Util from "@/common/js/util.js"
- export default {
- onLaunch: function() {
- let teacherInfo = uni.getStorageSync("teacherInfo");
- console.log('读取teacherInfo', teacherInfo)
- if(teacherInfo){
- this.$store.commit("setTeacherInfo", teacherInfo)
- }
- },
- onShow: function() {},
- onHide: function() {
- },
- globalData: {
- test: ''
- },
- methods: {
- ...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin'])
- },
- mounted() {
- list.filter(item => {
- if (item.path == this.$route.meta.pagePath) {
- editDDtitle(item.title)
- }
- })
- },
- watch: {
- $route() {
- list.filter(item => {
- if (item.path == this.$route.meta.pagePath) {
- editDDtitle(item.title)
- }
- })
- }
- }
- }
- </script>
- <style lang="scss">
- @import "uview-ui/index.scss";
- @import '@/common/plus.css';
- @import "./uni_modules/uni-scss/index.scss";
-
- uni-modal {
- z-index: 999999 !important;
- }
- /deep/.popup-content {
- border-top-left-radius: 10px;
- background-color: #fff;
- border-top-right-radius: 10px;
- }
- @font-face {
- font-family: "PingFang";
- src: url("@/static/PingFang.ttf");
- font-weight: normal;
- font-style: normal;
- }
- .contianer {
- height: 100vh;
- font-family: "PingFang";
- }
- uni-page-head {
- display: none !important;
- }
- @import '@/uni_modules/uni-scss/index.scss';
- /* #ifndef APP-PLUS-NVUE */
- /* uni.css - 通用组件、模板样式库,可以当作一套ui库应用 */
- @import './common/uni.css';
- @import '@/static/customicons.css';
-
- /* H5 兼容 pc 所需 */
- /* #ifdef H5 */
- @media screen and (min-width: 768px) {
- body {
- overflow-y: scroll;
- }
- }
- /* 顶栏通栏样式 */
- /* .uni-top-window {
- left: 0;
- right: 0;
- } */
- uni-page-body {
- min-height: 100% !important;
- height: auto !important;
- height: 100vh;
- }
- .uni-top-window uni-tabbar .uni-tabbar {
- background-color: #fff !important;
- }
- .uni-app--showleftwindow .hideOnPc {
- display: none !important;
- }
- /* #endif */
- /* 以下样式用于 hello uni-app 演示所需 */
- page {
- background-color: rgba(242, 242, 242, 1);
- height: 100%;
- font-size: 28rpx;
- /* line-height: 1.8; */
- font-family: 'PingFang';
- }
- .fix-pc-padding {
- padding: 0 50px;
- }
- .uni-header-logo {
- padding: 30rpx;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- margin-top: 10rpx;
- }
- .uni-header-image {
- width: 100px;
- height: 100px;
- }
- .uni-hello-text {
- color: #7A7E83;
- }
- .uni-hello-addfile {
- text-align: center;
- line-height: 300rpx;
- background: #FFF;
- padding: 50rpx;
- margin-top: 10px;
- font-size: 38rpx;
- color: #808080;
- }
- .contianer::after {
- content: "";
- position: absolute;
- left: 0;
- top: 0;
- /* 将阴影位置设置在导航栏下方 */
- width: 100%;
- height: 1px;
- box-shadow: 0 0 10px #ccc;
- z-index: 1;
- /* 使阴影在内容之上 */
- }
- /* #endif*/
- </style>
|