App.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <script>
  2. import dd from '@/static/dd.js'
  3. import {
  4. mapMutations
  5. } from 'vuex'
  6. import {
  7. version
  8. } from './package.json'
  9. import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
  10. import {
  11. list
  12. } from '@/utils/router.js'
  13. import {
  14. editDDtitle
  15. } from '@/utils/DateUtils.js'
  16. import Util from "@/common/js/util.js"
  17. export default {
  18. onLaunch: function() {
  19. let teacherInfo = uni.getStorageSync("teacherInfo");
  20. console.log('读取teacherInfo', teacherInfo)
  21. if(teacherInfo){
  22. this.$store.commit("setTeacherInfo", teacherInfo)
  23. }
  24. },
  25. onShow: function() {},
  26. onHide: function() {
  27. },
  28. globalData: {
  29. test: ''
  30. },
  31. methods: {
  32. ...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin'])
  33. },
  34. mounted() {
  35. list.filter(item => {
  36. if (item.path == this.$route.meta.pagePath) {
  37. editDDtitle(item.title)
  38. }
  39. })
  40. },
  41. watch: {
  42. $route() {
  43. list.filter(item => {
  44. if (item.path == this.$route.meta.pagePath) {
  45. editDDtitle(item.title)
  46. }
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. @import "uview-ui/index.scss";
  54. @import '@/common/plus.css';
  55. @import "./uni_modules/uni-scss/index.scss";
  56. uni-modal {
  57. z-index: 999999 !important;
  58. }
  59. /deep/.popup-content {
  60. border-top-left-radius: 10px;
  61. background-color: #fff;
  62. border-top-right-radius: 10px;
  63. }
  64. @font-face {
  65. font-family: "PingFang";
  66. src: url("@/static/PingFang.ttf");
  67. font-weight: normal;
  68. font-style: normal;
  69. }
  70. .contianer {
  71. height: 100vh;
  72. font-family: "PingFang";
  73. }
  74. uni-page-head {
  75. display: none !important;
  76. }
  77. @import '@/uni_modules/uni-scss/index.scss';
  78. /* #ifndef APP-PLUS-NVUE */
  79. /* uni.css - 通用组件、模板样式库,可以当作一套ui库应用 */
  80. @import './common/uni.css';
  81. @import '@/static/customicons.css';
  82. /* H5 兼容 pc 所需 */
  83. /* #ifdef H5 */
  84. @media screen and (min-width: 768px) {
  85. body {
  86. overflow-y: scroll;
  87. }
  88. }
  89. /* 顶栏通栏样式 */
  90. /* .uni-top-window {
  91. left: 0;
  92. right: 0;
  93. } */
  94. uni-page-body {
  95. min-height: 100% !important;
  96. height: auto !important;
  97. height: 100vh;
  98. }
  99. .uni-top-window uni-tabbar .uni-tabbar {
  100. background-color: #fff !important;
  101. }
  102. .uni-app--showleftwindow .hideOnPc {
  103. display: none !important;
  104. }
  105. /* #endif */
  106. /* 以下样式用于 hello uni-app 演示所需 */
  107. page {
  108. background-color: rgba(242, 242, 242, 1);
  109. height: 100%;
  110. font-size: 28rpx;
  111. /* line-height: 1.8; */
  112. font-family: 'PingFang';
  113. }
  114. .fix-pc-padding {
  115. padding: 0 50px;
  116. }
  117. .uni-header-logo {
  118. padding: 30rpx;
  119. flex-direction: column;
  120. justify-content: center;
  121. align-items: center;
  122. margin-top: 10rpx;
  123. }
  124. .uni-header-image {
  125. width: 100px;
  126. height: 100px;
  127. }
  128. .uni-hello-text {
  129. color: #7A7E83;
  130. }
  131. .uni-hello-addfile {
  132. text-align: center;
  133. line-height: 300rpx;
  134. background: #FFF;
  135. padding: 50rpx;
  136. margin-top: 10px;
  137. font-size: 38rpx;
  138. color: #808080;
  139. }
  140. .contianer::after {
  141. content: "";
  142. position: absolute;
  143. left: 0;
  144. top: 0;
  145. /* 将阴影位置设置在导航栏下方 */
  146. width: 100%;
  147. height: 1px;
  148. box-shadow: 0 0 10px #ccc;
  149. z-index: 1;
  150. /* 使阴影在内容之上 */
  151. }
  152. /* #endif*/
  153. </style>