App.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <script>
  2. // window.SITE_CONFIG = {};
  3. // window.SITE_CONFIG["dictList"] = JSON.parse(localStorage.getItem('dictList'))||[];
  4. // import Api from "./@/http/Api.js";
  5. export default {
  6. data() {
  7. return {
  8. // globalData: {},
  9. }
  10. },
  11. methods: {
  12. // getDictAll() {
  13. // Api.getDictList().then((res) => {
  14. // console.log(res.data)
  15. // window.SITE_CONFIG["dictList"] = res.data.data;
  16. // localStorage.setItem("dictList",JSON.stringify(res.data.data));
  17. // });
  18. // },
  19. },
  20. onLaunch: function() {
  21. // this.getDictAll();
  22. // 获取字典列表, 添加并全局变量保存
  23. },
  24. onShow: function() {
  25. },
  26. onHide: function() {
  27. console.log('App Hide')
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. /*每个页面公共css */
  33. @import "@/uni_modules/uview-ui/index.scss";
  34. * {
  35. box-sizing: border-box;
  36. }
  37. uni-page-body,
  38. html,
  39. body {
  40. height: 100%;
  41. width: 750rpx;
  42. background: #F6F6F6;
  43. }
  44. .u-button--primary {
  45. background-color: #5776E6;
  46. }
  47. .uni-input-placeholder {
  48. text-align: right;
  49. }
  50. .ml5 {
  51. margin-left: 10rpx;
  52. }
  53. .contain {
  54. height: 100%;
  55. padding-bottom: 120rpx;
  56. padding-top: 24rpx;
  57. overflow-y: auto;
  58. .main {
  59. padding: 0 32rpx;
  60. background-color: #fff;
  61. }
  62. .tijiao {
  63. position: fixed;
  64. width: 100%;
  65. bottom: 0;
  66. left: 0;
  67. background-color: #fff;
  68. padding: 16rpx 32rpx;
  69. box-sizing: border-box;
  70. box-shadow: 0 -6px 12px 0 rgba(153, 153, 153, 0.10);
  71. }
  72. .u-cell__value {
  73. color: #333 !important;
  74. }
  75. }
  76. .tabPage{
  77. width: 100%;
  78. padding-bottom: 164rpx;
  79. box-sizing: border-box;
  80. }
  81. </style>