四零语境前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
972 B

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <script>
  2. export default {
  3. onLaunch() {
  4. // 请求初始化一切配置
  5. console.log('App OnLaunch')
  6. },
  7. async onShow() {
  8. // if(!uni.getStorageSync('token')){
  9. // uni.redirectTo({
  10. // url: '/subPages/login/login',
  11. // })
  12. // }
  13. console.log(uni.getStorageSync('token'));
  14. console.log('App Show')
  15. await this.$store.dispatch('initData')
  16. // console.log('配置数据初始化完成')
  17. },
  18. onHide: function() {
  19. console.log('App Hide')
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. // @import '@/uni_modules/uv-ui-tools/index.scss';
  25. /* 富文本全局样式 - rich-text组件的class样式必须写在全局中 */
  26. h1, h2, h3, h4, h5, h6 {
  27. font-weight: bold;
  28. margin: 10px 0;
  29. line-height: 1.4;
  30. }
  31. h2 {
  32. font-size: 20px;
  33. color: #333;
  34. }
  35. p {
  36. margin: 8px 0;
  37. line-height: 1.6;
  38. color: #666;
  39. }
  40. strong {
  41. font-weight: bold;
  42. color: #333;
  43. }
  44. /* 首行缩进样式 */
  45. .text-indent {
  46. text-indent: 2em;
  47. }
  48. </style>