App.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. *{box-sizing: border-box;}
  35. uni-page-body,html,body{
  36. height: 100%;
  37. width: 750rpx;
  38. background: #F6F6F6;
  39. }
  40. .u-button--primary{background-color: #5776E6;}
  41. .uni-input-placeholder{text-align: right;}
  42. .ml5{margin-left:10rpx;}
  43. .contain{
  44. height: 100%;
  45. padding-bottom: 120rpx;
  46. padding-top: 24rpx;
  47. .main{
  48. padding: 0 32rpx;
  49. background-color: #fff;
  50. }
  51. .tijiao {
  52. position: fixed;
  53. width: 100%;
  54. bottom: 0;
  55. left: 0;
  56. background-color: #fff;
  57. padding: 16rpx 32rpx;
  58. box-sizing: border-box;
  59. }
  60. }
  61. </style>