App.vue 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. uni-page-body,html,body{
  35. height: 100%;
  36. width: 750rpx;
  37. background: #F6F6F6;
  38. }
  39. </style>