四零语境前端代码仓库
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.

51 lines
803 B

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