App.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script>
  2. export default {
  3. onLaunch: function () {},
  4. onShow: function () {
  5. this.getConfigsFn();
  6. },
  7. onHide: function () {},
  8. methods: {
  9. //获取配置信息
  10. async getConfigsFn() {
  11. const res = await this.$u.api.getConfigs({
  12. keys: ['link_me']
  13. });
  14. const link_me = res.data.configs.link_me;
  15. uni.setStorageSync('link_me', link_me);
  16. }
  17. }
  18. };
  19. </script>
  20. <style lang="scss">
  21. @import 'uview-ui/index.scss';
  22. /*每个页面公共css */
  23. @import '@/common/common.style.scss';
  24. /*toast字体图标*/
  25. @import '@/components/iconfont.css';
  26. // uni-tabbar {
  27. // .uni-tabbar {
  28. // // tab背景
  29. // // background-image: linear-gradient(to top, #FAF8F8, #FFFFFF) !important; // tab背景图片或者渐变色,背景色和背景图片最多选择一个进行设置
  30. // height: 100rpx;
  31. // // box-shadow: 0rpx -2rpx 35rpx 0rpx rgba(1, 31, 63, 0.09);
  32. // .uni-tabbar-border {
  33. // background-color: #ffffff !important; // tabBar上边框的颜色
  34. // }
  35. // .uni-tabbar__bd {
  36. // // tabBar单项
  37. // .uni-tabbar__icon {
  38. // width: 40rpx !important;
  39. // height: 40rpx !important;
  40. // }
  41. // .uni-tabbar__label {
  42. // font-size: 24rpx !important;
  43. // }
  44. // }
  45. // }
  46. // }
  47. </style>