App.vue 1.2 KB

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