App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <script>
  2. export default {
  3. onLaunch: function (options) {
  4. console.log("onLaunch", options.query)
  5. let { mount, setBar } = require("./utils/tool");
  6. mount()
  7. setBar()
  8. /* uni.addInterceptor('navigateTo', {//监听跳转
  9. success(e) {
  10. console.log("监听页面跳转", e)
  11. }
  12. }) */
  13. /* wx.onAppRoute((res) => {
  14. console.log("onAppRoute", res)
  15. }) */
  16. },
  17. onShow: function () {
  18. },
  19. onHide: function () {
  20. },
  21. globalData: {
  22. systemInitIsComplete: null,
  23. HomePageStartRendering: [],
  24. },
  25. }
  26. </script>
  27. <style lang="scss">
  28. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  29. @import "uview-ui/index.scss";
  30. @import "static/iconfont/iconfont.css";
  31. body,
  32. page {
  33. background: #F7F7F7;
  34. font-size: 14px;
  35. }
  36. /deep/.u-tabs {
  37. height: 44px;
  38. // background: #052E5D;
  39. background: #FFFFFF;
  40. .u-tabs__wrapper__nav {
  41. height: 44px;
  42. align-items: center;
  43. .u-tabs__wrapper__nav__item {
  44. height: 44px;
  45. flex-shrink: 0 !important;
  46. .u-tabs__wrapper__nav__item__text {
  47. font-size: 15px;
  48. }
  49. }
  50. }
  51. }
  52. </style>